Daniel Arges:
Use MarketInfo(Symbol(),MODE_MARGINHEDGED)
Hi geeks,
How can I calculate an instrument margin required, based on Symbol Info numbers?
Maybe I could use SYMBOL_MARGIN_HEDGED?
Tks
Thank you. It seems it does not apply for MT5 :(
Daniel Arges:
Thank you. It seems it does not apply for MT5 :(
Thank you. It seems it does not apply for MT5 :(
https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_calc_mode

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
- www.mql5.com
To obtain the current market information there are several functions: SymbolInfoInteger(), SymbolInfoDouble() and SymbolInfoString(). The first parameter is the symbol name, the values of the second function parameter can be one of the identifiers of ENUM_SYMBOL_INFO_INTEGER, ENUM_SYMBOL_INFO_DOUBLE and ENUM_SYMBOL_INFO_STRING. Some symbols...
tks.
SymbolInfoMarginRate() needs SYMBOL_MARGIN_MAINTENANCE as parameter. And for all symbols is 0 or null, from my broker! :(
Sorry for now. My code has and error. I´m fixing. tks guys

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
Hi geeks,
How can I calculate an instrument margin required, based on Symbol Info numbers?
Maybe I could use SYMBOL_MARGIN_HEDGED?
Tks