Say I am using RSI on a chart. To move the OB and OS line values I need to change the values under the Lines section in the Indicators GUI. Within a strategy I know I can change these lines by adding lines like:
RSI(14,1).Lines[0].Values = 85;
However, is it possible to do the same within an indicator. That is, can I add user defined parameters that will make the same change when I plot the indicator on a chart? I have tried but it doesn't seem to work. If I define an OB variable as 75 under Variables and then use
Add(new Line(Pen, OB, "OB LINE"));
I'm guessing there is no way around this because it all happens in Initialize()?
Cheers,
darmbk.
Comment