It's a sell trade, the SL it's triggered by Ask, not by Bid.
These are all valid points. I've changed spread to 30 (very close to the real one) but nothing changed in SL behavior.
Spread cannot be more than 800 points to close SL in the example above based on the Ask price.
These are all valid points. I've changed spread to 30 (very close to the real one) but nothing changed in SL behavior.
Spread cannot be more than 800 points to close SL in the example above based on the Ask price.
Are you using tick data suite or something that can change the spread into the tester?
No, I was using the regular tester functionality and regular ticks data.
However, after our conversation, I found that the same test worked properly on the other MT4 from another broker.
This made me think that this could somehow related to the price history data.
I tried to remove all history data for 1m and 15m from the MT4 that failed the test and imported price history data for the same timeframes from the other MT4 that worked properly.
After that, the test worked properly on both MT4s. So, the problem was in the ticks/15m data. I'm not sure how even broken data can look like normal bars but make the tester fail, though.
Anyway, the problem is solved and the lesson is learned, that in any strange situation check historical data again.
BTW, don't you know a nice place where I can download full years of historical data?
I found a few websites, but the data is either short, incomplete, or broken into small pieces, making it hard to import.
Thanks!
- 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,
Please help me to understand what is going on here.
I faced a strange SL behavior in MT4 Strategy Tester when order closes on SL without price even approaching it.
Symbol: GOLD
Timeframe: 15min
Order Time: 21.08.2024 8:00
Order Price: 2509.60
SL: 2517.60 (+800 points)
SL triggered on: 21.08.2024 8:45
Bar on 8:45:
So High is not even close to 2517.60
Here is how it looks on the chart:
Results tab:
Minimal code that reproduces the problem:
Please help, this driving me crazy.