I would like to add a dataserie and indicators in my strategy that the time period and other variables would be predetermined and relative to the price of the symbol. For example, for a ticker with a stock price of 20$ the strategy would add a dataserie of 10 minutes and if above 50$ it would add a dataserie of 20 minutes.
So in summary, I would like the ninjascript to read the symbol current price before the OnBarUpdate method, just once at the launch of the strategy. Is there any way to do this?
Thanks for your help.

Comment