I've got a script that uses "public override void Plot()". I want to put that code in the OnBarUpdate() section. I want to do that because I want to pass a value, calculated in the Plot() method to a StringSeries variable. Then I can access that variable from a strategy.
Currently, if I create a StringSeries variable in the Plot() section the value is not accessible from a strategy.
It seems that the StringSeries variable has to be in the OnBarUpdate() section to work properly.
If that is correct how do I put the "public override void Plot()" code in the OnBarUpdate() section?
I'm attaching the code.
Thanks
Comment