spread charts

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
valabhi
Posts: 45
Joined: 25 Jun 2007

spread charts

Postby valabhi » 29 Jul 2009

How can i plot Spread charts i.e. spread between two symbols.

User avatar
TJ
Posts: 7739
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1032 times
Been thanked: 2221 times

Postby TJ » 29 Jul 2009

First, load your symbols into the chart.
in your Format Symbol window,
under the Style tab, set the chart type to "Invisible bars".



Next, create and apply this indicator to your chart:

[edit] added data multiplier

Code: Select all

{---------- beginning of indicator ----------}

// indicator: Spread
// version: beta 0.2
// author: TJ
// license: public use
//

input:
data1.multiplier(1),
data2.multiplier(1);

var:
spread.h(0),
spread.l(0),
spread.o(0),
spread.c(0);

spread.h = high data1 * data1.multiplier - high data2 * data2.multiplier;
spread.l = low data1 * data1.multiplier - low data2 * data2.multiplier;
spread.o = open data1 * data1.multiplier - open data2 * data2.multiplier;
spread.c = close data1 * data1.multiplier - close data2 * data2.multiplier;

plotpb(spread.h, spread.l, spread.o, spread.c);

{---------- end of indicator ----------}

enjoy !
Last edited by TJ on 05 Feb 2010, edited 2 times in total.

valabhi
Posts: 45
Joined: 25 Jun 2007

Postby valabhi » 30 Jul 2009

TJ so quick..! Thank you

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 30 Jul 2009

Thanks TJ!.
I just want to inform you that we are working on native spread support in MultiCharts. So you will just type what you want or construct it visually. It will be flexible and allow you to create composites, spreads and etc.

User avatar
TJ
Posts: 7739
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1032 times
Been thanked: 2221 times

Postby TJ » 30 Jul 2009

That's fantastic Andrew.

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 30 Jul 2009

I do agree!

valabhi
Posts: 45
Joined: 25 Jun 2007

Postby valabhi » 30 Jul 2009

Thank you Andrew, willregular indicators such as RSI will work with it?
will it be available this year?

janus
Posts: 835
Joined: 25 May 2009
Has thanked: 63 times
Been thanked: 103 times

Postby janus » 30 Jul 2009

That's cool. Will we be able to plot say the mid-point of the ask and bid price without loading them into the plot window and hiding them?

User avatar
TJ
Posts: 7739
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1032 times
Been thanked: 2221 times

Postby TJ » 30 Jul 2009

Thank you Andrew, willregular indicators such as RSI will work with it?
will it be available this year?

before the new version arrives,
you can try this method for indicators:
http://www.traderslaboratory.com/forums ... -6372.html

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 31 Jul 2009

Thank you Andrew, will regular indicators such as RSI will work with it?
will it be available this year?
Sure. You will be able to apply any indicator or strategy to the spreads.
That's cool. Will we be able to plot say the mid-point of the ask and bid price without loading them into the plot window and hiding them?
It is not confirmed that you will be able to reference different price fields, but we will try to keep it in mind.

synonym
Posts: 70
Joined: 20 Feb 2009
Has thanked: 10 times
Been thanked: 3 times

Postby synonym » 07 Aug 2009

This really is very good news. It'll be a fantastic addition to MC's functionality. I can't wait.

synonym
Posts: 70
Joined: 20 Feb 2009
Has thanked: 10 times
Been thanked: 3 times

Postby synonym » 13 Aug 2009

Hi Andrew
I have a number of questions i'd like to ask re MC's forthcoming spreadtrading backtesting funtcionality.

1. As you are probably aware, in order to effectively backtest calender spreads you need your software to run the backtest on the individual contracts rather than a continuous contract, which destroys the differential you are trading between the contracts and therefore means your backtesting results will be useless. Will MC be able to do this and automatically roll over from one single contract to the next when backtesting?

2. Also will MC facilitate weighting between the contracts in its backtetsing, for example, to be long 2 contracts of market A and be short of 1 contract of market b?

I'm eager to hear your anwers.
Thanks
Syn

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 13 Aug 2009



1. As you are probably aware, in order to effectively backtest calender spreads you need your software to run the backtest on the individual contracts rather than a continuous contract, which destroys the differential you are trading between the contracts and therefore means your backtesting results will be useless. Will MC be able to do this and automatically roll over from one single contract to the next when backtesting?


As far as I understand you want to apply a strategy to a spread ESU9- ESZ9.
In this case the strategy will be applied to the differential. However the software will not roll over, because we will have roll over functionality for individual futures only, not spreads.


2. Also will MC facilitate weighting between the contracts in its backtetsing, for example, to be long 2 contracts of market A and be short of 1 contract of market b?


Not in the first release. However we will do it later to accommodate fully-features pair trading.

synonym
Posts: 70
Joined: 20 Feb 2009
Has thanked: 10 times
Been thanked: 3 times

Postby synonym » 14 Aug 2009

Hi Andrew
thanks for your prompt and clear reply.
regards
Syn

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 14 Aug 2009

You are welcome.

User avatar
pivot
Posts: 29
Joined: 07 Dec 2009
Been thanked: 2 times

Postby pivot » 16 Dec 2009

Andrew I would be interested to know when this spread trader / pair trader will be release can you update the likely release of this?

thxs

Pivot :)

User avatar
pivot
Posts: 29
Joined: 07 Dec 2009
Been thanked: 2 times

Postby pivot » 22 Dec 2009

Was wondering if someone can update us on the spread trading and pair trading additions?

templ
Posts: 86
Joined: 19 Nov 2006
Has thanked: 2 times
Been thanked: 2 times

Re: spread trading and pair trading additions?

Postby templ » 13 May 2011

Was wondering if someone can update us on the spread trading and pair trading additions?
Yes please.

cosmic
Posts: 8
Joined: 03 Dec 2005

Re: spread charts

Postby cosmic » 17 Aug 2011

Hey guys, any update on this feature?

I saw as example a spread on the same symbol, so frontmonth vs soon to be frontmonth for example.

Can one also setup for example ESU11- YMZ11?

TIA,
cosmic

User avatar
TJ
Posts: 7739
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1032 times
Been thanked: 2221 times

Re: spread charts

Postby TJ » 17 Aug 2011

Hey guys, any update on this feature?

I saw as example a spread on the same symbol, so frontmonth vs soon to be frontmonth for example.

Can one also setup for example ESU11- YMZ11?

TIA,
cosmic
you can easily do this with the code posted above.

cosmic
Posts: 8
Joined: 03 Dec 2005

Re: spread charts

Postby cosmic » 18 Aug 2011

That's right TJ, thanks - but I was more interested in the native support Andrew talked about, where I would not need to work with indicators to achieve this function.

momentum
Posts: 324
Joined: 23 Nov 2005
Has thanked: 9 times
Been thanked: 14 times

Re: spread charts

Postby momentum » 24 Aug 2011

+1 pls

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

Re: spread charts

Postby Henry MultiСharts » 14 Oct 2011

High quality spread charts mean implementation on a tick by tick basis.
This implementation requires a lot of resources.
Unfortunately we do not have estimated time for implementation of this feature.

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: spread charts

Postby waldem » 18 Jan 2019

hallo, i want ask you an update on this very old topic.
is possible now to create an index that is data1/data2?
i know TJ indicator and work good, but i want plot my indicator on spread chart and is impossible to plot indicator of indicator..

thank you

brendanh
Posts: 158
Joined: 07 Apr 2007
Has thanked: 1 time

Re: spread charts

Postby brendanh » 13 May 2019

Was this ever implemented? As others have said, indicators are no substitute for real composite symbols. Would massively improve the value of MultiCharts IMO.

User avatar
TJ
Posts: 7739
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1032 times
Been thanked: 2221 times

Re: spread charts

Postby TJ » 13 May 2019

Was this ever implemented? As others have said, indicators are no substitute for real composite symbols. Would massively improve the value of MultiCharts IMO.
Composite symbols are only valuable IF and ONLY IF you can trade them.

For that to happen, the symbol must come from your broker.


Return to “User Contributed Studies and Indicator Library”