Can new instrument be created which is a price differential between 2 stocks?
Author: paulpaul777
Creation Date: 1/4/2011 12:18 AM
profile picture

paulpaul777

#1
Can I create a "new asset" in the DataSet, which itself is an adjusted price differential between two stocks (and back test etc)? thanks for help
profile picture

Eugene

#2
Aside from coding the price differential as a DataSeries, it seems that you can use the Index Manager (Index-Lab) tool for creating the "new asset". Please see "Index Lab" in the Wealth-Lab User Guide.
profile picture

paulpaul777

#3
thanks Eugene - I'll have a look at that.
profile picture

paulpaul777

#4
Eugene, in the above comment coding as a dataseries, do you mean calculating the price differential externally, eg in Excel, and then importing the resultant values as an ASCII file? sorry for dumb questions!
profile picture

Eugene

#5
No, I mean calculating the difference in WLD6 directly by loading the 2nd symbol's data via the GetExternalSymbol method and referring to its Close (High etc) series.

As an illustration of the concept, take a look at DataSeries > Accessing Secondary Symbols in the WealthScript Programming Guide (Help menu).
profile picture

paulpaul777

#6
Eugene, is it possible for me to spend 15-20 mins with someone on Skype to help me through the set up of a particular trade. I'm sure it would save me days of exploration.
profile picture

Eugene

#7
Please count me out w.r.t any instant messaging, tutoring, mentoring, or remote assistance sessions. But you're always welcome to ask your questions on the forums.
profile picture

paulpaul777

#8
OK fair enough Eugene. I want to trade the spread between two stocks, where I set up a market neutral position (buy one, sell the other) when the (maybe adjusted by a factor) SAM for the spread moves outside the BBs (either upper or lower) for the spread. Can you give me some guidance on how to set this up? I'm not a programmer, and I am probably just struggling with my own naivety of the architecture of WL.
profile picture

Eugene

#9
Hope these examples help you clarify the technique of market-neutral system creation:

ActiveTrader 2010-10 | Market-neutral VIX-based pair strategy
Pairs Trading

Let me know if something isn't clear.
profile picture

paulpaul777

#10
thanks Eugene. I also found this which is WL4 code - is there an easy way to convert this to WL6 because it looks close to what I want...
profile picture

paulpaul777

#11
FYI, this is the link to where I found it =
http://wl4.wealth-lab.com/cgi-bin/WealthLab.DLL/editsystem?id=36764
profile picture

Eugene

#12
Check out the site FAQ.
profile picture

paulpaul777

#13
got it, thanks Eugene
profile picture

paulpaul777

#14
Tried the WealthScript Translator - just came up with a bunch of errors.
profile picture

Eugene

#15
I wouldn't say it's a very informative description.
profile picture

Eugene

#16
Here's a quick manual translation of that Convergence Pairs trader 1.02 chartscript (untested):
CODE:
Please log in to see this code.
profile picture

paulpaul777

#17
Thank you Eugene - very grateful. Are there any resources in the WL community that you're aware of that can help me with building code - eg as a consultant for a fee?
profile picture

Eugene

#18
You're welcome. As to your question - we're only preparing to launch a MarketPlace feature to meet the two parties together.
profile picture

paulpaul777

#19
Eugene, I'm trying to copy & paste that script into WLS and it all compresses to one line - is there a trick?
profile picture

Eugene

#20
Yes, the trick is called -- don't use Internet Explorer (seriously). Firefox and Chrome shouldn't have any trouble but IE has.

Here's a workaround to this inconvenience: paste to and copy from Wordpad before pasting to WL6.
profile picture

paulpaul777

#21
thanks Eugene - that worked.
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).