and included them in my existing indicator.
(see extract hereunder)
Then i clicked on "compile" and closed the edit-window.
Now the sounds are not playing when the conditions are met ?
What did i do wrong ?
Programming fault ?
The indicator is attached.
PS. Please detailed instructions, i am not a programmer !
Gilbert.
double val = Low[bar+1] - ( TickSize * ArrowDisplacement );
DrawArrowUp(CurrentBar.ToString(),1, val , barColorUp );
//data[ data.Count - 1] = val * -1;
//setData( data, bar, val * -1 );
if (soundon && FirstTickOfBar){
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\long.wav");
}
}
//else if( lastDirection > direction )
else if (Signal[0] == -1 && Signal[1] != -1)
{
double val = High[bar+1] + ( TickSize * ArrowDisplacement );
DrawArrowDown(CurrentBar.ToString(),1, val, barColorDown );
if (soundon && FirstTickOfBar){
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\short.wav");
Comment