Creating pairs data
Author: ozdens
Creation Date: 10/18/2011 5:16 AM
profile picture

ozdens

#1
Hi, I am trying to create a pairs matrix in Wealtlab. this pair data will be seen as a new sybol in my data set... for example; BOFA / CTI = X stock data...

how can I do it.. if anyone can help about this issue, I really appreciate it...

ty
profile picture

Cone

#2
You can't dynamically create symbols for a DataSet. You can easily get the data for two symbols and divide their series to create another series to be used by a trading script. See GetExternalSymbol() in the QuickRef (F11).
profile picture

ozdens

#3
How can I use this trading script Cone...could you pls give more color about it ... cause I have 30 stocks and what I am looking among them is how the pairs of these 30stocks are behaving under my trading strategy... i am trying to get back test results and improve my strategy step by step ...
i am using a local data vendor.. i tried to create pair symbols over there... but there is no shortcut there as well... could you pls give me more guidance how I can look for it in WEalth lab 6
...tks
profile picture

Eugene

#4
Take a look at this kind of Strategy:

Pairs Trading

Chances are it will do the pair trading trick for you.
profile picture

TrendCatcher

#5
Hi Eugene,
Just curious. Do we have any strategy like when 'A" reaches the price, Sell "B" and buy "C". Instead price, if we can use any condition like RSI etc, will be great. This could be useful for QQQ based QLD and QID trading. Thanks.
profile picture

Eugene

#6
Yes, there are: this pairs trading strategy, "Inverse ETF switching system" (primary/inverse ETF rotation) off the top of my head. Also run a search for GetExternalSymbol and/or SetContext and I'm sure it will spit out a few examples.
profile picture

TrendCatcher

#7
Thanks a lot.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).