In the EFS below the bar gets painted red if parameters occur.
That works fine. But I just added the 2 lines immediately below.
I would like the program to beep ( phone.wave) me if the LAST bar gets painted red but it is beeping on EVERY bar.
What am I doing wrong? Thanks for any suggestions.
if (vColor = Color.red)
Alert.playSound( "C:\ProgramFiles\eSignal\Sounds\phone.wav");
if ( h > h1 && h > h2 && h > h3 ...
vColor = Color.red;
if (vColor != null)
setPriceBarColor(vColor);
setDefaultPriceBarColor( Color.black );
setComputeOnClose()
if (vColor = Color.red)
Alert.playSound( "C:\ProgramFiles\eSignal\Sounds\phone.wav");
return;
}
That works fine. But I just added the 2 lines immediately below.
I would like the program to beep ( phone.wave) me if the LAST bar gets painted red but it is beeping on EVERY bar.
What am I doing wrong? Thanks for any suggestions.
if (vColor = Color.red)
Alert.playSound( "C:\ProgramFiles\eSignal\Sounds\phone.wav");
if ( h > h1 && h > h2 && h > h3 ...
vColor = Color.red;
if (vColor != null)
setPriceBarColor(vColor);
setDefaultPriceBarColor( Color.black );
setComputeOnClose()
if (vColor = Color.red)
Alert.playSound( "C:\ProgramFiles\eSignal\Sounds\phone.wav");
return;
}
Comment