Checking if Trade is closed on stoploss or takeprofit

Back to topics list  | 1 2 3 To post a new topic, please log in or register
avatar
250
ffoorr 2016.01.13 14:13 #
 

I mean MT4 is watching this distance :

( OrderClosePrice() - OrderStopLoss()  


the différence between the two is the slippage,

 if OrderStopLoss() is not modified, the way to find if order was closed by SL is still valid, only the slippage is added in comments, ( this has to be checked).

It would be usefull to have access to the two arrays of the comments, where are the informations ;-)

avatar
735
honest_knave 2016.01.13 15:42 #
 
GumRai:

It is worrying that I did not get a definitive answer as the broker can change the value. 

I can only say that in my experience, I have never seen an order closed at SL or TP that does not include SL,TP, sl or tp in the OrderComment.

The brokers that I use show nothing in their order comment field. I'm not sure if that is my brokers manually removing them, or they never got added.
avatar
735
honest_knave 2016.01.13 16:04 #
 
ffoorr:

I mean MT4 is watching this distance :


the différence between the two is the slippage, 

Unless the trade was closed manually, or by an EA, or by the broker (margin call). This is the crucial bit of information we cannot retrieve.

I agree with GumRai, it would be great if MetaQuotes implemented a "OrderCloseAction()" or similar to remove all this guess work.

 

Back to topics list   | 1 2 3  

To add comments, please log in or register