Sum of open position values (mt5)
How to start with MQL5
- 2020.03.12
- www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
Your help is indescribable, thank you very much!
string symbol=PositionGetSymbol(i); // get position currency pair symbol
double SellResultado = PositionGetDouble(POSITION_PROFIT);
Select a position first. via CPositionInfo or directly.
I am not able to get the sum of the open amounts. Can someone help me? Note: The sum of order quantity is ok.