XABCD Harmonic Pattern Custom Range Interactive

RozaniGhani-RG Pro+ 업데이트됨   
This indicator was designed based on Harmonic Pattern Book written by Scott Carney. It was simplified to user who may always used tools such as XABCD Pattern and Long Position / Short Position, which consume a lot of time, recommended for both beginner and expert of Harmonic Pattern Traders. XABCD Pattern require tool usage of Magnet tool either Strong Magnet, Week Magnet or none, which cause error or human mistake especially daily practice.

Simplified Guideline by sequence for Harmonic Pattern if using manual tools :
  • Step 1 : Trade Identification - XABCD Pattern
  • Step 2 : Trade Execution - Any manual tools of your choice
  • Step 3 : Trade Management - Position / Short Position


  • Table can positioned by any postion and font size can be resized.
  • Table can be display through optimized display or manual control.
  • Validility of harmonic pattern depends on BC ratio.
  • Harmonic pattern can be displayed fully or optimized while showing BC ratio validity.
  • Trade Execution at point D can be displayed on / off.
  • Stop Loss and Take Profit can be calculated automatically or manually.
  • Optimized table display based extend line setup and profit and loss setup.
  • Execution zone can be offset to Point C, by default using Point D.
  • Currency can be show or hide.
  • Profit and Loss can be displayed on axis once line is extended.

  • Step 1 : Trade Identification - Draw points from Point X to Point C. Dont worry about magnet, point will attached depends on High or Low of the candle.
  • Step 2 : Trade Execution - Check the validity of BC to determine the validity of harmonic pattern generated. Pattern only generate 1 pattern upon success. Otherwise, redraw to other points.
  • Step 3 : Trade Management - Determine the current candle either reach Point D or Potential Reversal Zone (PRZ). Check for Profit & Loss once reach PRZ.

  • Harmonic Patterns only limits to patterns mentioned in Harmonic Trading Volume 3 due to other pattern may have other or different philosophy.
  • Only can be used for Daily timeframe and below due to bar_time is based on minutes by default.
  • Not recommended for Weekly and Monthly timeframe .
  • If Point X, A, B, C and D is next to each other, it is recommend to use lower timeframe.
  • Automated alert is not supported for this release. However, alert can be done manually. Alert will updated on the version.

  • Known bug for when calculate time in array, causing label may not appeared or offset.
  • Unable to convert to library due to usage of array.get(). I prefer usage for a combination of array.get(id, 0), array.get(id, 1), array.get(id, 2) into custom function, however I faced this issue during make arrays of label. Index can be simply refered as int, for id, i not sure, already try id refered as simple, nothing happens.
  • will appeared as diamond box if overused.
  • Text in unable to use ternary condition or switch to change color. Bgcolor also affected.
  • Label display is larger than XABCD tool. Hopefully in future, have function to resize label similar to XABCD tools.

  • Trade Management (Profit & Loss) is calculated from Point A to D.
  • Take Profit is calculated based on ratio 0.382 and 0.618 of Point A to D.
  • Always check BC validity before proceed to Trade Management.
  • Length of XABCD is equal to XAB plus BCD , where XAB and BCD are one to one ratio. Length is measured in time.
  • Use other oscillator to countercheck. Normally use built-in Relative Strength Index ( RSI ) and Divergence Indicator to determine starting point of Point X and A.

// Credits to Scott M Carney, author of Harmonic Trading Volume 3: Reaction vs. Reversal
  • Alt Bat - Page 101
  • Bat - Page 98
  • Crab - Page 104
  • Gartley - Page 92
  • Butterfly - Page 113
  • Deep Crab - Page 107
  • Shark - Page 119 - 220


█ USAGE / TIPS EXAMPLES (Description explained in each image)
릴리즈 노트:
Add Collapsible code sections
릴리즈 노트:
Value correction for B = XA (Butterfly)
릴리즈 노트:
Revise tooltip for point X to point C.
Remove bool X_higher_A.
Separate switch for bool X_lower_A.
릴리즈 노트:
Correction value from 0.913 to 0.930.
릴리즈 노트:
  • Add library PriceTimeInteractive
  • Add library DeleteArrayObject
  • Remove custom function for getprForTime() and replaced with pti.hlc_time()
  • Remove custom function for delete drawings such as f_delete_label(), f_delete_line(), f_delete_linefill() and f_delete_box()
  • Replace delete drawings with obj.delete()
  • Update necessary comments
릴리즈 노트:
  • Add library HarmonicDB
  • Remove switch for i_f_gart and i_f_shark
  • arr_B_XA1 renamed to spec_B_XA_min
  • arr_B_XA2 renamed to spec_B_XA_max
  • arr_C_AB1 renamed to spec_C_AB_min
  • arr_C_AB2 renamed to spec_C_AB_max
  • arr_D_BC1 renamed to spec_D_BC_min
  • arr_D_BC2 renamed to spec_D_BC_max
  • arr_D_XA renamed to spec_D_XA_nom
  • arr_E_SL renamed to spec_E_SL_nom
릴리즈 노트:
  • Rename short title from XABCD to XABCD_HP_CRI
  • Add HarmonicSwitches library
릴리즈 노트:
  • Add HarmonicCalculation library
  • Remove necessary constants for inputs
  • Remove f_diff(), f_pr_tuple(), f_avg_price(), f_avg_time(), f_abs(), f_abs_tuple(), f_ratio(), f_range() and f_price()

오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.


이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

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