Choix de la rédactionOPEN-SOURCE SCRIPT

Head & Shoulders S/R Regular

Mis à jour
This is my take in Head & Shoulders (regular H&S)
The script will wait until a valid point E is found, which means A, C and E are alined
snapshot

Then it will find the highest point between C - E -> Head (= D),
together with the highest point between A - C -> Left Shoulder (= B)

After this, the pattern is drawn, together with a 'trigger' area (E-G - E'-G' ~ 'Right shoulder area')
snapshot
ONLY in this field, when a close is higher than E'-G', the figure will turn green, if lower than E-G, it will turn red, else, it will be blue
snapshot

Settings:
  • Date range filtering
    Here you can filter the patterns by setting the date period (for E)
  • Pivot Points -> Leftbars - Rightbars
  • min/max retrace AD -> E
    Set the retracement for E (retracement A -> D -> E, here between 1.4 & 1.5)
    snapshot
  • % tolerance [L ~ R shoulder height]
    Tolerance of Right shoulder height against Left shoulder height
    0% (= the same relative height):
    snapshot
    85% (-> now close isn't higher than E'-G' -> blue coloured):
    snapshot
  • min/max % [Left Shoulder ~ Head]
    Sets the desired B height against D (here B is between 35-45% of D):
    snapshot
  • width R shoulder = L shoulder + x%
    Sets the width of Right shoulder against Left shoulder
    0% (nothing extra, just the same width as Left shoulder)
    snapshot
    100% (Right shoulder area is double as large as the Left shoulder):
    snapshot
    -70% (Right shoulder area much narrower than Left shoulder):
    snapshot
  • maximum visible patterns:
    Set the maximum visible amount of patterns


This script uses one of the latest fantastic Pinescript features:
linefill[] and for ... in loop

Cheers!
Notes de version
Code improvement
Notes de version
update
Notes de version
update
Trend Analysis

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


LuxAlgo Dev: luxalgo.com
PineCoder: pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
Aussi sur:

Clause de non-responsabilité