Using variable spread for 'accuracy' in the backtest is not recommended, for the reasons mentioned in the manual. But if you want to still do it, use historical data with spread and modify the Spread variable. To my knowledge, FXCM historical data has spread in the marketVal parameter.

if(is(TESTMODE)) Spread = marketVal();