I have small technical problem with NinjaTrader strategy and hope you will help to solve it.
PreCondition: CalculateOnBarClose = false
What should be done: price should cross WMA(period = 89 days) and enter the position.
What I am trying to do:
Add(PeriodType.Tick, 1); //ticks for detection of crossing Add(PeriodType.Day, 1); //for WMA indicator
if (CrossBelow(Closes[1], WMA(BarsArray[2], WMA_period)[0]) ... // and so on
What I receive:
NinjaTrader loads tick data too much time. I think it tries to load tick data for all 365 days that on the chart. So as a result I see that NinjaTrader hangs and takes too much memory ( about 1.7 Gb)
Could you please advice me how to avoid such situation and make my strategy work.
Thank you very much for help in advance.
Comment