NexusFi: Find Your Edge


Home Menu

 





Any decent indicators for slippage?


Discussion in NinjaTrader

Updated
    1. trending_up 2,254 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Any decent indicators for slippage?

  #1 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704

I'm trying to find (or code my own) indicator to give a numerical expression for slippage.

I'd like to be able to compare the amount of price movement (up and down within a bar) with the amount of orders placed.

For example...under bad conditions, a single order would generate a single tick of movement. So for a flatline bar that has a 1 tick wick both directions (up and down) and 4 orders placed (1 up, 2 down, 1up and close) the value would return 1.00

For market conditions where several orders result in little to no movement, the factor would go down (i.e. moves/orders = small ratio) and under the most unfavorable conditions, small order volumes would generate values above 1 ( moves/orders = larger ratio).

Does anyone know of a similar metric for comparing volume to movement within a given time period?

Any help would be greatly appreciated.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
 
  #3 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704


Well, since all I got was crickets....I crafted my own.

Here it is

Inputs: SFColor(Red), Pivotline(Blue),GraphicAmplifier(1000), PivotLineValue(1);
Variables: SlippageFactor(0), moves(0), orders(o);
moves = (absvalue(high-open) + absvalue(high-low) + Absvalue(close-low));
orders = (Upticks+downticks);

SlippageFactor = (moves/orders)*GraphicAmplifier;
SetPlotColor(1,SFColor);
{SetPlotColor(2,Pivotline);}
plot1( SlippageFactor, "Slippage" ) ;
Plot2( PivotLineValue, "Pivotline" ) ;

Feel free to check it out. You can mess around with the GraphicAmplifier value to draw out spikes and lows to your liking and then set the PivotLineValue to whatever threshold suits your tastes.

It's pretty interesting....just a graphical representation of what you'd expect....less slippage during high trading volumes and at certain times of the day (right before electronic trading break and right before midnight when the VWAP resets) the slippage is more likely for orders placed.

Just bear in mind that if you overlay this on a chart that goes back too far (or has any bar with zero volume) it will give you a div0 error. Maybe someone can help with a more elegant way to prevent that from happening.

If you can figure it out, I'd also like to somehow compare the actual up movements to up ticks and down movement to down ticks....(i.e. for a down bar, Absvalue(open-close)+Absvalue(Close-low) and opposite for an up bar. How do you get it to reference values in a bar that haven't been established yet? (i.e. how do I get it to determine whether it's an up or down bar?)

Started this thread Reply With Quote




Last Updated on March 23, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts