I made a typo! Should read Mql5 test result = horrible & Mql4 test result = great.
MT5 has the spread in history. MT4 uses what you set. Set it correctly and you'll get horrible results in MT4 also.
Always specify. Don't use current. Most brokers with variable spread widen considerably at end of day (5 PM ET) ± 30 minutes. My GBPJPY (OANDA) shows average spread = 26 points, but average maximum spread = 134.
Always specify Don't use current
The spread is constant during the run. It is the current spread for the pair (your broker,) at the moment you start the test.
If you start the test on the weekend, the current spread is likely to be very large.
Most brokers with variable spread widen considerably at end of day (5 PM ET) ± 30 minutes. My GBPJPY (OANDA) shows average spread = 26 points, but average maximum spread = 134. The charts show Bid prices only. Turn on the Ask line to see how big the spread is, Tools → Options (control+O) → charts → Show ask line.
Hi everyone,
I'm a newbie when it comes to the MQL5 version. I took the exact script I used in MqL4 and adjuste it to Mql5 for learning purposes. To my surprise, the tester result was horrible in Mql5, while the tester result in Mql5 was outstanding. Am I doing something wrong?? Please help and thank you.
Code
OrdersTotal()
- this is mistake. There are no pending orders! You have a POSITION. And positions are defined as follows:
PositionsTotal()
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone,
I'm a newbie when it comes to the MQL5 version. I took the exact script I used in MqL4 and adjuste it to Mql5 for learning purposes. To my surprise, the tester result was horrible in Mql5, while the tester result in Mql5 was outstanding. Am I doing something wrong?? Please help and thank you.