//Indicator_DeMark_9
study("DeMark 9",overlay=true)
TD = close > close[4] ?nz(TD[1])+1:0
TS = close < close[4] ?nz(TS[1])+1:0
TDUp = TD - valuewhen(TD < TD[1], TD , 1 )
TDDn = TS - valuewhen(TS < TS[1], TS , 1 )
plotshape(TDUp==7?true:na,style=shape.triangledown,text="7" ,color=green,location=location.abovebar)
plotshape(TDUp==8?true:na,style=shape.triangledown,text="8" ,color=green,location=location.abovebar)
plotshape(TDUp==9?true:na,style=shape.triangledown,text="⚠" ,color=green,location=location.abovebar)
plotshape(TDDn==7?true:na,style=shape.triangleup,text="7", color=red,location=location.belowbar)
plotshape(TDDn==8?true:na,style=shape.triangleup,text="8", color=red,location=location.belowbar)
plotshape(TDDn==9?true:na,style=shape.triangleup,text="
", color=red,location=location.belowbar)
(I have this source code can you please make it an ex4 file?)
study("DeMark 9",overlay=true)
TD = close > close[4] ?nz(TD[1])+1:0
TS = close < close[4] ?nz(TS[1])+1:0
TDUp = TD - valuewhen(TD < TD[1], TD , 1 )
TDDn = TS - valuewhen(TS < TS[1], TS , 1 )
plotshape(TDUp==7?true:na,style=shape.triangledown,text="7" ,color=green,location=location.abovebar)
plotshape(TDUp==8?true:na,style=shape.triangledown,text="8" ,color=green,location=location.abovebar)
plotshape(TDUp==9?true:na,style=shape.triangledown,text="⚠" ,color=green,location=location.abovebar)
plotshape(TDDn==7?true:na,style=shape.triangleup,text="7", color=red,location=location.belowbar)
plotshape(TDDn==8?true:na,style=shape.triangleup,text="8", color=red,location=location.belowbar)
plotshape(TDDn==9?true:na,style=shape.triangleup,text="
(I have this source code can you please make it an ex4 file?)