Get Values of a Closed Trade
-
I am creating a EA where I need to create new "Pending Orders" based on a closed trade due to TP/SL.
So my Trigger is going to be "on Trade" and I am going to use the "Close Trade" block and then connect the "Buy/Sell Pending" oder block to it.
The details I enter in the "Pending Order" depends on the values in the "Close Trrade" How do I get the values from the trade that just closed so I can use them for create a "Pending Order"?
I need the following value from the "Close Trade"
The price at which it closed?
If it was a Buy or Sell Order?
What was the lot size?
How many pips were made or lost?I get the
-
you can get these values using "Pink blocks" like "For each closed trade" and after them connect block "Modify variables" and save these values into variables ...
