I know how do make custom plots within an indicator but the same code does not seem to work within a strategy. So, can someone point me to a help section/thread that explains customs plots inside a strategy? I am trying to avoid running an indicator and a strategy and put all my plots and such within the strategy.
The first plot I am trying to achieve is simple...take the closing price, add 10 ticks, and draw a line on the chart. Something like:
CustomPlotName.Plots[0].Pen.Color = Color Green;
Add (CustomPlotName(Close[0] + TickSize*10));
Would I need to declare some sort of variable to do this?
And, I need to know if I can turn off the plot with a simple if statement since the plots are both defined and added under the Initialize section? As you may know, with an indicator, a plot can be defined under Initialize and added under OnBarUpdate, which gives more control when it is shown on the chart. I am not finding that flexibility with a strategy.
Thanks Much
Comment