Professional Documents
Culture Documents
Cups and Algos - 1400 Giorgos Siligardos
Cups and Algos - 1400 Giorgos Siligardos
Chart Patterns
Key Benefits
Major Obstacles
• Pattern Variation
endless ways for a textbook pattern to manifest itself
in a real chart.
• Scale
Almost all chart patterns of classic technical analysis
are scale-free
Outline of the Talk
• A detailed example
Academic Approaches (Finance)
-1 -1 -1 -1 -1 +2 +2 -1 -1 -1 -1 -1
-1 -1 +1 0 -1 +2 +2 -1 0 +1 -1 -1
A matrix template -1 -1 +2 +1 -1 +2 +2 -1 +1 +2 -1 -1
0 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 0
pattern using weights +1 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +1
+2 +2 +2 +2 +2 0 0 +2 +2 +2 +2 +2
+2 +2 +1 +2 +1 -1 -1 +1 +2 +1 +2 +2
+2 +2 0 +1 -1 -1 -1 -1 +1 0 +2 +2
+2 0 -1 -1 -1 -1 -1 -1 -1 -1 0 +2
+2 0 -1 -1 -1 -1 -1 -1 -1 -1 0 +2
Superimpose a grid
(having the same dimensions as
the matrix template) in the
actual price chart
Academic Approaches (Finance)
3rd Method (Matrix Templates)
x x
x x
x x
The price action is x x x
x x x x x x x x
then converted into
x x x x x x x x x
matrix form x x x x x x x x x
x x x x x x x x x x x
x x x x x x x x x
x x x x x x
x x x
x
Academic Approaches (Finance)
3rd Method (Matrix Templates)
+2
x +2
x
+2
x +2
x
Sum up all weights for +2
x +2
x
the price action +2
x +2
x +2
x
-1
x +1
x +2
x +2
x +2
x 0x +2
x +1
x
x +2
0 x +2
x +2
x +2
x +2
x +2
x +2
x 0x
The higher the sum, the +1
x +2
x +2
x +2
x +2
x +2
x +2
x +2
x +1
x
+2
x +2
x +2
x +2
x +2
x 0x +2
x +2
x +2
x +2
x +2
x
better the price action fits
+2
x +1
x +2
x +1
x +1
x +2
x +1
x +2
x +2
x
the pattern model +2
x x +1
0 x -1
x +1
x +2
x
+2
x -1
x -1
x
+2
x
Academic Approaches
(Computer Science)
• Perceptually Important Points (PIP)
A smart modification of the zigzag-ing method: no use of % thresholds;
you a-priori define the number of swings you want instead.
Focus on:
Perception of Technical Analysts in mind
Elimination of Variation and Scale obstacles
Implementation in almost any technical analysis
software (Simplicity)
Execution Speed
Area of
possible tops
for the left
shoulder
P
Q
Move backwards in time until
you find a price (Q) which is
lower than the last one (P)
A Detailed Example
A
1st Condition:
No Closing
price inside the
yellow cells
AND
No High price
inside the
C
orange cells
Identifying the Cup
A
2nd Condition:
OR
bar lows exist C
inside both
blue boxes Height of blue and green boxes = 2/3 of the height of cells
Identifying the Cup
A
3rd Condition:
There are at
least 20 red
bars
C
Application
distinctive*
No time overlap of more than 70% between any two
cups in the same chart
Algorithm in Action [Example 1]
Apple (Daily)
49 bars
30 bars
95 bars
Algorithm in Action [Example 3]
22 bars
71 bars
Statistics for the S&P500 Stocks
(Daily Charts 1982-2014)
Questions:
Does the cup pattern actually produce uptrends?
Example A
Go long
-21% here with a
-30%
trailing stop
loss of 21%
C
Example: Evaluating the Cup
So, all cups are treated under equal terms (no matter
their height) allowing us to determine the "edge" of cup
pattern from this system's point of view
Example: Evaluating the Cup
Thank you