PDA

View Full Version : Indicator not plotting for first 21 bars on replay chart


michelm
01-30-2010, 08:48 AM
Hi,

My indicators do not plot until the 21st bar on a playback chart using a "market replay connection".

They do calculate, because the indicator "price marker" shows on the chart even when the indicator is not plotting on the chart.

So attached is a Playback screenshot of ES 03-10 with a 2 period simple moving average. The blue SMA line does not start plotting until the 21st bar.

I used the goto feature on the playback control to start the chart a 9:30 AM

Must be missing something simple. Search help\forums ever way I could think of....

Using NT 7.0.0.7

Thanks

NinjaTrader_Ben
01-30-2010, 11:56 AM
Hello,

I am not trained on NT7, but in NT6.5 you can double click the chart and change "show unstable period..." to true and it will plot the plots where you don't have data for the full calculations.

michelm
01-30-2010, 12:01 PM
Thanks, will check that out

michelm
01-30-2010, 12:18 PM
Thanks Ben, I searched on the "unstable period" term you mentioned and found this post:

http://www.ninjatrader-support2.com/vb/showthread.php?p=141695

I am really trying to get it to plot with a custom indicator. I just used the built in SMA in my post to eliminate the chance that I did something wrong.

I just went into initialize() and added BarsRequired = 0;

Worked!!!!

Did not find a way to do it from the chart menu in 7, but I'm good.

Thanks Ben