OPEN-SOURCE SCRIPT
Amplitude State Simple

Amplitude State Simple
Amplitude State Simple is a market behavior indicator designed to identify whether price movement is currently expanding, contracting, or remaining relatively stable by analyzing changes in swing amplitude over time.
Rather than measuring trend direction alone, this indicator focuses on the magnitude of movement and compares recent swing behavior against a historical baseline to determine whether market activity is increasing, decreasing, or remaining balanced.
The goal is to provide a simplified view of changing market conditions and help identify shifts in price behavior beneath the surface.
Features:
• Automatic swing amplitude detection
• Multiple amplitude calculation methods:
• Points
• Percent
• ATR Multiple
• Compares recent swing behavior against historical averages
• Automatic market state classification:
• ▲ Expanding
• ■ Stable
• ▼ Contracting
• Historical state ribbon visualization
• Optional background state highlighting
• State transition markers
• Current-state icon display
• Dynamic text labels
• One-line summary table
Potential use cases:
• Identify increasing market activity
• Detect contracting or slowing environments
• Filter trades based on market conditions
• Monitor transitions between regimes
• Add confluence to existing systems
• Study changing market behavior over time
Interpretation:
▲ Expanding
Recent price swings are becoming larger relative to historical behavior and market activity may be increasing.
■ Stable
Recent swing behavior remains relatively balanced and consistent with historical movement.
▼ Contracting
Recent price swings are becoming smaller relative to historical behavior and market activity may be compressing.
Transition Markers
Highlight when market conditions shift from one state to another.
Historical State Ribbon
🟢 Green → Expanding
🟡 Yellow → Stable
🔴 Red → Contracting
The purpose of this indicator is not to predict future price direction, but to provide insight into how market movement itself is changing and whether current behavior is becoming more active or more compressed.
Settings Guide
Pivot Left Bars
Controls how many bars to the left are used to confirm swing highs and lows.
Pivot Right Bars
Controls how many bars to the right are used to confirm swing highs and lows.
Amplitude Mode
• Points → Uses raw price movement values
• Percent → Measures swings as percentage movement
• ATR Multiple → Measures swings relative to current volatility
ATR Length
ATR period used when ATR Multiple mode is selected.
Recent Swings
Number of recent swings used to represent current market behavior.
Baseline Swings
Historical swing sample used for comparison.
Stable Threshold %
Defines the range where movement is considered stable rather than expanding or contracting.
Show Historical State Ribbon
Displays historical expanding/contracting states.
Show Historical Background
Applies background coloring to historical market states.
Show Transition Markers
Displays markers when state changes occur.
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market.
Amplitude State Simple is a market behavior indicator designed to identify whether price movement is currently expanding, contracting, or remaining relatively stable by analyzing changes in swing amplitude over time.
Rather than measuring trend direction alone, this indicator focuses on the magnitude of movement and compares recent swing behavior against a historical baseline to determine whether market activity is increasing, decreasing, or remaining balanced.
The goal is to provide a simplified view of changing market conditions and help identify shifts in price behavior beneath the surface.
Features:
• Automatic swing amplitude detection
• Multiple amplitude calculation methods:
• Points
• Percent
• ATR Multiple
• Compares recent swing behavior against historical averages
• Automatic market state classification:
• ▲ Expanding
• ■ Stable
• ▼ Contracting
• Historical state ribbon visualization
• Optional background state highlighting
• State transition markers
• Current-state icon display
• Dynamic text labels
• One-line summary table
Potential use cases:
• Identify increasing market activity
• Detect contracting or slowing environments
• Filter trades based on market conditions
• Monitor transitions between regimes
• Add confluence to existing systems
• Study changing market behavior over time
Interpretation:
▲ Expanding
Recent price swings are becoming larger relative to historical behavior and market activity may be increasing.
■ Stable
Recent swing behavior remains relatively balanced and consistent with historical movement.
▼ Contracting
Recent price swings are becoming smaller relative to historical behavior and market activity may be compressing.
Transition Markers
Highlight when market conditions shift from one state to another.
Historical State Ribbon
🟢 Green → Expanding
🟡 Yellow → Stable
🔴 Red → Contracting
The purpose of this indicator is not to predict future price direction, but to provide insight into how market movement itself is changing and whether current behavior is becoming more active or more compressed.
Settings Guide
Pivot Left Bars
Controls how many bars to the left are used to confirm swing highs and lows.
Pivot Right Bars
Controls how many bars to the right are used to confirm swing highs and lows.
Amplitude Mode
• Points → Uses raw price movement values
• Percent → Measures swings as percentage movement
• ATR Multiple → Measures swings relative to current volatility
ATR Length
ATR period used when ATR Multiple mode is selected.
Recent Swings
Number of recent swings used to represent current market behavior.
Baseline Swings
Historical swing sample used for comparison.
Stable Threshold %
Defines the range where movement is considered stable rather than expanding or contracting.
Show Historical State Ribbon
Displays historical expanding/contracting states.
Show Historical Background
Applies background coloring to historical market states.
Show Transition Markers
Displays markers when state changes occur.
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.