Written as a new indicator, and compiled in v7 run in v7, only the else line works....
the crossover lines never execute.
trigger and trend are DataSeries that hold the values i have computed and set into the plots.
if (CrossAbove(trigger, trend,1))
{
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\Attention_Cross.wav");
}
elseif (CrossBelow(trigger, trend,1))
{
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\Attention_Cross.wav");
}
else
{
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\A_Bar_Has_Closed.wav");
}
Any suggestions?
Comment