Problem with Contract Expiry

Questions about MultiCharts and user contributed studies.
dingmanhoe123
Posts: 61
Joined: 25 Jul 2013
Has thanked: 18 times

Problem with Contract Expiry

Postby dingmanhoe123 » 15 Aug 2015

I want to run a strategy with daily charts

Lets say my strategy is trading ES in long position with 1 contract

I decided to transfer all my position to the next month contract before expiry.

so I need to sell 1 contract of ES of the current month
and in the same time I need to buy 1 contract of ES of the coming month


If I am using IB Gateway to connect multicharts
how could I do the captioned procedure?

do it mannually by TWS when contract expiry? should I use sysconize mode or asysconize mode?
will it automatically change to new contract if I use a custom code with continuous contract?

tony
Posts: 420
Joined: 14 Jun 2013
Has thanked: 30 times
Been thanked: 81 times
Contact:

Re: Problem with Contract Expiry

Postby tony » 15 Aug 2015

It only happens 4 times a year, so why try to automate that? I would do it manually. And you can't trade the continuous contract, there is no such instrument traded live. As for AA and SA mode, that you can research on the wiki.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Problem with Contract Expiry

Postby Henry MultiСharts » 17 Aug 2015

Hello dingmanhoe123,

Building a continuous futures data series in MultiCharts is called Custom Futures.
Please refer to this guide to learn how to configure it:
https://www.multicharts.com/trading-sof ... om_Futures
Rollover of custom futures dataseries cannot be done in realtime. You need to close/open the chart to rollover.

In order to place orders from a custom futures chart in MultiCharts/Portfolio Trader – that is required to manually add Symbol Mapping entry: Custom Futures to current front month contract/the one you need to trade.
Here is how to do that:
https://www.multicharts.com/trading-sof ... ol_Mapping
You will need to manually remap the custom futures/continuous contract to the front month contract when futures rollover.
MultiCharts will not cancel and replace the orders with the new contract month.
You need to do that manually or contact your broker for assistance.


Return to “MultiCharts”