Tarzana, CA
Experience: Intermediate
Platform: TOS, TS, MC, NT8, MT4
Trading: Futures: ES, CL, NQ, HO, SI
Posts: 9 since Jul 2017
Thanks Given: 6
Thanks Received: 6
|
Hello - I'm trying to write a study that connects the lows between 2 or more candles with equivalent lows. *I wrote this:
plot PatternPlot5 = if (low[-1] == low or low[1] == low,low,DOUBLE.NAN);
PatternPlot5.SetPaintingStrategy(PaintingStrategy.LINE_vs_POINTS);
PatternPlot5.SetDefaultColor(color.red);
which works most of the time when two or more candles have equivalent low values, but it's drawing some diagonal lines between two sets of equivalent candles, which I'm trying to avoid. *I'd like to use LINE and not DASHES as a painting strategy because my goal is to connect the low wicks/shadows, of matching low candles.
Do you have any suggestions, recommendations on how I might modify my script to get it to work correctly and not show the diagonal lines?
|