I have a little EFS script I wrote that gives an audible alert when the high/low of the current bar goes above/below a set threshold (variables: vPREMbuy and vPREMsell). It works flawlessly for $PREM on a 1min chart. However, when I use the symbol EPREM A0 instead, it does not trigger at all, desite the prices obviously crashing the trigger levels.
Why is this happening?... is there a way around this?
The basic main code is like this (very simple):
if (getBarState() == BARSTATE_NEWBAR) {
bAlert = false; }
if (high(0) >= vPREMbuy && bAlert==false) {
bAlert = true;
Alert.playSound(WaveFilePREMbuy); // Play the BUY audible
}
else if (low() <=vPREMsell && bAlert==false) {
bAlert = true;
Alert.playSound(WaveFilePREMsell); // Play the SELL audible
}
Why is this happening?... is there a way around this?
The basic main code is like this (very simple):
if (getBarState() == BARSTATE_NEWBAR) {
bAlert = false; }
if (high(0) >= vPREMbuy && bAlert==false) {
bAlert = true;
Alert.playSound(WaveFilePREMbuy); // Play the BUY audible
}
else if (low() <=vPREMsell && bAlert==false) {
bAlert = true;
Alert.playSound(WaveFilePREMsell); // Play the SELL audible
}
Comment