PDA

View Full Version : Function error if CalculateonBarClose True


JamesMH
11-25-2009, 04:15 PM
I am getting a problem where when I call an indicator intrabar I.E.

Indicator.Data[0]

It returns 0 instead of the actual value.

I found a way to fix this by changing the Function Indicators CalculateOnBarClose to false,the problem though is that I want to have this indicators default set to true and I do not want to include any more parameters in the function. Is there another way to fix this?

NinjaTrader_Bertrand
11-26-2009, 05:50 AM
James, unfortunately not with NinjaTrader 6.5 as there's a known bug for indicators and strategies if CalculateOnBarClose is set via the referenced indicators Initialize() method.