Code2219 or 2319:
2. is this calculation limited to SYMBOL_CALC_MODE_FOREX only ? (is this the variable I should check before using the above code ?)
and, if someone knows of a broker with SYMBOL_CALC_MODE_FOREX_NO_LEVERAGE mode, which i can do some tests on its demo accounts, it will be great.
thanks.
Since the EA i'm writing will be used only on forex pairs, should I check the SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE) ?
1.
is this
SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE), a reliable checkup to be
sure if EA is activated on a forex pair (and not on OIL and other stuff) ?
and I have added the following (limiting the max leverage usage) to my code :
Now, it does the job, but2. is this calculation limited to SYMBOL_CALC_MODE_FOREX only ? (is this the variable I should check before using the above code ?)
and, if someone knows of a broker with SYMBOL_CALC_MODE_FOREX_NO_LEVERAGE mode, which i can do some tests on its demo accounts, it will be great.
thanks.
An answer to this coulda helped.
I've found SYMBOL_CALC_MODE_FOREX_NO_LEVERAGE mode with the broker XM.COM but just with some symbols, e.g. EURDKK, EURHKD

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
- www.mql5.com
Symbol Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

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
Since the EA i'm writing will be used only on forex pairs, should I check the SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE) ?
1. is this SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE), a reliable checkup to be sure if EA is activated on a forex pair (and not on OIL and other stuff) ?
and I have added the following (limiting the max leverage usage) to my code :
Now, it does the job, but2. is this calculation limited to SYMBOL_CALC_MODE_FOREX only ? (is this the variable I should check before using the above code ?)
and, if someone knows of a broker with SYMBOL_CALC_MODE_FOREX_NO_LEVERAGE mode, which i can do some tests on its demo accounts, it will be great.
thanks.