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:
DataSeries1( Close of data1 ),
DataSeries2( Close of data2 ),
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.
Orders from several data streams in a single chart..
Questions about MultiCharts and user contributed studies.
3 posts • Page 1 of 1
- Posts: 158
- Joined: 02 Feb 2008
- Location: Lausanne, Switzerland
- Has thanked: 9 times
- Been thanked: 4 times
Understood. I appreciate the reply.