IDayIIndex
Download scriptIntraday Intensity Index (IDI) Logic Overview
The Intraday Intensity Index (IDI) is a technical analysis tool designed to measure the "intensity" or pressure of price movements within a specific timeframe. Unlike standard indicators that only look at price, this script combines price action with volume data to provide a clearer picture of how much effort is being spent to move the market in a specific direction.
Core Logic and Mechanics
The indicator operates through a three-step mathematical process to convert raw market data into a readable intensity score:
1. Calculating Price Pressure (Raw Data) For every individual price tick, the script determines where the price closed relative to its high and low range for that specific moment.
- If the price closes near the high of the range, it suggests strong upward pressure.
- If it closes near the low, it suggests downward pressure.
- This "pressure" value is then multiplied by the actual volume of trades occurring at that exact millisecond (tick volume). This ensures that a small move on low volume carries less weight than a large move on high volume.
2. Cumulative Aggregation (The Summation) Instead of looking at just one moment in time, the indicator uses a user-defined Period (e.g., 21 bars). It looks back over this period and adds up all the "pressure" values calculated in the previous step. This creates a running total that represents the accumulated market momentum over that timeframe.
3. Normalization (Optional Scaling) The script offers two ways to display this information depending on your preference:
- Standard Mode: The indicator displays the raw accumulated sum of pressure. This is useful for seeing the sheer magnitude of movement.
- Normalized Mode: The script divides the total pressure by the total volume of the period and multiplies it by 100. This converts the data into a percentage-like scale, making it easier to compare different assets or timeframes regardless of how high or low their actual price/volume numbers are.
How to Interpret the Results
The resulting line on your chart represents the "Intensity" of the current market state:
- Increasing Value: Indicates that buyers (or sellers, depending on the trend) are successfully pushing the price with significant volume, showing strengthening momentum.
- Decreasing Value: Suggests that the current move is losing steam or that the "effort" (volume) required to maintain the price direction is dropping.
- Volatility Context: By combining price range with tick volume, the indicator helps traders distinguish between a "heavy" move (high intensity) and a "lazy" move (low intensity), even if the price change looks similar on a standard candle chart.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | I D a y I I n d e x . m q 5 |
/ / | C o p y r i g h t 2 0 1 8 , M e t a Q u o t e s S o f t w a r e C o r p . |
/ / | h t t p s : / / m q l 5 . c o m |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "