PROTECTED SOURCE SCRIPT

Auto Harmonic Patterns

업데이트됨
This is my first attempt on plotting harmonic patterns based on zigzag. Initial version is still primitive and might need lot of time to mature into more formidable one. Will try to explain entire logic in the description. Please feel free to correct me if my understanding of any pattern and underlying logic is incorrect.

In the initial version,

  • Only immediate high lows of pivots are considered for calculation of patterns.
  • In case of ABCD Types, only one is shown at a time. Hence, disabling certain ABCD pattern types may result in different numbers.
  • Logic for double top/bottom is taken from previous script - Double top/bottom Ultimate. Though logic of confirmation and invalidation is not included
  • All other patterns which involve 4+ lines can coexist and often shown together.
  • Smaller timeframes may give error due to some pine limitations.
  • Error percent parameter is used for allowing minor deviation from the standard ratios.



Logical ratios of patterns are coded as below:

Notations:
  • Lines XABCD forms the pattern in all cases. (OXABCD in case of Three drives)
  • abc = BC retacement of AB, xab = AB retracement of XA and so on


ABCD Classic
  • 0.618 <= abc <= 0.786
  • 1.272 <= bcd <= 1.618


AB=CD
  • Price difference between AB and CD are equal
  • Time difference between AB and CD are equal


ABCD Extension
  • 0.618 <= abc <= 0.786
  • 1.272 <= AD/BC (price) <= 1.618


Gartley
  • xab = 0.618
  • 0.382 <= abc <= 0.886
  • 1.272 <= bcd <= 1.618 OR xad = 0.786


Crab
  • 0.382 <= xab <= 0.618
  • 0.382 <= abc <= 0.886
  • 2.24 <= bcd <= 3.618 OR xad = 1.618


Deep Crab
  • xab = 0.886
  • 0.382 <= abc <= 0.886
  • 2.0 <= bcd <= 3.618 OR xad = 1.618


Bat
  • 0.382 <= xab <= 0.50
  • 0.382 <= abc <= 0.886
  • 1.618 <= bcd <= 2.618 OR xad = 0.886


Butterfly
  • xab = 0.786
  • 0.382 <= abc <= 0.886
  • 1.618 <= bcd <= 2.618 OR 1.272 <= xad <= 2.618


Shark
  • xab = 0.786
  • 1.13 <= abc <= 1.618
  • 1.618 <= bcd <= 2.24 OR 0.886 <= xad <= 1.13


Cypher
  • 0.382 <= xab <= 0.618
  • 1.13 <= abc <= 1.414
  • 1.272 <= bcd <= 2.0 OR xad = 0.786


Three Drives
  • oxa = 0.618
  • 1.27 <= xab <= 1.618
  • abc = 0.618
  • 1.27 <= bcd <= 1.618


5-0
  • 1.13 <= xab <= 1.618
  • 1.618 <= abc <= 2.24
  • bcd = 0.5

릴리즈 노트
  • Removed deviation threshold and disable stats on load. (Can be enabled in settings)
  • Default length is set to 5
릴리즈 노트
Convert to pine 5
릴리즈 노트
Update tags
Chart patternsHarmonic Patternshewhomustnotbenamedtrendoscope

보호된 스크립트입니다

이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항