Orders from several data streams in a single chart..

Questions about MultiCharts and user contributed studies.
deadmandontcry
Posts: 2
Joined: 07 Jan 2011

Orders from several data streams in a single chart..

Postby deadmandontcry » 08 Feb 2011

Hello:

I am a new user of Multicharts and a fairly new programing my own indicators and signals.

I researched the forums and the user guide, but could not find an example on how to acheive the following.

My objective is to do portfolio analysis and optimization on a pairs trading strategy.

As part of this effort, I am trying to execute against multiple data series in a single chart.

An example is as follows:

inputs:
DataSeries1( Close of data1 ),
DataSeries2( Close of data2 ),
PairCondition(Some Logic);

if DataSeries2 <> 0 and PairCondition then
Buy("Pair1_lng") next bar at open market;
SellShort ("Pair2_Sht") next bar at open of DataSeries2 at market;

In summary, my questions are:

- Is it possible to execute orders against multiple data series within the same chart for the purpose of strategy backtesting?

- Is there a best practice for doing this type of pairs analysis?

Thanks for any help in advance.
- DMDC

tcat
Posts: 158
Joined: 02 Feb 2008
Location: Lausanne, Switzerland
Has thanked: 9 times
Been thanked: 4 times

Re: Orders from several data streams in a single chart..

Postby tcat » 09 Feb 2011


deadmandontcry
Posts: 2
Joined: 07 Jan 2011

Re: Orders from several data streams in a single chart..

Postby deadmandontcry » 09 Feb 2011

Understood. I appreciate the reply.


Return to “MultiCharts”