Order with these parameters already exists and duplicate trades are not allowed. Canceling order..

 

Hello,

Market Order #1 was 

1 2017.08.31 19:25 sell 1 0.10 1.19005

at  2022.09.11 13:01:20.080 Trys to open another sale order with price 1.19079000.

Although these orders do not have the same parameter it rejects it. Strange.

Please advise

2022.09.11 13:01:20.080 2017.09.01 02:55:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.09.01 02:55 Order with these parameters already exists and duplicate trades are not allowed. Canceling order...

2022.09.11 13:01:20.080 2017.09.01 02:55:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.09.01 02:55 Opening order type SELL with price 1.19079000. Current market prices: 1.19133000 / 1.19079000

2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.08.31 19:25 Order modified successfully

2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: modify #1 sell 0.10 EURUSD at 1.19005 sl: 0.00000 tp: 1.18505 ok

2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.08.31 19:25 Modifying order with ticket: 1, SL: 0.00000000 and PT: 1.18505000

2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: open #1 sell 0.10 EURUSD at 1.19005 ok


 
Does your broker block orders at the same price?
 
siakzar1: Market Order #1 was  1 2017.08.31 19:25 sell 1 0.10 1.19005 at  2022.09.11 13:01:20.080 Trys to open another sale order with price 1.19079000.

Although these orders do not have the same parameter it rejects it. Strange. Please advise

2022.09.11 13:01:20.080 2017.09.01 02:55:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.09.01 02:55 Order with these parameters already exists and duplicate trades are not allowed. Canceling order...
2022.09.11 13:01:20.080 2017.09.01 02:55:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.09.01 02:55 Opening order type SELL with price 1.19079000. Current market prices: 1.19133000 / 1.19079000
2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.08.31 19:25 Order modified successfully
2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: modify #1 sell 0.10 EURUSD at 1.19005 sl: 0.00000 tp: 1.18505 ok
2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: - SQ LOG 2017.08.31 19:25 Modifying order with ticket: 1, SL: 0.00000000 and PT: 1.18505000
2022.09.11 13:01:20.071 2017.08.31 19:25:00  Aroon-Test Sl-BE-Main1 - Optimization 0.9.753 EURUSD,M5: open #1 sell 0.10 EURUSD at 1.19005 ok

Please note that those log entries are being generated by the EA itself, and not the platform.

So, it is the EA's strategy that is preventing it. Have the EA fixed, if that is not what you intend.

 
Fernando Carreiro #:

Please note that those log entries are being generated by the EA itself, and not the platform.

So, it is the EA's strategy that is preventing it. Have the EA fixed, if that is not what you intend.

Dear Fernando

Thanks so much, you are absolutely right, it was the code.

 
siakzar1 #:Dear Fernand. Thanks so much, you are absolutely right, it was the code.

You are welcome!

Reason: