OmniVest Forum OmniVest Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


[Random Quote] -

  Current location        Thread information  
OmniVest User Forums
Risk Control Requests (& other Account Settings)
Slippage Simulation
Last Activity 5/17/2016 11:06 AM
3 replies, 975 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back
Printer friendly version

^ Top
Jim Dean

Elite
10002525
Posts: 1059

Joined: 10/11/2012
Location: L'ville, GA

User Profile
 
Subject : Slippage Simulation
Posted : 10/15/2012 3:36 PM
Post #21441

Slippage becomes very important as the position size becomes a significant fraction of the daily volume, and it cannot reasonably be modelled as some simple fixed percent per share. Since historical Bid-Ask spreads are not available, it must be estimated from other data ... OHLCV.

Simple Slippage estimation/modelling algorithm:

Presumptions:
1. Slippage is a function of position size vs symbol liquidity ... the larger the ratio of those two, the greater the slippage.
2. Slippage is related to the recent volatility of the symbol ... bigger True Range values as a percent of price mean greater slippage.
3. Slippage related to position size (#1) can be best applied interpreted relative to the True Range of the symbol, rather than as a pct of its C

Implementation:

a. User-input a "min-liquidity reference" slippage-percent-of-ATR for very LOW size/liquidity ratios, and the index-ratio matching that percent ... for example, if position size is < AvgV/100000, then slippage might be 0.01% of the daily ATR

b. Also provide a "max-liquidity reference" slippage-percent-of-ATR for HIGH size/liquidity ratios, and the index-ratio matching that percent ... for example, if position size is > AvgV/10, then slippage might be 100% of the daily ATR

c. Since this is not a linear function, also provide a "typical-liquidity reference" slippage-pct-of-ATR for MEDIAN situations, and the index-ratio matching that percent ... for example, if position size is = AvgV/1000, then slippage might be 10% of the daily ATR

THE MATH ... simple three-point linear interpolation:

Find the size vs AvgV RATIO for Entry or Exit bar (diff for each)
If that RATIO is < AvgV/1000, then interpolate between the min and typical slippage ... if not, then interpolate between the typical and max slippage. (Be sure to cap the min and max percentages.)

Apply calculated slippage percent to the "ideal" entry or exit price and fold in that loss to the PL calculations.

SUMMARY:

This is easy to understand, and therefore easy for the user to input the six calibration-inputs described above. It also takes the "logic" of "how and why things slip" about as far as you can, using OHLCV, scaling the slippage bigger or smaller on a rational, user-controlled basis.

TAKING IT FURTHER:

If historical bid-ask info is available, studies can be done to correlate this approach and the Slip% it calc's to the "true" slip that the Bid-Ask might imply. That historical study's results can be used to predefine the defaults for the six inputs mentioned above. Of course this can be added at any time ... even without it, common-sense and user-control makes the outlined method both practical and realistic.


[Edited by Jim Dean on 10/15/2012 3:37 PM]

^ Top
Ed Downs

Elite
50010025
Posts: 645

Joined: 2/7/2007
Location: Austin, Texas

User Profile
 
Subject : RE: Slippage Simulation
Posted : 10/17/2012 12:59 PM
Post #21463 - In reply to #21441

This is good feedback and definition for a Slippage constraint added to Settings. I will put this in the list for our survey.

^ Top
Jim Dean

Elite
10002525
Posts: 1059

Joined: 10/11/2012
Location: L'ville, GA

User Profile
 
Subject : RE: Slippage Simulation
Posted : 10/17/2012 2:02 PM
Post #21469 - In reply to #21463

One further thing you COULD do to make the simulations a bit more realistic ... take the calc's described earlier and apply a "slop" factor to them using a random-number generator. That is, whatever the slippage was calculated to be, allow the random-number generator to "wiggle" it a little from trade to trade, with the wiggle bounded by an additional user input.

I have implemented this entire thing, plus a lot more besides, into a spreadsheet and the "randomized wiggle" seems to lend much more "reality" to the model. But I'll admit that this extra thing is not critical. If you ever get MonteCarlo analysis implemented (which would be wonderful), then this would go hand in hand with it.
^ Top
Ed Downs

Elite
50010025
Posts: 645

Joined: 2/7/2007
Location: Austin, Texas

User Profile
 
Subject : RE: Slippage Simulation
Posted : 10/18/2012 1:36 PM
Post #21496 - In reply to #21469

OK. Thanks. I think providing something like this would be a good simulation adder.
Jump to page : 1
Now viewing page 1 [25 messages per page]
back

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.