| / | Forum |
|
investor_me
2006.10.25 16:27
In my EA, there is need to find the exact profit generated in the last closed trade,
which is usually exited by SL or take profit. How can I know if the last order
exited with SL or TP and the profit generated from it?
Thanks |
|
Interaction between MetaTrader 4 and Matlab via CSV Files Step-by-step instructions of how to organize data arrays exchange between MetaTrader 4 and Matlab via CSV files. |
|
Digger
2006.10.26 02:03
|
|
investor_me
2006.10.26 13:38
Digger wrote:
|
|
Craig66
2006.10.26 22:14
I was under the impression that the numerical order of the MODE_HISTORY collection
was not the order in which the trades were closed.
Therefore one has to find the closed trade with the biggest timestamp, can somebody at Metaquotes clarify this? |
|
Craig
2006.10.28 21:32
...a tumbleweed rolls by...
|
|
investor_me
2006.10.28 23:58
I worked my way through the above function and it seems to correctly identify the
last closed order. It worked fine for me because I have only one order open at
a time. But I understand that others who want to use the function for multiple
simultaneous orders, this may need to be worked out more thoroughly and delicately.
|