How do i calculate the margin of a symbol?

To add comments, please log in or register
Hendrik Liebchen
137
Hendrik Liebchen  

Hey guys,

ive found several threads about how to calculate the necessary margin in mt4 to open a position but i cant find the 

function to calculate it in mql5. 


i want to know how to calculate how much margin it costs to open 0.1 or 1 LOT for a _Symbol without opening a Trade. 


regards

Anthony Garot
1843
Anthony Garot  
but i cant find the function to calculate it in mql5. 
https://www.mql5.com/en/docs/trading/ordercalcmargin
Documentation on MQL5: Trade Functions / OrderCalcMargin
Documentation on MQL5: Trade Functions / OrderCalcMargin
  • www.mql5.com
The function calculates the margin required for the specified order type, on the current account, in the current market environment not taking into account current pending orders and open positions. It allows the evaluation of margin for the trade operation planned. The value is returned in the account currency. [out]  The variable, to which...
To add comments, please log in or register