MarxBabu

ZONE Supply Demand Strategy1

ZONE BUY STRATEGY
In this method look for recent block of black candles and take the before black candle as base handle ,Draw a line forward with the value open and close of the base candle ,When the price falls into this region next in near future execute buy order. Stop loss wont work.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
//@version=2
study("ZONE",overlay=false)
len = input(35,title="Period")
smooth = input(100,title="Smooth")

plotcandle(open, high, low, close, title='candle', color=(open < close) ? green : red, wickcolor=gray)
// This is working isHigherHigh() => high>high[1] and high[1]>high[2] and low>low[1] and low[1]>low[2]  and close>close[1] and high>close and close>high[1] and close>low[1] and close>(open and low) and close[1]>(open[1]and low[1])and close[2]>(open[2]and low[2]) 
isHigherHigh() => high>high[1] and high[1]>high[2] and close>close[1] and close[1]>close[2] and close>open and close[1]>open[1] and close[2]>open[2] and low>open[1] and low[1]>open[2] and (open+low)<(open+close) //and low>ohlc4[1] and low[1]>ohlc4[2]   //and low>open[1] and low[1]>open[2] this code is to make sure low not below open of before candle

barcolor(isHigherHigh()? black :na)
barcolor(isHigherHigh()? black :na, -1)
barcolor((isHigherHigh() and close>open)? black :na, -2)
    
//barcolor()

Kommentarer

Is there a way where I can set an alert for the first black candle? What is it looking at exactly?
+42 Svara
Can u plz write the code for Supply , just reverse of Buy.. we can check it better..

U just need to add reverse logic.

+25 Svara
@csipplz, i've a similar script for short selling check it out
+29 Svara
Dont get it how it works how to get signal for playing ?
+18 Svara
Degod413 kapulet
@kapulet, Playing? Trading ones hard earned money is not considered playing! 🤦‍♂️
Svara
+12 Svara
cristian.d MarxBabu
@MarxBabu, nice one!!! What about the supply part?
+1 Svara
MarxBabu cristian.d
@cristian.d, Supply prediction is bit complex in this algorithm mostly we can predict the demand only
Svara
THIS does repaint
+6 Svara
Repaint????????
+5 Svara