NexusFi: Find Your Edge


Home Menu

 





Backtest CL on Market Replay Data


Discussion in NinjaTrader

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




 
Search this Thread

Backtest CL on Market Replay Data

  #1 (permalink)
kidvic
Los Angeles, CA
 
Posts: 92 since Mar 2015
Thanks Given: 13
Thanks Received: 3

Hello group,
There's been similiar questions of what i'm about to ask, so i'll ask a little more specifically.

I am looking to run market replay on CL from 2013 to 2016.
I would like to know what contract days to download so that I can backtest 2013 to 2016.
As I understand, CL has contracts every month that expire on the third Thursday of the month.
However, due to volume, rollover is not always on the same day.

However, I would like to know what the BEST possible days to download for each contract that would ensure some
liquidity.

I am looking for a general rule of thumb, but if that doesn't exist, then I would like some input.

If any of you would please make suggestions, I greatly appreciate it!
Also, please post a 3 contract period example so that I get the general rule of thumb if there is one!


Example CL 2-13 best start to trade "_____" and last day to trade should be "_______"
CL 3-13 best start to trade "_____" and last day to trade should be "_______"
CL 4-13 best start to trade "_____" and last day to trade should be "_______"

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quantum physics & Trading dynamics
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


In general a trader would switch to the new contract, once traded volume surpasses the volume of the old contract.

The replay is bit tricky, because if you have an indicator that needs X bars of history, how will you do that ?

An alternative may be to 'construct' a continuous contract, either manual or automatic;
there are different approaches to 'stitch' the individual contracts together... see the literature on this...

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
kidvic
Los Angeles, CA
 
Posts: 92 since Mar 2015
Thanks Given: 13
Thanks Received: 3


rleplae View Post
In general a trader would switch to the new contract, once traded volume surpasses the volume of the old contract.

The replay is bit tricky, because if you have an indicator that needs X bars of history, how will you do that ?

An alternative may be to 'construct' a continuous contract, either manual or automatic;
there are different approaches to 'stitch' the individual contracts together... see the literature on this...

Thanks for the input.
I am backtesting, worked fine on ES, because rollover was a general rule.
However, indicator is not the issue, just to know what days to download.
I am aware of volume and liquidity, so is there a safe zone in each contract
That ensures liquidity, without looking at volume? Perhaps a generality?

Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


kidvic View Post
Thanks for the input.
I am backtesting, worked fine on ES, because rollover was a general rule.
However, indicator is not the issue, just to know what days to download.
I am aware of volume and liquidity, so is there a safe zone in each contract
That ensures liquidity, without looking at volume? Perhaps a generality?

you can load overlapping periods, and then look at the results and stitch together
the results, rather than the data, that is another way to look at
sometimes you may see the same trade in both contracts,
sometimes not, depend son your system
but that also is a useful insight, it will learn you how sensitive it is to the
rollover

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
kidvic
Los Angeles, CA
 
Posts: 92 since Mar 2015
Thanks Given: 13
Thanks Received: 3


rleplae View Post
you can load overlapping periods, and then look at the results and stitch together
the results, rather than the data, that is another way to look at
sometimes you may see the same trade in both contracts,
sometimes not, depend son your system
but that also is a useful insight, it will learn you how sensitive it is to the
rollover

Hmmm....
How do you "stitch"?

Reply With Quote
  #7 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

export the trades to a log file or the debug screen
then copy past to excel
and analyse the overlapping days

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
kidvic
Los Angeles, CA
 
Posts: 92 since Mar 2015
Thanks Given: 13
Thanks Received: 3


rleplae View Post
export the trades to a log file or the debug screen
then copy past to excel
and analyse the overlapping days

I would have to do research on how to perform this task, seems complicated.
As far as the ES goes, I was able to download each quarter contract up until 8 days prior to expiration.
This worked fine.
I would rather download a set amount of days for each contract, and trade each contract.
There has to be a way.

Reply With Quote




Last Updated on June 28, 2016


© 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