OPEN-SOURCE SCRIPT
Momentum de Pips Institucional

Script Description
This indicator analyzes the price movement of the last N candles (default: 200) and calculates the accumulated positive and negative pip movement to measure market pressure and directional momentum.
For each candle, the script calculates the difference between the closing and opening prices and converts that movement into pips using the instrument's minimum tick size.
The indicator then aggregates these values over the selected lookback period to determine whether buyers or sellers have been dominating the market.
A table on the chart summarizes key market metrics.
Metrics Calculated
Positive Pips
Total accumulated pips from candles where:
Close > Open
This represents buying pressure.
Negative Pips
Total accumulated pips from candles where:
Close < Open
This represents selling pressure.
Delta Pips
Net market movement calculated as:
Delta = Positive Pips + Negative Pips
Interpretation:
Positive value → bullish dominance
Negative value → bearish dominance
Bullish Candle Percentage
Percentage of bullish candles within the analyzed period:
Bull % = (Bullish Candles / Total Candles) × 100
This helps identify whether the market structure favours buyers or sellers.
Bull/Bear Ratio
Measures the relative strength of bullish versus bearish movement:
Ratio = |Positive Pips / Negative Pips|
Interpretation:
Ratio Market Condition
≈1 Balanced market
1.5+ Trending market
2+ Strong directional pressure
Momentum
Directional momentum is calculated as:
Momentum = Delta / Number of Candles
This metric shows how quickly the market is moving in a particular direction.
Visual Signals
The script also highlights strong directional conditions:
Green background
Bullish candles > 60%
Delta pips positive
This indicates strong bullish dominance.
Red background
Bullish candles < 40%
Delta pips negative
This indicates strong bearish dominance.
Purpose of the Indicator
This indicator helps traders quickly identify:
Market pressure (buying vs selling)
Directional dominance
Momentum strength
Potential trending conditions
It can be used across Forex, indices, commodities, and cryptocurrencies to evaluate whether the recent price action favours continuation or reversal scenarios.
If you want, I can also write a much more professional TradingView publication description (the type used by top indicators) so that when you publish it, it looks very professional and gets more followers on TradingView.
This indicator analyzes the price movement of the last N candles (default: 200) and calculates the accumulated positive and negative pip movement to measure market pressure and directional momentum.
For each candle, the script calculates the difference between the closing and opening prices and converts that movement into pips using the instrument's minimum tick size.
The indicator then aggregates these values over the selected lookback period to determine whether buyers or sellers have been dominating the market.
A table on the chart summarizes key market metrics.
Metrics Calculated
Positive Pips
Total accumulated pips from candles where:
Close > Open
This represents buying pressure.
Negative Pips
Total accumulated pips from candles where:
Close < Open
This represents selling pressure.
Delta Pips
Net market movement calculated as:
Delta = Positive Pips + Negative Pips
Interpretation:
Positive value → bullish dominance
Negative value → bearish dominance
Bullish Candle Percentage
Percentage of bullish candles within the analyzed period:
Bull % = (Bullish Candles / Total Candles) × 100
This helps identify whether the market structure favours buyers or sellers.
Bull/Bear Ratio
Measures the relative strength of bullish versus bearish movement:
Ratio = |Positive Pips / Negative Pips|
Interpretation:
Ratio Market Condition
≈1 Balanced market
1.5+ Trending market
2+ Strong directional pressure
Momentum
Directional momentum is calculated as:
Momentum = Delta / Number of Candles
This metric shows how quickly the market is moving in a particular direction.
Visual Signals
The script also highlights strong directional conditions:
Green background
Bullish candles > 60%
Delta pips positive
This indicates strong bullish dominance.
Red background
Bullish candles < 40%
Delta pips negative
This indicates strong bearish dominance.
Purpose of the Indicator
This indicator helps traders quickly identify:
Market pressure (buying vs selling)
Directional dominance
Momentum strength
Potential trending conditions
It can be used across Forex, indices, commodities, and cryptocurrencies to evaluate whether the recent price action favours continuation or reversal scenarios.
If you want, I can also write a much more professional TradingView publication description (the type used by top indicators) so that when you publish it, it looks very professional and gets more followers on TradingView.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。