{
if ( (Close[1] > Upper[1])
&& (Close[2] > Upper[2])
&& (Close[3] < Upper[3])
&& (Close[4] < Upper[4]) )
{
if (PlotVert)
{
Draw.VerticalLine(this, @"bands long" + CurrentBar, 2, Brushes.Lime, DashStyleHelper.Dash, 1);
}
if (bandsignalsound && ( (Close[1] > Upper[1]) && (Close[2] > Upper[2]) && (Close[3] < Upper[3]) && (Close[4] < Upper[4]) ))
{
PlaySound(NinjaTrader.Core.Globals.InstallDir + @"\sounds\glassbreaking.wav");
}
just plays endlessly - till i toggle off bandsignalsound and reload ninjascript on that chart.... yoiks!!
- i repeated the conditions for the signal with the toggle to see if that would help cause i though it would make it last for only one bar - but that didn't help...
Comment