Slippage Inconsistently Applied in Backtests  [SOLVED]

Questions about MultiCharts and user contributed studies.
User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Slippage Inconsistently Applied in Backtests

Postby MC_Prog » 25 Nov 2015

Hi.

I seem to be observing that slippage is being inconsistently applied during backtests. In some cases it seems to be once per-side (twice per position), and in some cases it seems to be once per-position.

Image

Shouldn't slippage always be applied once per-side (twice per position)?

In any case, the application should be the same for every trade, yes?

Am I maybe not seeing what I think I'm seeing?
Attachments
MC_Slippage_Application_Error_01.png
Inconsistent slippage
(98.63 KiB) Downloaded 756 times

FutureTrader
Posts: 79
Joined: 28 Mar 2013
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Slippage Inconsistently Applied in Backtests

Postby FutureTrader » 27 Nov 2015

Hi.

I seem to be observing that slippage is being inconsistently applied during backtests. In some cases it seems to be once per-side (twice per position), and in some cases it seems to be once per-position.

Image

Shouldn't slippage always be applied once per-side (twice per position)?

In any case, the application should be the same for every trade, yes?

Am I maybe not seeing what I think I'm seeing?
I think there is slippage in market orders but no slippage in limit orders. So what kind of orders are you using?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Slippage Inconsistently Applied in Backtests  [SOLVED]

Postby Henry MultiСharts » 16 Dec 2015

Hello MC_Prog,

The slippage is not calculated for stop limit and limit orders as there is no slippage when such type of order is filled at broker. Limit order can be filled at the specified price or better price. Slippage is calculated for market and stop orders. It is deducted from profit.

If you still want to have slippage calculated for stop limit and limit orders – you can enable an option in the registry editor:
HKEY_CURRENT_USER\Software\TS Support\ your version of MultiCharts \StrategyProp
Change the value of "UseSlippageForAllTypes" key to 1.
1 = slippage for all orders
0 = slippage for market and stop orders only
You need to restart the application to have the changes applied.

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Re: Slippage Inconsistently Applied in Backtests

Postby MC_Prog » 16 Dec 2015

Very interesting, and flexible! Thanks!


Return to “MultiCharts”