Head and Shoulder Bottom
Author: callahan1681
Creation Date: 11/13/2008 3:53 PM
profile picture

callahan1681

#1
I am new to Wealth Lab. I am just learning to use C#. Could anyone provide me with
the code to back test a head and shoulder bottom. Thank you.
profile picture

Eugene

#2
Here's a very quickly reversed H&S Top system that comes out-of-the-box.

CODE:
Please log in to see this code.


One suggestion as I review the generated trades. A check should be added -- it could be as simple as "Price < SMA(100)" -- to actually verify we're in the middle of a downtrend or at the bottom when a H&S-B pattern is detected.
profile picture

baam

#3
Hi,

Does this code work for intraday (5 or 15 min) data?
profile picture

Eugene

#4
Yes but it's much easier to for a 15% move to be noticed on higher time frames. Adjust parameters accordingly.
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).