PINE LIBRARY

SMC_Structure

154
Library "SMC_Structure"

get_swing_high(length)
  スイングハイを取得する
  Parameters:
    length (int): 左右の確認バー数
  Returns: [float, int] スイングハイの価格と発生したバーインデックス

get_swing_low(length)
  スイングローを取得する
  Parameters:
    length (int): 左右の確認バー数
  Returns: [float, int] スイングローの価格と発生したバーインデックス

detect_break(src_price, level, is_bull)
  BOS (Break of Structure) または CHoCH (Change of Character) の判定
  Parameters:
    src_price (float): 現在の価格(終値など)
    level (float): 突破を監視するスイングレベル
    is_bull (bool): 強気目線かどうか
  Returns: bool 構造破壊の有無

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.