- ago
I have some custom indicators that I would like to drop on charts but need to draw lines between two price bars (e.g., support levels). Is this possible within a custom indicator?.
0
709
Solved
2 Replies

Reply

Bookmark

Sort
Cone8
 ( 24.57% )
- ago
#1
Indicators are really a TimeSeries of values. If your line values are the indicator values, then they'll be plotted by plotting the indicator with a Plot statement.

I suspect that you want more ad-hoc plotting of those levels. You could make those support levels another custom indicator based on other indicator(s). Where you don't want those levels to be plotted, set the value of those bars to Double.NaN and make sure to use PlotStyles.Dots.
0
Best Answer
- ago
#2
Thank you! That is where I am currently. However, I would like to draw a line starting from the first fractal, within a specified lookback, that contributed to the identification of the support level. This line would then extend with each new bar until the support level ages out.
0

Reply

Bookmark

Sort