Hello,
I’m currently trying to translate this very simple indicator onto .PRT : https://www.tradingview.com/script/Pr9hTL4v-Supply-Demand-ZONE/
It is composed of 2 parts, and just detects a serie of HH HL using the condition below :
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)
My issue is, the original code seems to color the current candle, the candle[-1] and the candle[-2] . Is it possible to do with PRT ?
So far I’ve managed to color only the current candle and “redraw” the previous ones.
Any help is welcome, thank you!
Topic moved from th French support forum to the English one.
Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums. Thank you 🙂
Not possible to plot candlestick in the past with the DRAWCANDLE instruction. You’ll have to find another way to mark these bars in the past, with symbols for instance (DRAWTEXT).