PINE LIBRARY
SMC_Structure

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 構造破壊の有無
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 構造破壊の有無
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 publications is governed by House Rules.
Script Developer.
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
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.
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 publications is governed by House Rules.
Script Developer.
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
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.