Intraday intensity is calculated based upon the relationship between the price change and the volume of shares traded during each daily interval. It aims to capture the level of buying or selling activity relative to the overall volume. A high intraday intensity value suggests a higher level of buying or selling pressure, indicating a more active and potentially volatile market. Conversely, a low intraday intensity value indicates less pronounced trading activity and a potentially quieter market. Overall, intraday intensity provides a concise description of the intensity of trading activity during a particular trading session, giving traders an additional perspective on market dynamics. Note that because the calculation uses volume this indicator will only work on symbols where volume is available.
While there are pre-existing versions within community scripts, none were found to have applied the calculations necessary for the various modes that are presented within this version, which are believed to be operating in the manner originally intended when first described by Bostian and again later by Bollinger. When operating in default modes on daily or lower chart timeframes the logic used within this script tracks the intraday high, low, close and volume for the day with each progressing intraday bar.
The BB indicator was included on the top main chart to help illustrate example usage as described below. The Intraday Intensity Modes indicator is pictured operating in three different modes beneath the main chart:
• The top pane beneath the main chart shows the indicator operating as a normalized 21 day II% oscillator. A potential use while in this mode would be to look for positive values as potential confirmation of strength when price tags the upper or lower Bollinger bands, and to look for negative values as potential confirmation of weakness when price tags the upper or lower Bollinger bands.
• The middle pane shows the indicator operating as an "open ended" cumulative sum of II. A potential use while in this mode would be to look for convergence or divergence of trend when price is making new highs or lows, or while price is walking the upper or lower Bollinger bands.
• The bottom pane shows the indicator operating in standard III mode, which provides independent values per session.
Indicator Settings:Inputs tab:
Osc Length: Set to 1 disables oscillation, values greater than 1 enables oscillation for II% (Intraday Intensity percent) mode.
Tootip: Hover mouse over (i) to show recommended example Settings for various modes.
Cumulative: When enabled values are cumulatively summed for the entire chart and indicator operates in II mode.
Normalized: When enabled a rolling window of Osc Length values are summed and normalized to the rolling window's volume.
Intrabar: When enabled price range and volume are evaluated for intensity per bar instead of per day which is a departure from the original
concept. Whenever this setting is enabled the indicator should be regarded as operating in an experimental mode.
Colors For Up Down: Sets the plot colors used, may be overridden in Settings:Style tab.
Styles / Width: Sets the plot style and width used, may be overridden in Settings:Style tab.
This indicator is designed to work with any chart timeframe, with the understanding that when used on timeframes higher than daily the indicator becomes "IntraPeriod" intensity, for example on weekly bars it would be "IntraWeek" intensity. On Daily or lower timeframes the indicator operates as "IntraDay" intensity and is being updated on each bar as each day progresses. If the experimental setting Intrabar is enabled then the indicator operates as "IntraBar" intensity and is no longer constrained to daily or higher evaluations, for example with Intrabar enabled on a 4H timeframe the indicator would operate as "Intra4H" intensity.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
There is variance amongst the published reference material from different sources regarding the equation for Intraday Intensity Index. The disparity is on whether volume should be in the numerator or denominator.
Some sources list the equation as:
iii = (2 * close - high - low) / ((high - low) * volume)
Whereas other sources list it as:
iii = ((2 * close - high - low) / (high - low)) * volume
Due to this lack of consensus have added an option to toggle the placement of where volume is applied in formula, when the setting "Inverse Volume" is enabled volume is applied to the denominator instead of the numerator. The default setting for "Inverse Volume" is set to off which adheres to the published equation within "Bollinger on Bollinger Bands" by John Bollinger. When "Inverse Volume" is disabled this indicator's values closely aligns with the published chart examples contained within Bollinger's book. Have updated the published chart above to reflect this revision. For those who wish to depart from Bollinger's equation they may simply enable "Inverse Volume", otherwise this setting can be left disabled.
Added factor of 100 to II% which is the other enhancement needed to match Bollinger's published chart examples.
Added settings "Show Levels Above Below " for optional showing of customizable levels for use with II%.
Updated tool tips to reflect these changes.
If you would like to buy me a refreshing beverage :)...
LTC (preferred): LTDaAe7nPzbpBhZVT9o5f9f8M3aZSPa46Y
Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.