The cross above works fine and plot the diamons and sound.
The cross below is not ploting a thing.
Please see attached and please if anyone can get it, please do.
protectedoverridevoid OnBarUpdate()
{
if (CrossAbove(jWilliams2(8,14,0),22,1))
{
// play sound
DrawDiamond("Diamond"+CurrentBar, 0, Low[0] - 3*TickSize, Color.Black);
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\Alert1.wav");
}
if (CrossBelow(jWilliams2(8,14,0),80,1))
{
// play sound
DrawDiamond("Diamond"+CurrentBar, 0, High[0] + 3*TickSize, Color.Black);
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\Alert1.wav");
}
Comment