Hi How can I make this code to not sleep all program? I want when price triggers it send only one notification and time how often notification should be send. Thanks!
if(Bid <= YesterdayHigh && Bid >= YesterdayLow){
SendNotification(Symbol() + "Current Price is Between High and Low");
Sleep(minutes);
return;
}
//---IF Price is higher than yesterdays higherif(Bid >= YesterdayHigh){
SendNotification(Symbol() + "Price Higher Than Yesterday High");
Sleep(minutes);
return;
}
//---IF Price is lower than yesterdays lowerif(Bid <= YesterdayLow){
SendNotification(Symbol() + "Price Lower Than Yesterday Low");
Sleep(minutes);
return;
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi How can I make this code to not sleep all program? I want when price triggers it send only one notification and time how often notification should be send. Thanks!