Stocks & Commodities V. 31:5 (26-34): Head & Shoulders, Algorithmically, Part 2 by Giorgos E. Siligardos, PhD
Product Description
Head & Shoulders, Algorithmically, Part 2 by Giorgos E. Siligardos, PhD
Crossing The (Neck)line
In part 1, we looked at how to find important milestone points
in a head & shoulders formation. In this, the second article
of a two-part series, we present an algorithm that will let the
computer find the formations for us.
In Figure 1, you can see what I call milestone points for
a completed closing-price head & shoulders (H&S)
formation — that is, an H&S formation generated by
the closing price where it has penetrated the neckline. However,
these milestones are defined regardless of whether there is an
H&S pattern present. In this article, I will elaborate on the necessary conditions that these points must meet in order to
outline an H&S. Being aware of these conditions will help
you create an identification algorithm.
Metrics and notations
Before delving into the conditions, I will define some of the
important points and metrics (see Figure 2):
* V is the highest closing price during the time span
between L0 and H1
* W is the highest closing price during the time span
between L3 and the last closing price
* The time distance (number of bars) between H1
and H will be called Dist1 and the time distance
between H and H2 will be called Dist2
* The time distance between L0 and L1 will be called
Dist1#, the time distance between L1 and L2 will
be called Dist#, and the time distance between L2
and L3 will be called Dist2#
* t1 will be the time distance between H1 and L1 and
t2 will be the time distance between L2 and H2.
The conditions
The first condition has to do with the vertical distance
relationship between H1 and H as well as between H2
and H. We want H1 to be sufficiently higher than
L1, but not too close to H. In addition, H2 must
be sufficiently higher than L2 but again not too
close to H (see Figure 2).
FOR THOSE ORDERING ARTICLES SEPARATELY:
*Note: $2.95-$5.95 Articles are in PDF format only. No hard copy of the article(s) will be delivered. During checkout, click the "Download Now" button to immediately receive your article(s) purchase. STOCKS & COMMODITIES magazine is delivered via mail. After paying for your subscription at store.traders.com users can view the S&C Digital Edition in the subscriber's section on Traders.com. Take Control of Your Trading. |
Professional Traders' Starter Kit |
All these items shown below only $299.99! |
5-year subscription to Technical Analysis of STOCKS & COMMODITIES, The Traders' magazine. (Shipping outside the US is extra. Washington state addresses require sales tax based on your locale.) 5 year access to S&C Archive 5 year access to S&C Digital Edition5-year subscription to Traders.com Advantage. 5-year subscription to Working Money. Free book selection. |
|
Click Here to Order |
|