OPEN-SOURCE SCRIPT
ES Breakout Toolkit Momentum Close Filter Free

=== PART OF THE ES BREAKOUT TOOLKIT ===
This is one of several free, standalone indicators that make up the ES Breakout Toolkit series. Each indicator isolates a single component used in the full ES London Breakout Pro strategy. They are designed to be useful on their own and educational for traders who want to understand candle close dynamics and momentum quality.
=== WHAT THIS INDICATOR DOES ===
The Momentum Close Filter analyzes where price closes within each candle's range and classifies candles by momentum strength. A candle that closes near its high has strong bullish momentum. A candle that closes near its low has strong bearish momentum. A candle that closes in the middle is indecisive.
This concept — called close position analysis — is a powerful filter that many traders overlook. The indicator tracks close position in real time, identifies extreme momentum readings using a statistical threshold (1.5 standard deviations above/below average), and detects momentum streaks where multiple consecutive candles show strong directional commitment.
=== HOW TO USE IT ===
Apply this to an ES futures chart on a 5-minute timeframe. The indicator will color bars by their momentum classification and mark extreme momentum candles with diamond signals. Streak flags appear when three or more consecutive candles show strong momentum in the same direction.
The dashboard shows the current candle's close position percentage, body ratio, momentum classification, streak count, and the rolling average close position over your lookback period. The running stats at the bottom show how many strong bullish vs bearish candles have occurred, giving you a sense of the session's directional bias.
An optional histogram mode plots the close position as columns in a separate pane with your threshold lines and the rolling average overlaid. This is useful for studying close position distribution over time.
=== KEY FEATURES ===
- Real-time close position analysis for every candle
- Configurable bullish and bearish momentum thresholds
- Extreme momentum detection using standard deviation bands
- Momentum streak tracking with visual flags at 3+ consecutive candles
- Optional bar coloring by momentum classification
- Optional histogram pane with threshold and average lines
- Optional London session filter
- Dashboard with close position, body ratio, momentum state, and streak info
- Running session stats for strong bull vs bear candle counts
- Alerts for strong and extreme momentum candles in both directions
=== WHY CLOSE POSITION MATTERS ===
Two candles can have identical body sizes but very different close positions. A candle with a long upper wick closing in the middle of its range tells a different story than a candle closing at its high with no upper wick. Close position captures this nuance. When combined with a body ratio filter, it becomes a reliable measure of whether a candle represents genuine directional commitment or just noise.
=== ABOUT THE ES BREAKOUT TOOLKIT ===
This indicator is part of a free series that breaks down the building blocks of a London session ES futures breakout strategy. Other free indicators in the series cover session highlighting, consolidation range detection, ADX regime filtering, and breakout candle scanning. Each is published separately on my profile.
The full ES London Breakout Pro indicator combines all of these components into a unified strategy with additional proprietary features including advanced risk management, trade qualification, and data tracking. It is available as an invite-only script on my profile. Use the access request instructions on that script's page if you are interested.
=== DISCLAIMER ===
This indicator is provided for educational and informational purposes only. It is NOT financial advice. It does not constitute a recommendation to buy, sell, or hold any financial instrument. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance of any indicator or strategy is not indicative of future results. Always conduct your own research and consult a qualified financial advisor before making any trading decisions. You are solely responsible for your own trading activity.
This is one of several free, standalone indicators that make up the ES Breakout Toolkit series. Each indicator isolates a single component used in the full ES London Breakout Pro strategy. They are designed to be useful on their own and educational for traders who want to understand candle close dynamics and momentum quality.
=== WHAT THIS INDICATOR DOES ===
The Momentum Close Filter analyzes where price closes within each candle's range and classifies candles by momentum strength. A candle that closes near its high has strong bullish momentum. A candle that closes near its low has strong bearish momentum. A candle that closes in the middle is indecisive.
This concept — called close position analysis — is a powerful filter that many traders overlook. The indicator tracks close position in real time, identifies extreme momentum readings using a statistical threshold (1.5 standard deviations above/below average), and detects momentum streaks where multiple consecutive candles show strong directional commitment.
=== HOW TO USE IT ===
Apply this to an ES futures chart on a 5-minute timeframe. The indicator will color bars by their momentum classification and mark extreme momentum candles with diamond signals. Streak flags appear when three or more consecutive candles show strong momentum in the same direction.
The dashboard shows the current candle's close position percentage, body ratio, momentum classification, streak count, and the rolling average close position over your lookback period. The running stats at the bottom show how many strong bullish vs bearish candles have occurred, giving you a sense of the session's directional bias.
An optional histogram mode plots the close position as columns in a separate pane with your threshold lines and the rolling average overlaid. This is useful for studying close position distribution over time.
=== KEY FEATURES ===
- Real-time close position analysis for every candle
- Configurable bullish and bearish momentum thresholds
- Extreme momentum detection using standard deviation bands
- Momentum streak tracking with visual flags at 3+ consecutive candles
- Optional bar coloring by momentum classification
- Optional histogram pane with threshold and average lines
- Optional London session filter
- Dashboard with close position, body ratio, momentum state, and streak info
- Running session stats for strong bull vs bear candle counts
- Alerts for strong and extreme momentum candles in both directions
=== WHY CLOSE POSITION MATTERS ===
Two candles can have identical body sizes but very different close positions. A candle with a long upper wick closing in the middle of its range tells a different story than a candle closing at its high with no upper wick. Close position captures this nuance. When combined with a body ratio filter, it becomes a reliable measure of whether a candle represents genuine directional commitment or just noise.
=== ABOUT THE ES BREAKOUT TOOLKIT ===
This indicator is part of a free series that breaks down the building blocks of a London session ES futures breakout strategy. Other free indicators in the series cover session highlighting, consolidation range detection, ADX regime filtering, and breakout candle scanning. Each is published separately on my profile.
The full ES London Breakout Pro indicator combines all of these components into a unified strategy with additional proprietary features including advanced risk management, trade qualification, and data tracking. It is available as an invite-only script on my profile. Use the access request instructions on that script's page if you are interested.
=== DISCLAIMER ===
This indicator is provided for educational and informational purposes only. It is NOT financial advice. It does not constitute a recommendation to buy, sell, or hold any financial instrument. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance of any indicator or strategy is not indicative of future results. Always conduct your own research and consult a qualified financial advisor before making any trading decisions. You are solely responsible for your own trading activity.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。