vatco:
Yes, I have a mini account, but I'm trying the scripts in the trial account.
i did set up demo account just for you.... it has been confirmed - - - your problem is genuine... non such a script works there.... is there any one out there knowing bit more about them suffix... as i suspect it may be the reason. due to luck of time i didn't work on my previous conclusions.
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.
Yes, I have a mini account, but I'm trying the scripts in the trial account.
i did set up demo account just for you.... it has been confirmed - - - your problem is genuine... non such a script works there.... is there any one out there knowing bit more about them suffix... as i suspect it may be the reason. due to luck of time i didn't work on my previous conclusions.
Thanks a million for all your replies!! All the scripts posted work! ForexCoder and nicwaznego's code are perfect!
Special thanks to nicwaznego for finding my problem!!!!
!!! PROBLEM SOLVED by clicking on the allow live trading option!!!
Thanks all for your time!