Strategy tester intermittently shows real trades alongside simulated trades

 

As the title suggests, sometimes when I run strategy tester I get real trades alongside simulated trades. Below for example:

If you notice the first trade from the left has two close position icons (arrow up). One is the simulated trade placed during the test of the EA and the other is the actual one placed at the same time by the EA against my broker. Now there are other real positions opened on the same symbol by either myself or another EA I'm using. So this is extremely confusing when trying to debug an EA as I can't  easily see which ones are test positions and which ones are real at a glance. Only way is to hover over the arrow and based on the ticket number I can derive whether this is a real position or of the EA I'm currently testing. As you can see from the screenshot "Trade History" is not even selected, which presumably is done by default, when showing a chart after a test, to hide the real positions.

This doesn't always happen, some times I restart the machine and it's fixed. Or I change something in the EA or the Strategy Tester settings and again it's fixed.

Strange thing is that I even get this when switching trading accounts. So I'll switch from my real account to a demo account and whilst running a backtest on the demo account I get the positions from the real account shown on the chart :s. I mean, yikes...

Running MT5 build 5430 on macOS. This is clearly a glitch in MT5, but have other people run into the same problem and have you ever found a solution? Like clearing data folder or something?

 
akf:

As the title suggests, sometimes when I run strategy tester I get real trades alongside simulated trades. Below for example:

If you notice the first trade from the left has two close position icons (arrow up). One is the simulated trade placed during the test of the EA and the other is the actual one placed at the same time by the EA against my broker. Now there are other real positions opened on the same symbol by either myself or another EA I'm using. So this is extremely confusing when trying to debug an EA as I can't  easily see which ones are test positions and which ones are real at a glance. Only way is to hover over the arrow and based on the ticket number I can derive whether this is a real position or of the EA I'm currently testing. As you can see from the screenshot "Trade History" is not even selected, which presumably is done by default, when showing a chart after a test, to hide the real positions.

This doesn't always happen, some times I restart the machine and it's fixed. Or I change something in the EA or the Strategy Tester settings and again it's fixed.

Strange thing is that I even get this when switching trading accounts. So I'll switch from my real account to a demo account and whilst running a backtest on the demo account I get the positions from the real account shown on the chart :s. I mean, yikes...

Running MT5 build 5430 on macOS. This is clearly a glitch in MT5, but have other people run into the same problem and have you ever found a solution? Like clearing data folder or something?

With all due respect to both MetaQuotes and Apple - MetaTrader on Mac is a hassle at the moment.

Get Windows (Parallels Desktop on Mac) and focus on your strategy not chasing glitches. In case you are keen to use plain macOS - here is a thread where users manage successfully MT5/Mac 
https://www.mql5.com/en/forum/ 459758
MT5 Build 4120 MacOS M1-Data Folder Copy Paste Issue
MT5 Build 4120 MacOS M1-Data Folder Copy Paste Issue
  • 2023.12.30
  • www.mql5.com
Also the mt5 inside open data folder can not use the copy and paste function. To access it, follow these steps option, then click on it. I can not copy any file to the expert folder on macbook air m1 when i opened
 
Oleksandr Medviediev #:
With all due respect to both MetaQuotes and Apple - MetaTrader on Mac is a hassle at the moment.

Get Windows (Parallels Desktop on Mac) and focus on your strategy not chasing glitches. In case you are keen to use plain macOS - here is a thread where users manage successfully MT5/Mac 
https://www.mql5.com/en/forum/ 459758
Thanks for the reply. To be fair to MetaQuotes it’s not easy to bundle a windows app with Wine and get it to work as well as it does most of the times. It’s not ideal and has quite a few glitches but nothing is a blocker for my workflow so far. This annoying issue I’d like to be able to resolve consistently though as it makes strategy tester unusable.
 

akf #:
[N]othing is a blocker for my workflow so far...

[I]t makes strategy tester unusable.

The two statements above appear to contradict each other unless of course, you have no need to use the Strategy Tester.

As Oleksandr Medviediev alluded, Wine is the solution if you need to use the Strategy Tester.

 
Ryan L Johnson #:

The two statements above appear to contradict each other unless of course, you have no need to use the Strategy Tester.

As Oleksandr Medviediev alluded, Wine is the solution if you need to use the Strategy Tester.

ok, maybe the correct way to have phrased the above is that "Nothing is a blocker, *when* this works properly" :). As stated, this is intermittent.

When you say "Wine" is the solution, apologies but I'm not sure there's an alternative. I'm already running the Wine-based MT5 installation for macOS.

 
akf #:

ok, maybe the correct way to have phrased the above is that "Nothing is a blocker, *when* this works properly" :). As stated, this is intermittent.

When you say "Wine" is the solution, apologies but I'm not sure there's an alternative. I'm already running the Wine-based MT5 installation for macOS.

There's an app for that. Unfortunately, it can't be named here. It runs Windows 11 in Mac.