PDA

View Full Version : Indicator value = 0 for new entries on strategy


ct
04-05-2009, 07:16 PM
I have RSI bands from this forum in a strategy. When I apply the strategy to a chart it works correct for anything already on the chart but for each current/new tick I get a value of zero:

RSIBands(14, 30, 70).RSIBandLower[0]

I am also getting zero for new entries for another indicator than is a clone of the Bollinger indicator but uses Jurik.

I am writing an entry to the log for each tick to display the value so I can see any old entries are correct but anything new is zero.

The strategy has 3 added time frames. The strategy chart is a volume chart.

Any ideas or suggestions?

in summary: old entries OK, new tick entries indicator values = 0.

NinjaTrader_Bertrand
04-06-2009, 05:49 AM
Hi ct, thanks for your post - please remove any CalculateOnBarClose setting from the indicator(s) you reference and retry this.

ct
04-06-2009, 06:07 AM
Bertrand

you are a star! That seems to have fixed it. many thanks.

ct