CalculateOnBarClose set to true. I would expect to see the log message printed in the Log once for every 5 minutes. However, I am seeing many messages that seem to suggest that
NT prints out the message for every tick. I did make sure "CalculateOnBarClose" is set to true
when I added the indicator to the chart. What was wrong with the following indicator code ?
Peter
-------
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
CalculateOnBarClose = true;
Overlay = false;
PriceTypeSupported = false;
}
protected override void OnBarUpdate()
{
Log("Test CalculateOnBarClose", NinjaTrader.Cbi.LogLevel.Information);
Plot0.Set(Close[0]);
}
Comment