Slippage adjustment for 5digit brokers.
- Simple Solution for Requotes?
- error 138 in backtesting, please take a look into this code
- 4/5 digit broker question.
WBC
Thats correct
void HandleDigits() { // Automatically handles full-pip and sub-pip accounts if (Digits == 4 || Digits == 2) { Real.Slippage = Slippage; } if (Digits == 5 || Digits == 3) { Real.Slippage = Slippage*10; } }
Use Real.Slippage in your OrderSend
Good Luck
-BB-
Of course if your EA is multi-currency, you would use MarketInfo to get the digits of the pair of interest if its not the chart pair
Just because the broker is 'sub-pip' does not guarantee all pairs are quoted in sub-pips...
In particular, where a broker has changed their minimum MODE_LOTSTEP, you may have a mixture of full & sub-pip pairs...
FWIW
-BB-