What is the best strategy to bktest a pairs trade?
Size:
Color:
Size:
Color:
regarding the Pairs Trading strategy referred to in the above link, how can I alter the code to hard code MULTIPLE different pairs. This would allow me to simply click on s symbol in a watchlist and see the results instead of constantly changing the hard-coded pairs each time. For example, in WL4 I used ascript that had a set up like the following:
CODE:
Please log in to see this code.
I assume in WL.Net I need to do something like the following:
CODE:
Please log in to see this code.
But I am having difficulties altering the Pairs Trading code to accomodate for the mutiple pre-set pairs. Any help will be appreciated.
Size:
Color:
QUOTE:
I assume in WL.Net I need to do something like the following:
Seems right to me; would also handle the default scenario:
CODE:
Please log in to see this code.
What sort of trouble do you have?
Size:
Color: