Inside an indicator, I have the following lines...
{
if(UseAlertSound) PlaySound(SoundFile);
if(UseAlertPopUp) Alert(Symbol(),Period(), " QQEA crossed level ", AlertLevel, " DOWNwards");
TimeStampL = Time[0];
}
I have generated a .wav file to play as the SoundFile, and confirmed that the sound will play when called alone. But if both UseAlertSound and UseAlertPopUp are true, the SoundFile does not play. Can anyone tell me what I need to change to get this logic to work?
Similarly, and probably related, I have been unable to get the following to play 2 sound files secquentially.
PlaySound(SoundFile);
PlaySound(SoundFile2);
PlaySound(Alert1);
Can anyone tell me why? and what is needed to fix it?
{
if(UseAlertSound) PlaySound(SoundFile);
if(UseAlertPopUp) Alert(Symbol(),Period(), " QQEA crossed level ", AlertLevel, " DOWNwards");
TimeStampL = Time[0];
}
I have generated a .wav file to play as the SoundFile, and confirmed that the sound will play when called alone. But if both UseAlertSound and UseAlertPopUp are true, the SoundFile does not play. Can anyone tell me what I need to change to get this logic to work?
Similarly, and probably related, I have been unable to get the following to play 2 sound files secquentially.
PlaySound(SoundFile);
PlaySound(SoundFile2);
PlaySound(Alert1);
Can anyone tell me why? and what is needed to fix it?