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?.
Rename
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.
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.
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.
Your Response
Post
Edit Post
Login is required