RozaniGhani-RG

HarmonicSwitches

█ OVERVIEW
This library is complementary for XABCD Harmonic Pattern Custom Range Interactive

TupleSwitchHL()
  : Tuple Switch for High Low
  Parameters:
    : : _bool, low_X, high_X, low_A, high_A, low_B, high_B, low_C, high_C
  Returns: : price_X, price_A, price_B, price_C

TupleSwitchStyleColor()
  : Tuple switch for style and color
  Parameters:
    : : _bool
  Returns: : style0, style1, col_dir

TupleSwitchString()
  : Tuple switch for string
  Parameters:
    : : _bool
  Returns: : str_dir, str_X, str_A

TupleSwitchValid()
  : Tuple switch for valid
  Parameters:
    : : _str
  Returns: : str_invalid, str_valid

TupleSwitchTime()
  : Tuple switch for time
  Parameters:
    : : _str, time_1, time_2, time_3
  Returns: : E1, E2

SwitchColor()
  : Switch color
  Parameters:
    : : _str
  Returns: : col_valid

SwitchExtend()
  : Extend line
  Parameters:
    : : _str
  Returns: : _extend

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.