Hi, I want to use an alert that will trigger when price crosses a certain level at any point in the day. I am using 5-minute charts and my EFS code looks something like this:
if(close(-1) < priceLevel && close() >= priceLevel) {
triggerAlert();
}
I want the alert to happen the first time this statement becomes true in a 5-minute bar (even if its 2 minutes in), but right now I only get signals when I reload a different chart or at the end of a 5-minute bar. I have also unchecked "make all forumlas compute on close" in the EFS settings.
Thanks for any help.
if(close(-1) < priceLevel && close() >= priceLevel) {
triggerAlert();
}
I want the alert to happen the first time this statement becomes true in a 5-minute bar (even if its 2 minutes in), but right now I only get signals when I reload a different chart or at the end of a 5-minute bar. I have also unchecked "make all forumlas compute on close" in the EFS settings.
Thanks for any help.
Comment