Hi,
I'm trying to integrate an alert pop-up to an EFS study, at the moment I receive multiple alerts on the same bar once a condition is met. Is there a way to restrict the alert to once per bar? I would also like to display the current last price in the pop up when the alert is fired.
Thanks,
Eyal
I'm using this code:
function onAction1() {
drawShapeRelative(0, low(), Shape.CIRCLE, "", Color.RGB(255,255,255), Shape.LEFT);
Alert.playSound("ding.wav");
Alert.addToList(getSymbol()+" "+high()+" "+getInterval(), "Buy Alert", Color.black, Color.red);
vLastAlert = 1;
}
I'm trying to integrate an alert pop-up to an EFS study, at the moment I receive multiple alerts on the same bar once a condition is met. Is there a way to restrict the alert to once per bar? I would also like to display the current last price in the pop up when the alert is fired.
Thanks,
Eyal
I'm using this code:
function onAction1() {
drawShapeRelative(0, low(), Shape.CIRCLE, "", Color.RGB(255,255,255), Shape.LEFT);
Alert.playSound("ding.wav");
Alert.addToList(getSymbol()+" "+high()+" "+getInterval(), "Buy Alert", Color.black, Color.red);
vLastAlert = 1;
}
Comment