saving last closed trade's profit or loss pips in variable
-
is there any way of doing this:
saving last closed trade's profit or loss pips in variable -
i think you need to use these blocks bro

-
@fabien-s naaahhh these blocks sums up multiple trades and then save the result in the variable , i only need the last closed trade's statistics
-
@zackry https://www.mql5.com/en/market/product/3031#!tab=tab_p_overview
try out using a tool like this and use the values from it
-
@fabien-s thanks, but at the moment I am trying to figure out a way to keep everything inside of one ea file,
So if I use this, I will have to send out the indicator along with the ea, which I don't want


-
You can do it through the 'On Trade' tab. Pick a 'Trade closed' and then link a variable block below it. That way you will pick up the value of the last closed trade.
-
@l-andorrà do you mean something like this ?

-
Exactly. You can choose any item from the display there.
-
@l-andorrà cool, thanks