Symbol Rotation - how to code?
Author: akuehn12
Creation Date: 1/3/2012 12:15 PM
profile picture

akuehn12

#1
I am having a hard time trying to figure out how to implement a trading strategy where instead of going into cash on a sell, I go into another symbol. I have tried using get external symbol and all that.

CODE:
Please log in to see this code.


This is my sell condition but I want to figure out how to add a Buy Condition of an external symbol. Please help!!
profile picture

Eugene

#2
Have you looked into the Symbol Rotation folder? There you'll find several working examples that will save you from reinventing the wheel.

Also, click "Download..." in Wealth-Lab's Open Strategy window for more rotational code.
profile picture

akuehn12

#3
Eugene, thank you for your prompt response.

If I have a simple system like this, how can I set it to buy an external symbol when I sell the primary and vice versa. Thanks!


CODE:
Please log in to see this code.
profile picture

Eugene

#4
What you call rotation is not rotation. That's pair trading. Here's how you can accomplish it:

ActiveTrader 2011-05 | Inverse ETF switching system
Pairs Trading
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).