in an Indicator in 70 Tick, I need SMA, 5 bars ago :
if ((SMA(50)[5] > SMA(100)[5])
&& (SMA(100)[5] > SMA(200)[5]))
{
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\Alert4.wav");
}
dont made sound Alert4
BUT this next works perfectly in 0 Bars ago and ma
if ((SMA(50)[0] > SMA(100)[0])
&& (SMA(100)[0] > SMA(200)[0]))
{
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\Alert4.wav");
}
give the Alert4 sound
Where is the difference ?
What can I do to use SMA (X) in 5 bars ago
Thanks in Help
Comment