Directional Flow Signals
Directional Flow Signals is a DMI-based trend direction indicator designed to highlight shifts in directional pressure directly on the price chart.
The indicator uses the Directional Movement Index system, comparing DI+ and DI- to determine which side of the market is currently dominant.
When DI+ is above DI-, candles are colored bullish.
When DI- is above DI+, candles are colored bearish.
A Long signal appears when directional control shifts from bearish to bullish.
A Short signal appears when directional control shifts from bullish to bearish.
This allows traders to quickly visualize changes in directional bias without needing to keep a separate DMI/ADX panel open.
Key features:
- Bullish and bearish candle coloring
- Long and Short signal labels
- DI+ / DI- crossover-based trend shifts
- Built-in alert conditions
- Adjustable DMI length and smoothing
- Custom candle colors
This tool can be useful for identifying directional transitions, trend bias changes, and possible momentum shifts when combined with support/resistance, volume, VWAP, market structure, or higher timeframe confirmation.
Important:
This indicator does not predict price movement and should not be used as a standalone trading system. Since the signals are based on DI+ and DI- crossovers, they may produce false signals during sideways or low-volatility market conditions.
Inputs:
Show BUY/SELL Signals:
Allows users to enable or disable Long and Short labels on the chart.
ADX Length:
Controls the lookback period used for the Directional Movement Index calculation.
ADX Smoothing:
Controls the smoothing applied to the ADX/DMI calculation.
Up Candle Color:
Sets the candle color when DI+ is stronger than DI-.
Down Candle Color:
Sets the candle color when DI- is stronger than DI+.
Directional Flow Signals is a visual trend-bias indicator based on the Directional Movement Index.
The script compares DI+ and DI- to determine whether bullish or bearish directional pressure is dominant. Candles are colored according to the active directional bias, and signal labels are displayed when the dominant side changes.
Signal logic:
Long Signal:
A Long signal is generated when DI+ becomes stronger than DI- after previously being below it.
Short Signal:
A Short signal is generated when DI- becomes stronger than DI+ after previously being below DI+.
The goal of this indicator is not to predict reversals, but to provide a clear visual representation of directional pressure shifts.
It is best used as a confirmation layer together with price structure, volume, VWAP, support/resistance, or higher timeframe trend analysis.
Limitations:
- Signals are based only on DI+ and DI- dominance.
- The ADX value is calculated but not used as a strength filter.
- False signals may occur in ranging or choppy markets.
- The indicator does not provide stop loss, take profit, or risk management levels.
- It should be used as a confirmation or visual bias tool, not as a complete trading system.
Indicator

AG Pro DMI Rotation Pressure [AGPro Series]AG Pro DMI Rotation Pressure
Overview / What it does
AG Pro DMI Rotation Pressure is designed to track directional leadership shifts between +DI and -DI rather than treating DMI as a simple trend-strength confirmation tool. The script focuses on which side is gaining control, how decisively that control is expanding, and whether the current condition reflects rotation, compression, drift, or established directional pressure.
The indicator is plotted in a separate pane so the rotational structure can be read clearly without interfering with price structure on the main chart. It combines a net pressure histogram, a pressure signal line, DI spread behavior, rotation bursts, and compression tension into one framework intended to make directional handoffs easier to interpret.
This script is intentionally different from strength-oriented DMI or ADX studies. In many DMI-based tools, ADX becomes the main story. Here, ADX is only a supporting context value. The primary objective is to monitor the push-and-pull between +DI and -DI, especially when leadership is unstable, when pressure begins to build after compression, or when one side starts to hold directional control more consistently.
For traders who want to study internal directional pressure before or during trend development, this script is built to highlight control transitions rather than just reporting whether a trend is already strong.
Unique Edge
The distinctive feature of this script is its emphasis on rotational pressure instead of trend-strength ranking. Rather than asking only whether the market is strong, it asks which side is taking control, whether that control is improving or fading, and whether a transition is underway.
This produces a different read from a standard ADX workflow. A market can have moderate ADX and still show meaningful bullish or bearish pressure transfer through the behavior of +DI and -DI. Conversely, a market may print elevated ADX while the directional leadership structure is already weakening or becoming unstable. By separating directional leadership from raw strength, the script aims to expose the internal character of the move more clearly.
The script also classifies the environment into readable states such as Bull Rotation, Bear Rotation, Bull Control, Bear Control, Bull Expansion, Bear Expansion, Bull Drift, Bear Drift, and Compression Battle. That state engine is meant to reduce ambiguity and make the pane easier to interpret quickly across multiple symbols and timeframes.
Methodology
The script begins with the DMI framework: +DI, -DI, and ADX. From there, it derives a rotational model built around DI spread and spread behavior over time.
1. DI leadership
The core directional read is the spread between +DI and -DI. Positive spread means bullish directional leadership. Negative spread means bearish directional leadership. The magnitude of that spread is used as one layer of directional pressure assessment.
2. Rotational slope behavior
The script evaluates how +DI and -DI are changing, not only their absolute values. This helps estimate whether one side is accelerating relative to the other. Slope behavior is important because leadership transitions often begin before a large DI spread is fully established.
3. Pressure scoring
Bullish and bearish pressure are scored separately using DI spread, relative slope behavior, and spread momentum. This creates the Bull / Bear pressure readings shown in the panel, as well as the Net Pressure histogram in the pane.
4. Signal smoothing
A pressure signal line is applied to the net pressure series to make pressure drift and bias easier to read. This is not intended as a prediction line. It is a smoothing layer that helps frame whether the dominant side is strengthening, fading, or remaining relatively stable.
5. Rotation bursts
Crossovers between +DI and -DI are treated as potential rotational events. The script scores those events so that rotation markers are tied to directional handoff rather than appearing as purely cosmetic crossover labels.
6. Compression and tension
When DI spread contracts below the compression threshold, the script evaluates internal tension. This is useful because some of the most meaningful directional expansions begin after a compressed and contested leadership state. Compression Battle is meant to identify that contested environment, not to forecast direction by itself.
7. State engine
The script assigns a readable state based on pressure, spread, crossover status, and compression context. This is what allows the study to describe the environment as rotation, control, expansion, drift, or compression instead of leaving the user to infer all conditions from raw lines alone.
Signals & Alerts
The script includes deterministic alert conditions for the following events:
Bull Rotation
Triggered when +DI crosses above -DI and bullish directional rotation takes control.
Bear Rotation
Triggered when +DI crosses below -DI and bearish directional rotation takes control.
Bull Control
Triggered when bullish pressure is in control territory.
Bear Control
Triggered when bearish pressure is in control territory.
Compression Battle
Triggered when DI spread is compressed while internal tension is elevated.
These conditions are designed to describe state changes inside the DMI structure. They should be used as analytical events, not as automatic trade instructions.
Key Inputs
DI Length
Controls the base DMI sensitivity.
ADX Smoothing
Adjusts the ADX smoothing component used for contextual strength reading.
Rotation Slope Smoothing
Changes how quickly slope-based rotational behavior reacts.
Pressure Signal Length
Controls smoothing of the net pressure signal.
Compression Threshold
Defines when DI spread is considered compressed.
Expansion Threshold
Defines when directional pressure begins to qualify as expansion.
Control Threshold
Defines when directional pressure is strong enough to be treated as control.
Visual controls
Backgrounds, spread fill, rotation markers, panel theme, panel position, and panel font size can all be adjusted depending on the chart style and workspace preference.
Limitations & Transparency
This script is not a forecasting model. It does not know future direction and it does not attempt to predict exact reversal points. It is a structural pressure tool built from DMI behavior.
Like all DMI-based studies, it can become noisy in highly erratic or mean-reverting conditions. Repeated +DI and -DI handoffs may appear during choppy phases, especially on lower timeframes or during indecisive sessions.
Compression readings should not be interpreted as guaranteed breakout setups. Compression only describes a tight directional contest inside the DI structure. Direction still needs confirmation from price behavior, market structure, volatility regime, or other contextual tools.
Bullish or bearish control states do not guarantee continuation. They only indicate that the directional pressure model currently favors one side. Users should evaluate the output alongside price structure, support/resistance, volume behavior, and timeframe context.
This study is best treated as a directional pressure map, not as a standalone trading system.
Risk Disclosure
This script is for chart analysis and research purposes only. It does not provide financial, investment, or trading advice. Markets involve risk, and indicator-based decisions can result in losses. Always use independent judgment, confirm with broader market context, and apply appropriate risk management.
Indicator

RSI, SRSI, MACD and DMI cross - Open source codeHello,
I'm a passionate trader who has spent years studying technical analysis and exploring different trading strategies. Through my research, I've come to realize that certain indicators are essential tools for conducting accurate market analysis and identifying profitable trading opportunities. In particular, I've found that the RSI, SRSI, MACD cross, and Di cross indicators are crucial for my trading success.
Detailed explanation:
The RSI is a momentum indicator that measures the strength of price movements. It is calculated by comparing the average of gains and losses over a certain period of time. In this indicator, the RSI is calculated based on the close price with a length of 14 periods.
The Stochastic RSI is a combination of the Stochastic Oscillator and the RSI. It is used to identify overbought and oversold conditions of the market. In this indicator, the Stochastic RSI is calculated based on the RSI with a length of 14 periods.
The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of prices. It consists of two lines, the MACD line and the signal line, which are used to generate buy and sell signals. In this indicator, the MACD is calculated based on the close price with fast and slow lengths of 12 and 26 periods, respectively, and a signal length of 9 periods.
The DMI is a trend-following indicator that measures the strength of directional movement in the market. It consists of three lines, the Positive Directional Indicator (+DI), the Negative Directional Indicator (-DI), and the Average Directional Index (ADX), which are used to generate buy and sell signals. In this indicator, the DMI is calculated with a length of 14 periods and an ADX smoothing of 14 periods.
The indicator generates buy signals when certain conditions are met for each of these indicators.
1) For the RSI, a buy signal is generated when the RSI is below or equal to 35 and the Stochastic RSI %K is below or equal to 15, or when the RSI is below or equal to 28 the Stochastic RSI %K is below or equal to 15 or when the RSI is below or equal to 25 and the Stochastic RSI %K is below or equal to 10 or when the RSI is below or equal to 28.
2) For the MACD, a buy signal is generated when the MACD line is below 0, there is a change in the histogram from negative to positive, the MACD line and histogram are negative in the previous period, and the current histogram value is greater than 0.
3) For the DMI, a buy signal is generated when the Positive Directional Indicator (+DI) crosses above the Negative Directional Indicator (-DI), and the -DI is less than the +DI.
The indicator generates sell signals when certain conditions are met for each of these indicators:
1) For the RSI, a sell signal is generated when the RSI is above or equal to 75 and the Stochastic RSI %K is above or equal to 85, or when the RSI is above or equal to 80 and the Stochastic RSI %K is above or equal to 85, or when the RSI is above or equal to 85 and the Stochastic RSI %K is above or equal to 90 or when the RSI is above or equal to 82.
2)For the MACD, a sell signal is generated when the MACD line is above 0, there is a change in the histogram from positive to negative, the MACD line and histogram are positive in the previous period, and the current histogram value is less than the previous histogram value. On the other hand, a buy signal is generated when the MACD line is below 0, there is a change in the histogram from negative to positive, the MACD line and histogram are negative in the previous period, and the current histogram value is greater than the previous histogram value.
3)For the DMI a bearish signal is generated when plusDI crosses above minusDI, indicating that bulls are losing strength and bears are taking control.
The indicator uses a combination of these four indicators to generate potential buy and sell signals. The buy signals are generated when RSI and SRSI values are in oversold conditions, while sell signals are generated when RSI and SRSI values are in overbought conditions. The indicator also uses MACD crossovers and DMI crossovers to generate additional buy and sell signals.
When a signal is strong?
The use of multiple signals within a specific timeframe can increase the accuracy and reliability of the signals generated by this indicator. It is recommended to look for at least two signals within a range of 5-8 candles in order to increase the probability of a successful trade.
Why it's original?
1) There is no indicator in the library that combine all of these indicators and give you a 360 view
2)The combination of the RSI, Stochastic RSI, MACD, and DMI indicators in a single script it's unique and not available in the libray.
3)The specific parameters and conditions used to calculate the signals may be unique and not found in other scripts or libraries.
4)The use of plotshape() to plot the signals as shapes on the chart may be unique compared to other scripts that simply plot lines or bars to indicate signals.
5)The use of alertcondition() to trigger alerts based on the signals may be unique compared to other scripts that do not have custom alert functionality.
Keep attention!
It is important to note that no trading indicator or strategy is foolproof, and there is always a risk of losses in trading. While this indicator may provide useful information for making conclusions, it should not be used as the sole basis for making trading decisions. Traders should always use proper risk management techniques and consider multiple factors when making trading decisions.
Support me:)
If you find this new indicator helpful in your trading analysis, I would greatly appreciate your support! Please consider giving it a like, leaving feedback, or sharing it with your trading network. Your engagement will not only help me improve this tool but will also help other traders discover it and benefit from its features. Thank you for your support! Indicator

DMI StrategyThis strategy is based on DMI indicator. It helps me to identify base or top of the script. I mostly use this script to trade in Nifty bank options, even when the signal comes in nifty . It can be used to trade in other scripts as well. Pivot points can also be used to take entry. Long entry is taken when DI+(11) goes below 10 and DI-(11) goes above 40 , whereas short entry is taken when DI-(11) goes below 10 and DI+(11) goes above 40.
For bank nifty , I take the trade in the strike price for which the current premium is nearby 300, with the SL of 20%. If premium goes below 10% I buy one more lot to average, but exit if the premium goes below 20% of the first entry. If the trade moves in the correct direction, we need to start trailing our stoploss or exit at the pre-defined target.
As this a strategy, there is one problem. While we are in the phase of "long", if again the "long" phase comes, it will not be shown on chart until a "short" phase has come, and vice versa. This has been resolved by creating an indicator instead of strategy with the name of "DMI Buy-sell on chart". Please go through that to get more entry points.
Please have a look at strategy tester to back test Strategy
