past trade ?

 
is it posible to obtain infromation about last trade like, was profitable and another information?
 
PrzemekB,
In order to get past trade information you should use OrderSelect function with MODE_HISTORY parameter.
The following example will tell you the profit of your last closed order.


int total = HistoryTotal();
OrderSelect( total - 1, SELECT_BY_POS, MODE_HISTORY );
Print( OrderProfit() );


Hope this help

Matias Romeo
Custom Metatrader Systems
matiasdotromeoatgmail.com
 
thanks :)
Reason: