Look in the manual under "Pipcost", there you can find an example code for producing variable pipcost. It is normally not recommended though, at least not for strategy backtests.