Exits - Chandelier and Yo-Yo
Author: schadler
Creation Date: 2/22/2009 9:41 AM
profile picture

schadler

#1
I have been reading some information from Chuck LeBeau on various exits. Has anyone written code for Wealth Lab that would utilize some of his exit strategies - such as YO-YO and Chandelier?
profile picture

Eugene

#2
1. The Yo-Yo exit is a very simple one-liner:
CODE:
Please log in to see this code.


2. The Chandelier exit is included in Community.Components. The Extension can be downloaded from this site. Illustrated description with example code:
ChandelierStop
profile picture

schadler

#3
Thanks.
profile picture

tomwu

#4
I am new to the Wealth Lab and I am testing the trial version of the software. I got a following error message when I tried to run the example code in the ChandelierStop mentioned above.

The error message is "error CS0246 @ (7, 7): The type or namespace name `Community` could not be found". I realized that I have to install Community.Components. How can I download and install Community.Components?

Thanks.

profile picture

Eugene

#5
Sorry, this code is not going to work w/o C.Components installed. On our position regarding extension downloads by trial users, please see this FAQ:

FAQ | Miscellaneous, Extensions > "I can't download an Extension: the site says Wealth-Lab extensions are available only to Wealth-Lab Version 6 customers".
profile picture

Eugene

#6
On the bright side, you can easily imitate it in Rule-based strategies. Simply add a "Sell (cover) at ATR based trailing stop" rule from the "Trailing stops" group. This is the same as Chandelier stop. If you're building a code-based strategy, click "Open code in new Strategy window" and reuse the resulting code in your strategy.
profile picture

tomwu

#7
So there is no difference between the Chandelier stop and the Trailing stop in this case.

Thanks,
profile picture

Eugene

#8
Like I said above. Apparently, Chandelier stop was requested first and "Trailing stop" was a later addition.
profile picture

tomwu

#9
Eugene,

I couldn't find "ATR based trailing stop". There is only a "dollar based Trailing stop" and a "percent based Trailing stop" under the "Trailing stops" group.
profile picture

Eugene

#10
Sorry but then you're out of luck. It's not included in the installation because it's part of Community.Rules project (for customers only).
profile picture

Eugene

#11
Actually, a ready-made Chandelier exit can be found as the example of ExitAtStop in the QuickRef (hit F11).

Or see below for another example of Chandelier stop doesn't require additional libraries:

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

tomwu

#12
Great!

That works.

Thanks.

:)
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).