// 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
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...