Margin calculation modes
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.
- www.mql5.com
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.