Appreciate if anyone can help me modify EA code below to play sound/alert ONLY when iSAR value transitions from below the bid price to above the ask price and vice versa. Thanks, Alfie.
double MySARValue = iSAR(_Symbol,_Period,0.02,0.2,0);
signal = PlaySound ("alert.wav");
signal = "BUY";
signal = PlaySound ("alert2.wav");
signal = "SELL";
Comment ("MySARValue: ",MySARValue,"\n","Signal: ",signal);
Why did you post your MT4 question in a MT5 section instead of the MQL4 section, (bottom of the Root page)? General rules and best pratices of the Forum. - General - MQL5 programming forum? Next time post in the correct place. The moderators will likely have moved this thread there soon.
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.) General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06 Messages Editor
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem. No free help 2017.04.21
Or pay someone. Top of every page is the link Freelance. Hiring to write script - General - MQL5 programming forum 2018.05.12
You are looking at a signal. Act on a change of signal. MQL4 (in Strategy Tester) - double testing of entry conditions - MQL5 programming forum #1 2017.12.12
Please enable the necessary setting in your browser, otherwise you will not be able to log in.