NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Charting

Charting Support for NinjaTrader Advanced Charting.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-09-2011, 01:38 PM   #1
redartajnin
Junior Member
 
Join Date: Dec 2011
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default simple question on Charting, first 20 bars missing?

Just created a simple indicator to plot the closing price of each bar, on the chart, the plot always starts from the 21st bar, the first 20 bars are not plotted, why is that?

protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Overlay = false;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(Close[0]);
}
Attached Images
File Type: jpg Untitled.jpg (146.5 KB, 2 views)
redartajnin is offline  
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Vol indicator Not plot first 20 bars? zacharydw00 Version 7 Beta General Questions & Bug Reports 5 11-01-2010 09:43 AM
NT 7 beta 20 chart data missing Operandi Version 7 Beta General Questions & Bug Reports 9 08-26-2010 09:54 AM
Missing first 20 bar information. grahamwillsher Miscellaneous Support 7 07-14-2010 01:55 PM
simple charting question z32000 Charting 3 11-30-2007 01:07 AM
simple charting question z32000 Charting 1 11-22-2007 01:44 PM


All times are GMT -6. The time now is 05:36 AM.