Real-time/Market replay auto contract rollover strategy - NinjaTrader Programming | futures io social day trading
futures io futures trading


Real-time/Market replay auto contract rollover strategy
Updated: Views / Replies:807 / 1
Created: by grankus Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Real-time/Market replay auto contract rollover strategy

  #1 (permalink)
Elite Member
Barcelona
 
Futures Experience: Beginner
Platform: NinjaTrader 7
Favorite Futures: CL, TF
 
grankus's Avatar
 
Posts: 8 since Aug 2012
Thanks: 5 given, 0 received

Real-time/Market replay auto contract rollover strategy

Hello,

I just checked all Big Mike’s posts but I didn’t find anything that solved this issue, I think. Maybe because it’s a stupid question and it’s something so basic you can do easily with Ninjatrader 7 vanilla options.

The question is… anyone knows if there is a way to switch/rollover from one contract to the next one, based on its DailyVolume or its expiration date in a strategy, running on real-time or market replay?

I was wondering how I would do it:

1• I think that maybe could be possible getting the maximum DailyVolume of a contract list/array, that could be filled with a loop or using the Market Analyzer list… I’m not sure if this is possible or not.

2• The other way that I thought was using the expiration day of every contract as a trigger to change to the next contract, just retrieving the “Contract month” and the “Rollover date” in the Instrument Manager/Editor.

I programmed something “similar” with vba in the past in order to generate a continuous contract with the market replay data, comparing the same instrument “.ntm/.nt2” files in a day/folder and “getting rid” of the lighter ones, finally renaming the months. Example: “02-12”… to “##-##”.
I did it with an expiration date list either but that was a bit tricky and slower than the first option.
The point of this is that I think this project could not be so difficult because I’m not a programmer and I managed to create a Marker Replay Data manager based on the same principles.

Once I know which contract is the one with the higher DailyVolume, I would like to change to it automatically while the strategy is running. Ex: “CL 02-12” to “CL 03-12”. But again I don’t know how to do it

So far I change contracts manually using the Market Analyzer with a DailyVolume column that it’s linked to a chart which is running a strategy, but this method it’s a bit limited, especially if I have several strategies running at the same time.

Thank you very much!

Jairo.

PS: Sorry for the grammar I do my best!

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply



futures io > > > > > Real-time/Market replay auto contract rollover strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Order fills on real time vs market replay calhawk01 NinjaTrader 4 November 16th, 2013 03:22 AM
NinjaTrader - Market Replay - Rollover / Volume Rollover drunkcolonel NinjaTrader 0 October 22nd, 2012 07:23 PM
Contract Rollover: Adopt Real World Position and manage per previous position entry RM99 EasyLanguage Programming 3 May 30th, 2012 07:55 AM
Handeling contract rollover with Auto Strategy ? marker Elite Automated NinjaTrader Trading 2 December 13th, 2011 03:03 PM


All times are GMT -4. The time now is 12:12 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-15 in 0.07 seconds with 19 queries on phoenix via your IP 54.226.34.209