Contract Rollover: Adopt Real World Position and manage per previous position entry - EasyLanguage Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Contract Rollover: Adopt Real World Position and manage per previous position entry
Started:July 19th, 2011 (01:28 AM) by RM99 Views / Replies:1,775 / 3
Last Reply:May 30th, 2012 (06:55 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Contract Rollover: Adopt Real World Position and manage per previous position entry

Old July 19th, 2011, 01:28 AM   #1 (permalink)
Fortitudo et Honor
Austin, TX
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Futures
Posts: 882 since Mar 2011
Thanks: 128 given, 700 received

Contract Rollover: Adopt Real World Position and manage per previous position entry

Here's the issue.

I'm starting to get into inter-day trading of commodity futures.

I'm using automated trading strategies (ATS).

I need a clever way to manually (or automatically) exit a current position if the current contract relinquishes volume superiority to the new contract.

Once that happens, I will manually re-enter the position on the new contract. On the settings tab, I can instruct TS to "adopt real world position" and manage the order from that point on.

The only problem is that the previous position that was prematurely exited (due to rollover) had an entry point and a trade duration history that's lost in this swap over.

Most of my strategies utilize multiple exit orders....some of which feature activation levels/thresholds.

In essence..."If maxpositionprofit > threshold, then begin...."

Once I manually enter the new position and enable the ATS, it will adopt and manage the new position (on the new contract). However, I'd like it to manage the position with the old entry point to reference so that some of these activation criteria for exit features are in play. (i.e. if my old position was up 150 ticks, and I have a trailing stop that activates at 100 ticks, then I'd like my new position on the new contract to immediately adopt a trailing stop, not wait for the new strategy to reach the threshold again).

So, issue A) Identifying newer contract volume superiority and liquidating current position.

Issue B) Referencing the "old" position entry point to manage the trade from that point on.

Because I'm manually entering the new position (on a new chart/symbol) it's not unreasonable to have to manually enter the old entry price into an input field.

The code would have to be boolean, where if no entry price was entered into the input field, the ATS would operate normally as if every trade were a fresh/new entry.

Any ideas would be a great help.

As it stands now, if I'm trading with extended positions, I have to manually struggle through the rollover trades until the trade is complete and out of the way then start the ATS fresh. That's not such a big deal, except my exit management tends to be pretty complex and CL can move so fast it's tough to keep up with calculations....

Automating will help to ensure that my live-forward performance more closely matches my strategy performance during continuous symbol backtests.

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
Reply With Quote

Old July 19th, 2011, 01:28 AM   #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.


Old February 23rd, 2012, 12:05 PM   #3 (permalink)
Elite Member
Singapore Singapore
Futures Experience: Intermediate
Platform: TradeStation
Broker/Data: TS
Favorite Futures: GOLD
Posts: 13 since Dec 2011
Thanks: 15 given, 1 received

Got any success.

I am facing the same. Did you managed to find a solution. If so, appreciate if you can share the same. Thx in advance.

Reply With Quote

Old May 30th, 2012, 06:55 AM   #4 (permalink)
Elite Member
Brussels / Dublin
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: Stdev + 2
Posts: 466 since Jun 2010
Thanks: 838 given, 589 received

I have the exact same issue and havent had a definitive thought on how to do it!

Anyone have any ideas on how to fix it to be best.

As if the new contract is involved the entry will be slightly different to the original 1.

And if your using dynamic stops such as a chandelier etc then the calculations are off.

Im thinking i should just trim the minimum num of bar's setting on the new rollover date to try get something that is reasonably close....

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Contract Rollover: Adopt Real World Position and manage per previous position entry

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indicator: Add to opened position ivanjocic NinjaTrader 39 July 21st, 2015 11:24 AM
Account position: How to differentiate positions arjfca The Elite Circle 5 February 5th, 2011 02:27 PM
Position sizing codes ptcm EasyLanguage Programming 2 January 2nd, 2011 03:24 PM
Accumulating position size in TS2000i SkylineR34 Traders Hideout 4 October 27th, 2010 05:35 AM
Fixed position for text on a chart Henrik EasyLanguage Programming 6 August 8th, 2010 02:19 PM

All times are GMT -4. The time now is 02:56 AM.

Copyright © 2016 by 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 2016-10-24 in 0.10 seconds with 20 queries on phoenix via your IP