OnTradeTransaction processing - page 10

 
Илья Ребенок:

What difference does it make how much volume an order will have? It is by the deal that I will understand what volume was actually executed. I think this is easier than catching partial order executions by the appropriate order type. In one of the topics, it was pointed out that only a deal makes us sure that the position has been executed.

Doesit work as it should?


I checked it this way

  1. I opened a position manually.
  2. The Expert Advisor automatically sets SL/TP.
  3. I would repeat step 1.
If I deleted the SL or TP, its partner was deleted automatically. I have tried different positions. Unloaded and restarted the Expert Advisor
 
prostotrader:

Can't you read?

"Good luck, I'm no longer involved."

Are you sure? Or maybe you have something else to say?)


fxsaber:

Is it working properly?


Checked it this way.

  1. I set a position by hand.
  2. The Expert Advisor automatically sets SL/TP.
  3. I would repeat step 1.
If I deleted the SL or TP, its partner was deleted automatically. I have tried different positions. Unloaded and restarted the Expert Advisor

I haven't tried OnTrade yet.

 

Just in case, for info.

I settled on the HISTORY_ADD transaction trigger. It works fine.