
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Returns the margin in the account currency for performing a specified trading operation. It's double .
order_calc_margin (
action , // order type (ORDER_TYPE_BUY or ORDER_TYPE_SELL )
symbols , // symbol name
volume , // volume
price // opening price
)
You are mixing apples and oranges. "order_calc_margin" is for Python API for MetaTrader 5, not MQL5. It is the same functionality as "OrderCalcMargin" in MQL5.
"CAccountInfo::MarginCheck" is just an OOP wrapper for "OrderCalcMargin".