MT5 Build 3081 Trade Settings

 

Hi,

I am trying to test my EA on EURUSD history data.

When the EA tries to place a pending order, the following error is returned:


2021.10.17 12:31:27.225 2021.03.01 00:00:03   failed buy limit 0.5 EURUSD at 1.20300 [Only position closing is allowed]

2021.10.17 12:31:27.225 2021.03.01 00:00:03   failed sell stop 0.5 EURUSD at 1.20200 [Only position closing is allowed]


I couldn't find the 'Settings' button in the strategy tester, so I right clicked on the pair in the 'Market Watch' window and then clicked 'Specifications'. The 'Trade' is marked as 'Close Only' and cannot be changed.

I appreciate any help to solve this matter.



 

2021.10.17 12:31:27.225 2021.03.01 00:00:03   failed buy limit 0.5 EURUSD at 1.20300 [Only position closing is allowed]

Forex market is closed during the weekend.