Mohamed Adel
Mohamed Adel
  • Information
8+ years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Friends

Add friends via their profile or user search and you will be able to see if they are online

Mohamed Adel
Added topic oldest open Position price - mql5
 Hello,   now i can get the last/newest position info buy this code   PositionSelect ( _Symbol ) ; ulong position_ID= PositionGetInteger ( POSITION_IDENTIFIER ); long create_time_msc= PositionGetInteger ( POSITION_TIME_MSC ); long
Mohamed Adel
Added topic get the current open position open price and profit - mql5
Hello,   i need a simple code by simple steps to get the current open position open price and profit using mql5    thanks, 
Charles Wachira
Charles Wachira 2015.08.02
for(int i=0;i<OrdersTotal();i++)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
Print(OrderOpenPrice(),OrderProfit());
}
Charles Wachira
Charles Wachira 2015.08.02
that print part is just a demostration of the two functions you want
Mohamed Adel
Mohamed Adel
hello world
Mohamed Adel
Registered at MQL5.community