maxpi
11-08-2007, 07:15 PM
The following code stops plotting to the chart all the time when running on intraday data and updating every tick. If I format the indicators it will update but it will stop again after awhile. When it stops updating the plot to the chart, I believe it also does not alert but it does continually update the number at the right of the screen.
{
if (CurrentBar < 4)
return;
if (Bars.PercentComplete>0)
{
Plot0.Set(Volume[0] /Bars.PercentComplete);
}
if (Volume[0] /Bars.PercentComplete > 1.2 *Volume[1])
{
if (alarmOn ==1)
{
Alert("myAlert", NinjaTrader.Cbi.Priority.High, "PRV", "Alert1.wav", 90, Color.Black, Color.Yellow);
}
}
}
{
if (CurrentBar < 4)
return;
if (Bars.PercentComplete>0)
{
Plot0.Set(Volume[0] /Bars.PercentComplete);
}
if (Volume[0] /Bars.PercentComplete > 1.2 *Volume[1])
{
if (alarmOn ==1)
{
Alert("myAlert", NinjaTrader.Cbi.Priority.High, "PRV", "Alert1.wav", 90, Color.Black, Color.Yellow);
}
}
}