ADX Trend StrengthThis ADX Trend Strength indicator visually highlights trend intensity and direction using dynamic color-coded ADX lines, shaded threshold zones (20 & 25), and a top-pane label summarizing current market conditions. The label updates in real time to identify:
Strong Uptrend (ADX > 25 and +DI > -DI)
Strong Downtrend (ADX > 25 and -DI > +DI)
No Trend (ADX < 20)
Potential Trend Forming (ADX between 20–25)
Works well with breakout, trend-following, and pullback strategies—especially when paired with moving averages, RSI, or price action patterns. Includes optional alerts for ADX crossing key thresholds to signal early trend development.
平均趨向指標(ADX)
DMI-LuminateDMI-Luminate (DMI-LMT)
Indicator created by Canhoto-Medium, private creator, with no affiliation to TradingView or brokers. All costs and work are funded by the creator.
This is an advanced version of the classic DMI (Directional Movement Index), which measures the strength and direction of market trends. It calculates the +DM and -DM lines to identify upward and downward moves, plus the ADX to show trend strength, along with ADXR and DX for additional analysis.
You can choose the type of moving average used in the calculations, including traditional and advanced options, allowing customization for different trading styles and assets.
What it shows:
+DM and -DM: Indicate who is dominating—buyers or sellers.
DX: Measures the difference between +DM and -DM.
ADX: Shows trend strength—the higher it is, the stronger the trend.
ADXR: A smoothed average of the ADX, helping identify changes in trend strength.
Equilibrium Points: Crossings of +DM and -DM, signaling possible reversals or consolidations.
Use this indicator to assess whether the market is strong and trending or weak and sideways, helping you make more confident decisions.
About Moving Averages:
Basic moving averages (SMA, SMMA, EMA, WMA) are free for the entire community.
Advanced moving averages (ALMA, T3, VOL, DNA⚡, RNA🐢) are premium, reserved for those who value and support the developer.
Premium averages may be limited to the creator.
If you value the developer’s work, please consider donating USDT via low-fee blockchain networks to support ongoing development.
✔️ Donation Wallet (low-fee network):
USDT-(TRC20)= TZB4spB1XErqw9BPSWmaAkCznXb172quEY
USDT (BSC-BEP20)= 0xa177945d6fab3b2d3726366c951f4955ab338593
USDT (APTOS)= 0x47014ea8d6a22634046fa19fd8b7574db4ef702758a4d80a2d189b610438ce43
USDT (Mantle-Network)= 0xa177945d6fab3b2d3726366c951f4955ab338593
MPA AI v4 Adaptive Volatility-Based Trend Strategy# 🔍 MPA AI v4 – Adaptive Volatility-Based Trend Strategy
> Invite-Only | Designed for 15m Crypto Perpetuals | Dynamic TP/SL | Real-Time Market Structure Engine
---
## 📘 What Is MPA AI v4?
**MPA AI v4** is an advanced invite-only strategy specifically designed for trading crypto perpetual futures on 15-minute charts. It intelligently adapts to market conditions in real-time using a blend of volatility measurements, structural logic, and multi-layered trend confirmation.
Unlike conventional static systems, MPA AI v dynamically reconfigures all its core parameters—including EMAs, ADX thresholds, SL/TP levels, and Fibonacci extensions—based on the current volatility regime. It is built for intraday traders who seek precision, control, and intelligent trade automation.
---
## ⚙️ Core Mechanics and Logic
MPA AI v4 is composed of several synchronized modules:
| Module | Role |
| ------------------- | ---------------------------------------------------------- |
| EMA Short/Long | Dynamically determines trend direction and momentum |
| EMA Slope | Filters out weak or sideways markets |
| ADX (dynamic) | Confirms valid directional strength |
| Volatility Ratio | Drives regime switching for all key parameters |
| ATR + Fib Extension | Dual logic for conservative TP placement |
| Time-Based Exit | Ensures all trades close within 24 hours to limit exposure |
All modules respond to volatility conditions in real time, dynamically adjusting their thresholds, behavior, and interactions with one another on a per-candle basis. This ensures the strategy is not just adaptive in name, but functionally reactive to live market shifts—modifying entries, exits, risk profiles, and even filtering sensitivity as the volatility regime changes.
---
## 📊 Volatility Engine: Market Regime Classifier
The strategy classifies market volatility using the formula:
```pine
volatility = ta.atr(14) / ta.sma(ta.atr(14), 40)
```
This creates a dynamic ratio that segments market states into three regimes:
| Regime | Ratio Range | System Behavior |
| ---------- | ----------- | ---------------------------------------------------------------------- |
| High Vol | > 1.5 | Fast EMAs (5/20), wider SL (2.5%), aggressive Fib level (0.5), RR bias |
| Normal Vol | 0.8 - 1.5 | Balanced config (7/24 EMAs, SL \~2.0%, Fib level \~0.4) |
| Low Vol | < 0.8 | Slow EMAs (10/30), tighter SL, conservative TP via Fib (0.3) |
Each regime causes the system to adjust a wide array of parameters including risk thresholds, EMA lengths, ADX sensitivity, and even Fibonacci projection logic. In high volatility, the system prioritizes speed and broader stops, whereas in low volatility, it shifts to tighter risk controls and more conservative entry conditions. This ensures each trade setup is finely tuned to the prevailing market environment, minimizing false signals and optimizing profitability potential across regimes.
---
## 📊 Multi-Stage Trend Validation
Before entering a position, the strategy verifies three simultaneous conditions to ensure high-probability setups and avoid entries during noisy or uncertain price action:
### 1. EMA Alignment
* Price must cross above (or below) a volatility-adjusted short EMA
* Price must remain above (for long) or below (for short) the long EMA
* This ensures that both short-term and medium-term directional bias support the potential trade
### 2. EMA Slope
* Measured slope of the short EMA must exceed a minimum dynamic threshold that adjusts with volatility
* This condition removes false setups in sideways markets and prioritizes trades in trending phases
* The slope threshold itself is scaled relative to price movement and volatility level, making it flexible across market conditions
### 3. ADX Confirmation
* The ADX must be above a dynamic floor (ranging from 22 in low-volatility regimes to 55 in high-volatility)
* This confirms that the trend has sufficient directional energy to warrant an entry
* ADX filtering reduces the chance of entering during choppy, low-momentum phases
Only if **all three filters** are satisfied within the same candle context does the strategy allow a position to be opened. This conservative entry gating significantly reduces overtrading and increases signal reliability.
---
## 🌟 Entry and Exit Logic
| Signal Type | Conditions |
| ----------- | ----------------------------------------------------------- |
| Long | Price > EMA short & long, EMA slope > threshold, ADX valid |
| Short | Price < EMA short & long, EMA slope < -threshold, ADX valid |
These entry signals are only triggered when all conditions are met simultaneously within the same candle context, ensuring trend alignment, directional bias, and strength confirmation are all present. This reduces the chance of entering on noise, fakeouts, or uncertain reversals. By requiring confirmation from price position, EMA angle, and trend strength (ADX), MPA AI v4 filters out low-conviction setups and ensures strategic capital deployment.
### TP Calculation:
* Computes **Fibonacci-based extension** from recent HH/LL range, reflecting structure-based potential
* Calculates **ATR-based projection** using live volatility to estimate expansion capacity
* Selects the more conservative value between the two to avoid overextending profit targets
* This dual-confirmation approach helps maintain a favorable reward/risk profile while avoiding unrealistic expectations
### SL Calculation:
* SL is determined as a volatility-adjusted percentage of entry price (ranging from 2.0% to 2.5%)
* The SL adapts in real-time based on the prevailing volatility regime to maintain proportional risk control
* This dynamic approach reduces overexposure during unpredictable phases
### 24-Hour Exit:
* Any trade left open for more than 24 hours is forcibly closed to avoid indefinite exposure
* A timeout label is plotted on the chart to show that a duration-based exit was executed
* This mechanism acts as a safety net against stagnating trades and unexpected market drift
---
## 📊 Visual Feedback on Chart
| Element | Purpose |
| ------------- | -------------------------------------------------- |
| EMA Lines | Visual trend confirmation (dynamic) |
| TP/SL Labels | Shows price and percent values in real time |
| RR Label | Displays calculated Risk/Reward ratio |
| Info Box | Shows all TP/SL/RR info when a position is active |
| Timeout Label | Indicates when a position closed due to 24h expiry |
---
## 🔮 Recommended Backtest Settings
| Parameter | Value | Rationale |
| --------------- | ----------- | ----------------------------------------- |
| Initial Capital | 100,000 | Reasonable for retail testing |
| Commission | 0.04% | Reflects Binance taker fee |
| Slippage | 2 ticks | Models realistic trade latency |
| Order Size | 100% equity | Full exposure trade per signal |
| Pyramiding | 1 | Prevents overlapping entries |
| Timeframe | 15m | Balances speed and statistical relevance |
| Sample Size | 100+ trades | Meets TradingView's statistical standards |
---
## 🔒 Invite-Only Justification
MPA AI v4 incorporates:
* A real-time volatility modeling engine
* Adaptive EMA/ADX/Fib/ATR interaction
* Smart TP/SL pairing using multi-method projections
* Market structure targeting without repainting
* Controlled time-exposure logic with visual transparency
Unlike typical scripts that simply combine a few public indicators, this strategy constructs a responsive, modular system that recalibrates every major decision dynamically based on changing volatility. Each component—including entries, filters, and exits—communicates and adapts in real time, producing a system that behaves more like a trading engine than a fixed-rule indicator.
Furthermore, its dual TP projection system (Fibonacci + ATR) with volatility-governed decision logic adds sophistication that cannot be achieved by combining open-source tools. The structure-aware, time-limited exits paired with RR-labeled info overlays create a tool that is as visual and instructional as it is operational.
These combined features create an edge that cannot be reproduced via indicator mashups or templates.
Therefore, the Invite-Only model is appropriate and justified under TradingView’s Vendor rules.
---
## ✅ House Rules Compliance Summary
| Criterion | Compliant | Notes |
| --------------------------- | --------- | ----------------------------------------------------- |
| English Description | ✅ Yes | Full technical documentation included |
| No External References | ✅ Yes | All logic explained inside script |
| Realistic Backtest Settings | ✅ Yes | Proper capital, fees, slippage modeled |
| No Misleading Claims | ✅ Yes | No unrealistic returns or guarantees |
| Clear Visual Output | ✅ Yes | RR/TP/SL/Timeout visuals shown during trades |
| Original, Valuable Strategy | ✅ Yes | Multi-layer adaptive engine not replicable via mashup |
---
Loom AlgoLoom Algo indicator is a trading tool designed to help identify both trend following opportunities and counter trend ones,
What it does?
Loom Algo combines multiple different types of indicators to produce trend following signals while filtering those signals as much as possible to eradicate low quality ones and avoid taking trend following trades in a choppy market.
How does it work :
The main functionality of this indicator is for it to generate trend following signals based off the STOCHASTIC indicator and then to filter it using different indicators such as the ADX, the McGinley Dynamic, the VWMA, the Kalman Midline, and other ones as well,
The basic way to produce those signals is to look for trend shifts and not for tops or bottoms, so it tries to identify the moments when the trend shifts from bullish to bearish or the opposite based on the Stochastic indicator, but because whenever we have a ranging market we will get choppy and weak signals so here comes to use for filtering indicators such as the ADX as to measure the strength of the trend to verify that we have an actual strong movement before generating a signal, then there is an extra optional layer of filtering with the use of trend following indicators such as the VWMA, so that the indicator would verify that the price has actually started to move in a new direction with momentum and then to generate its signal.
Filtering indicators:
As mentioned earlier i incorporated different indicators within Loom Algo to use as filters for the buy and sell signals to filter out the weak ones as much as possible, each one of them might work differently on different assets and different time frames, so i combined the ones that showed me the best results on different assets and different chart types, and i leave the choice for each user to try the different filtering options on his preferred asset and check the ones that gives the best quality signals for the specific asset, time frame and chart type of the user`s preference.
The colored Volatility bands:
And for the bands the logic is to have a smoothed line that stays with the price in a very smoothed way that first shows the main direction by seeing is the price above or below the midline at the same time the outer bands are made to demonstrate and show mean reversion and counter trend opportunities, so when the price would be extended in one direction it would reach the mid or outer bands and then we can add this to our analysis and understand that there is a higher chance of a reversals at those places,
Summary of features:
buy and sell signals (not to be followed without additional analysis and good risk management)
Volatility bands to clarify price direction better
Optional Stop loss and Take profit
Filtering options to filter out low quality signals
Optional session filter
The Default settings:
The default setting are the best ones i found after testing for Gold, the 5 min chart, and the normal chart candles, as it gives the best results for that asset, the user can change the settings and test as he wishes to find the most suitable set of settings for him,
How to use it?:
Bands settings:
1- Bands Smoothing, is the smoothing of the midline and the the 4 outer bands as they are an identical extension of the midline
2- Bands Distance Type, is the way to calculate the bands distance from the midline whether in percentage or points
3- Outer Band 1 Distance, this is the distance for the first two bands from the midline
4- Outer Band 2 Distance, this is the distance for the second outer two bands from the midline
Signals settings:
1- Filters from 1 to 8 are line indicators that are used as filter so we only take the buy signals when the price is above the filters we turned on or we only take sell signals when the price is under the filters we turned on, and each filter has its own values that we can change
2- ADX filter, this is about turning on or off the ADX filter so we only take trades when the ADX is above certain values to insure that we have a strong trend
3- Momentum type, and Trades speed those are options based of the stochastic indicator to change the frequency of the signals
4- SL and TP, we have both stop loss and take profit options with a choice to turn them on or off, if we turn them off then the indicator is going to close each signal when an opposite signal appears
5- Session filter, this is an option to filter out time, so we can make the indicator only take signals in certain sessions or time spans daily that we choose and it can be turned on or off.
Performance & Testing:
Loom Algo has been back tested with a conservative amount risk per trade, using realistic commission and slippage settings.
While performance may vary based on user settings, the system is designed to adapt to both trending and ranging conditions.
Back testing Settings Used in Preview:
For transparency and realistic expectations, the performance preview of Loom Algo is based on the following strategy settings, chosen to reflect practical trading conditions:
Initial Capital: $10,000 USD
Position Size: 50% of available equity per trade
Commissions: 0.03% per trade
Slippage: 2 ticks
Active Filters:
Filter1 (On)
Filter2 (On)
ADX Filter (On)
Momentum Type: Fast
Trade Speed: 4
Risk Management
Risk controls are enabled to demonstrate realistic position handling:
Stop Loss: 1% (0.01)
Take Profit: 2% (0.02)
Disclaimer: This tool is for educational purposes only. Past performance does not guarantee future results. It does not constitute financial advice or promise of profits.
Visual ADX + DI + RSI Croisements (ADX en Points)ADX Trend + RSI ZLSMA Oscillator (MTF Filter & Cross Alerts)
✅ Detailed Description
📝 Overview
This indicator combines a Multi-TimeFrame ADX Trend Filter with a Smoothed RSI (ZLSMA) to provide advanced trend filtering and oscillator-based reversals.
It includes:
ADX (Multi-TimeFrame) to identify trend strength and direction.
DI+ / DI- for confirming trend bias.
RSI with ZLSMA Smoothing to reduce noise and improve crossover signals.
⚙️ Visual Components
✅ Green/Red Background: Displays ADX-driven trend direction (bullish/bearish).
✅ DI+ / DI- Lines: Green and red curves showing directional bias.
✅ RSI Curve: Blue curve showing oscillator value.
✅ ZLSMA Smoothing: Orange curve filtering RSI noise.
✅ Crossover Points: Colored circles marking RSI/ZLSMA Buy and Sell crossovers.
✅ ADX Strength Dots: Black circles showing strong trend zones.
🚨 Included Alert System
✅ RSI / ZLSMA Crossovers (Buy / Sell).
✅ DI+ / DI- Crossovers (Buy / Sell).
✅ Trend Change Alerts via Background Color.
✅ ADX Strength Alerts (Above Threshold).
✅ Double Confirmation Alerts (DI+ or DI- combined with RSI crossover).
🛠️ Suggested Configuration Examples
1. Reversal Detection (Swing Trading):
RSI Length: 7 to 14
ZLSMA Length: 7 to 14
ADX MTF Period: 10 to 20
ADX Threshold: 15 to 20
2. Trend Filtering (Long-Term Positioning):
RSI Length: 21 to 30
ZLSMA Length: 21 to 30
ADX MTF Period: 30 to 50
ADX Threshold: 20 to 25
3. Scalping or Fast Reactions:
RSI Length: 5 to 9
ZLSMA Length: 5 to 9
ADX MTF Period: 5 to 10
ADX Threshold: 10 to 15
🎯 Why Use This Tool?
Reduces noise with ZLSMA smoothing on RSI.
Provides early reversal and trend continuation signals.
Filters with Multi-TimeFrame ADX confirmation.
Adaptable to all markets: Crypto, Forex, Stocks, Indices.
ADX + MACD Zéro-Lag NormaliséADX + Zero-Lag MACD Oscillator (MTF Trend & Cross Alerts)
✅ Detailed Description
📝 Overview
This indicator merges the ADX Trend Strength Filter with a Zero-Lag MACD to help you identify trending conditions and momentum reversals with minimal lag.
It includes:
ADX (Multi-TimeFrame) for trend strength detection.
DI+ / DI- Directional Indicator for bias confirmation.
Zero-Lag Normalized MACD for precise momentum crossovers.
⚙️ Visual Components
✅ Green/Red Background: Highlights bullish or bearish trend based on Multi-TimeFrame ADX.
✅ DI+ / DI- Lines: Green and red curves showing directional bias.
✅ Zero-Lag MACD: Violet and orange lines for fast momentum detection.
✅ Crossover Points: Colored circles marking MACD Buy and Sell crossovers.
✅ ADX Strength Dots: Small black dots when ADX exceeds the user-defined threshold.
🚨 Included Alert System
✅ MACD / Signal Crossovers (Buy / Sell).
✅ DI+ / DI- Crossovers (Buy / Sell).
✅ Trend Change Alerts via Background Color.
✅ ADX Strength Alerts (Above Threshold).
✅ Double Confirmation Alerts (DI+ or DI- combined with MACD crossover).
🛠️ Suggested Configuration Examples
1. Trend Reversal Sniping (Fast Reactions):
MACD Fast/Slow: 5 / 13
ADX MTF Period: 5 to 15
ADX Threshold: 15 to 20
2. Trend Riding (Swing or Position Trading):
MACD Fast/Slow: 12 / 26
ADX MTF Period: 30 to 50
ADX Threshold: 20 to 25
3. Scalping / Fast Intraday Moves:
MACD Fast/Slow: 3 / 7
ADX MTF Period: 5 to 10
ADX Threshold: 10 to 15
🎯 Why Use This Tool?
Detects strong trends with ADX MTF filter.
Provides momentum-based entry and exit with MACD Zero-Lag.
Multi-level confirmation with DI+ / DI- and MACD synergy.
Works on Forex, Crypto, Stocks, and Indices.
✅ Suggested Tagline
"Strong Trend Detection Meets Zero-Lag Momentum Precision."
Combo RSI + MACD + ADX MTF (Avec Alertes)✅ Recommended Title:
Multi-Signal Oscillator: ADX Trend + DI + RSI + MACD (MTF, Cross Alerts)
✅ Detailed Description
📝 Overview
This indicator combines advanced technical analysis tools to identify trend direction, capture reversals, and filter false signals.
It includes:
ADX (Multi-TimeFrame) for trend and trend strength detection.
DI+ / DI- for directional bias.
RSI + ZLSMA for oscillation analysis and divergence detection.
Zero-Lag Normalized MACD for momentum and entry timing.
⚙️ Visual Components
✅ Green/Red Background: Displays overall trend based on Multi-TimeFrame ADX.
✅ DI+ / DI- Lines: Green and red curves showing directional bias.
✅ Normalized RSI: Blue oscillator with orange ZLSMA smoothing.
✅ Zero-Lag MACD: Violet or fuchsia/orange oscillator depending on the version.
✅ Crossover Points: Colored circles marking buy and sell signals.
✅ ADX Strength Dots: Small black dots when ADX exceeds the strength threshold.
🚨 Included Alert System
✅ RSI / ZLSMA Crossovers (Buy / Sell).
✅ MACD / Signal Line Crossovers (Buy / Sell).
✅ DI+ / DI- Crossovers (Buy / Sell).
✅ Double Confirmation DI+ / RSI or DI+ / MACD.
✅ Double Confirmation DI- / RSI or DI- / MACD.
✅ Trend Change Alerts via Background Color.
✅ ADX Strength Alerts (Above Threshold).
🛠️ Suggested Configuration Examples
1. Short-Term Reversal Detection:
RSI Length: 7 to 14
ZLSMA Length: 7 to 14
MACD Fast/Slow: 5 / 13
ADX MTF Period: 5 to 15
ADX Threshold: 15 to 20
2. Long-Term Trend Following:
RSI Length: 21 to 30
ZLSMA Length: 21 to 30
MACD Fast/Slow: 12 / 26
ADX MTF Period: 30 to 50
ADX Threshold: 20 to 25
3. Scalping / Day Trading:
RSI Length: 5 to 9
ZLSMA Length: 5 to 9
MACD Fast/Slow: 3 / 7
ADX MTF Period: 5 to 10
ADX Threshold: 10 to 15
🎯 Why Use This Tool?
Filters false signals using ADX-based background coloring.
Provides multi-source alerting (RSI, MACD, ADX).
Helps identify true market strength zones.
Works on all markets: Forex, Crypto, Stocks, Indices.
🖲 Astrabot 1, the Gate 🏁 📡 « 🖲 Astrabot 1, the Gate 🏁 »
is an automated entry and position management tool designed to trade market session openings.
The strategy aims to detect the initial move 1 to 2 minutes before the market opens in order to catch the momentum push.
1. Select your detection tools:
🫀 (D.P.O), 🐚 (M.A.C.D with settings inspired by the Fibonacci sequence), and (un) (Directional Movement Index)
Each tool can be customized in the settings menu.
2. Set the opening time
Example: set the schedule from 8:58 AM to 9:00 AM for the European session.
3. Choose whether to activate Breakeven, 🦸🏻♂️ SUPER ⛔️: a wide dynamic stop loss using Supertrend, and 👷🏼 constructortrail: a tighter dynamic stop loss also based on Supertrend.
Each of the 🦸🏻♂️ 👷🏼 settings can be customized in the configuration menu.
4. Enter your TP, SL, BE trigger (threshold to trigger breakeven), BE offset (distance from your entry), TRAIL trigger (threshold to activate 👷🏼 constructortrail) — all in ticks.
5. Choose whether to enable confirmation filters: 🔃 EMA trend, 📶 volume filter, ↕️ ATR filter.
Each of these tools can be customized in the settings menu.
6. Backtest again and again. Fine-tune, review, and share your results.
Your success is my reward.
Astranaute alias Transurfeur.
Intraday Trading Hit and Run# Strategy Overview
This is a short-term trading system designed for quick entries/exits (intraday). It uses multiple technical indicators to identify momentum trades in the direction of the trend, with built-in risk management through trailing stops.
# Main Components
1. Trend Filter
Uses two EMAs (10-period "fast" blue line and 100-period "slow" red line)
Only trades when:
Long: Price AND fast EMA are above slow EMA
Short: Price AND fast EMA are below slow EMA
2. Main Signal
////Stochastic Oscillator (14-period):
Buy when %K line crosses above %D line
Sell when %K crosses below %D
////Trend Strength Check
Smoothed ADX indicator (5-period EMA of ADX):
Requires ADX value ≥ 25 to confirm strong trend
3. Confirmation using Volume Filter (Optional)
Checks if current volume is 1.5× greater than 20-period average volume
# Entry Rules
A trade is only taken when:
All 3 indicators agree (EMA trend, Stochastic momentum, ADX strength)
Volume filter is satisfied (if enabled)
# Exit Rules
1. Emergency Exit:
Close long if price drops below fast EMA
Close short if price rises above fast EMA
2. Trailing Stop:
Actively protects profits by moving stop-loss:
Maintains 0.1% distance from highest price (longs) or lowest price (shorts)
# Risk Management
Only use 10% of account per trade
Includes 0.04% commission cost in calculations
All trades monitored with trailing stops
# How It Operates
The strategy looks for strong, high-volume momentum moves in the direction of the established trend (as determined by EMAs). It jumps in quickly ("hit") when conditions align, then protects gains with an automatic trailing stop ("run"). Designed for fast markets where trends develop rapidly.
You can use it on 15m, 1h or 4h
ADX EMA's DistanceIt is well known to technical analysts that the price of the most volatile and traded assets do not tend to stay in the same place for long. A notable observation is the recurring pattern of moving averages that tend to move closer together prior to a strong move in some direction to initiate the trend, it is precisely that distance that is measured by the blue ADX EMA's Distance lines on the chart, normalized and each line being the distance between 2, 3 or all 4 moving averages, with the zero line being the point where the distance between them is zero, but it is also necessary to know the direction of the movement, and that is where the modified ADX will be useful.
This is the well known Directional Movement Indicator (DMI), where the +DI and -DI lines of the ADX will serve to determine the direction of the trend.
Rube Goldberg Top/Bottom Finder [theUltimator5]This is what I call the Rube Goldberg Top and Bottom Finder. It is an overly complex method of plotting a simple buy or sell label on a chart.
I utilize several standard TA techniques along with several of my own to try and locate ideal Buy/Sell conditions. I came up with the name because there are way too many conditional variables to come up with a single buy or sell condition, when most standard indicators use simple crossovers or levels.
There are two unique triggers that are calculated using completely independent techniques. If both triggers turn true within a small timeframe between each other, the buy/sell trigger turns true and plots a "buy" or "sell" label on the chart.
This indicator was designed to be fully functioning out of the box and can be customized only if the user wishes to. It is effective on all timeframes, but longer timeframes (daily +) may require signal length adjustment for best results.
imgur.com
The signals used in the leading trigger are as follows:
(1)RSI
The user can select among any of the following moving averages (base is EMA) (#3) , and have an RSI generated at a user defined length (base is 14). (#4)
SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HMA, LSMA, ALMA
The user can select whether or not the RSI is filtered with the following options:
None, Kalman, Double EMA, ALMA
The filter conditions are hard coded to minimize the amount of selections that the user is required to make to reduce the user interface complexity.
The user can define overbought (base 70) and oversold (base 30) conditions. (#2)
When the RSI crosses above or below the threshold values, the plot will turn red. This creates condition 1 of the leading trigger.
(2) ADX and DI
This portion of the indicator is a derivative of my ADX Divergence and Gap Monitor indicator.
This technique looks at the ADX value as well as for spikes in either +DI or -DI for large divergences. When the ADX reaches a certain threshold and also outpaces a preset ADX moving average, this creates condition 2 of the leading trigger.
There is an additional built-in functionality in this portion of the indicator that looks for gaps. It triggers when the ADX is below a certain threshold value and either the +DI or -DI spike above a certain threshold value, indicating a sudden gap in price after a period of low volatility.
The user can set whether or nor to show when a gap appears on the chart or as a label on the plot below the chart (disabled by default) . If the user chooses to overlay gaps on the chart, it creates a horizontal fill showing the starting point of the gap. The theory here is that the price will return at some point in the near future to the starting point of the gap.
imgur.com
(3) DI based Multi-Symbol reference and divergence
Part of the script computes both the +DI (positive directional index) and -DI (negative directional index) for the currently selected chart symbol and three reference symbols.
The averaged directional move of the reference symbols are compared to the current ticker on your chart and if the divergence exceeds a certain threshold, then the third condition of the trigger is met.
The components that are referenced are based on what stock/chart you are looking at. The script automatically detects if you are looking at a crypto, and uses a user selectable toggle between Large Cap or Small Cap. (#1) The threshold levels are determined by the asset type and market cap.
The leading trigger highlights under several conditions:
1) All (3) portions of the trigger result in true simultaneously
OR
2) Any of triggers 2 or 3 reach a certain threshold that indicates extreme market/price divergence as well as trigger 1 being overbought or oversold.
AND
3) If the trigger didn't highlight
For the lagging part of the trigger:
The lagging trigger is used as a confirmation after the leading trigger to indicate a possible optimized entry/exit point. It can also be used by itself, as well as the leading indicator.
The lagging indicator utilizes the parabolic Stop And Reverse (SAR). It utilizes the RSI length that is defined in portion 1 of the leading trigger as well as the overbought and oversold thresholds. I have found excellent results in catching reversals because it catches rate-of-change events rather than price reversals alone.
imgur.com
When both the leading triggers FOLLOWED BY the lagging trigger result in true within a user defined timeframe, then the buy or sell trigger results in true, plotting a label on the chart.
All portions of the leading and lagging indicators can be toggled on or off, but most of them are toggled off by default in order to reduce noise on the plot.
imgur.com
The leading, lagging, and buy/sell triggers each have built-in alerts that can be toggled on or off in the alert menu.
I have an optional built-in toggle to show green or red dots on the RSI line using two separate RSI lengths that are amplified and plot based on RSI divergence and strength. This can be used as a visual confirmation (or rejection) against the chart overlay plots.
imgur.com
This indicator is not a strategy, so there are no built-in exits or stop losses.
Multi-Indicator Swing [TIAMATCRYPTO]v6# Strategy Description:
## Multi-Indicator Swing
This strategy is designed for swing trading across various markets by combining multiple technical indicators to identify high-probability trading opportunities. The system focuses on trend strength confirmation and volume analysis to generate precise entry and exit signals.
### Core Components:
- **Supertrend Indicator**: Acts as the primary trend direction filter with optimized settings (Factor: 3.0, ATR Period: 10) to balance responsiveness and reliability.
- **ADX (Average Directional Index)**: Confirms the strength of the prevailing trend, filtering out sideways or choppy market conditions where the strategy avoids taking positions.
- **Liquidity Delta**: A volume-based indicator that analyzes buying and selling pressure imbalances to validate trend direction and potential reversals.
- **PSAR (Optional)**: Can be enabled to add additional confirmation for trend changes, turned off by default to reduce signal filtering.
### Key Features:
- **Flexible Direction Trading**: Choose between long-only, short-only, or bidirectional trading to adapt to market conditions or account restrictions.
- **Conservative Risk Management**: Implements fixed percentage-based stop losses (default 2%) and take profits (default 4%) for a positive risk-reward ratio.
- **Realistic Backtesting Parameters**: Includes commission (0.1%) and slippage (2 points) to reflect real-world trading conditions.
- **Visual Signals**: Clear buy/sell arrows with customizable sizes for easy identification on the chart.
- **Information Panel**: Dynamic display showing active indicators and current risk settings.
### Best Used On:
Daily timeframes for cryptocurrencies, forex, or stock indices. The strategy performs optimally on assets with clear trending behavior and sufficient volatility.
### Default Settings:
Optimized for conservative position sizing (5% of equity per trade) with an initial capital of $10,000. The backtesting period (2021-2023) provides a statistically significant sample of varied market conditions.
SwingTrade VWAP Strategy[TiamatCrypto]V1.1This Pine Script® code creates a trading strategy called "SwingTrade VWAP Strategy V1.1." This strategy incorporates various trading tools, such as VWAP (Volume Weighted Average Price), ADX (Average Directional Index), and volume signals. Below is an explanation of the components and logic within the script:
### Overview of Features
- **VWAP:** A volume-weighted moving average that assesses price trends relative to the VWAP level.
- **ADX:** A trend strength indicator that helps confirm the strength of bullish or bearish trends.
- **Volume Analysis:** Leverages volume data to gauge momentum and identify volume-weighted buy/sell conditions.
- **Dynamic Entry/Exit Signals:** Combines the above indicators to produce actionable buy/sell or exit signals.
- **Customizable Inputs:** Inputs for tuning parameters like VWAP period, ADX thresholds, and volume sensitivity.
---
### **Code Breakdown**
#### **Input Parameters**
The script begins by defining several user-configurable variables under groups. These include indicators' on/off switches (`showVWAP`, `enableADX`, `enableVolume`) and input parameters for VWAP, ADX thresholds, and volume sensitivity:
- **VWAP Period and Threshold:** Controls sensitivity for VWAP signal generation.
- **ADX Settings:** Allows users to configure the ADX period and strength threshold.
- **Volume Ratio:** Detects bullish/bearish conditions based on relative volume patterns.
---
#### **VWAP Calculation**
The script calculates VWAP using the formula:
\
Where `P` is the typical price (`(high + low + close)/3`) and `V` is the volume.
- It resets cumulative values (`sumPV` and `sumV`) at the start of each day.
- Delta percentage (`deltaPercent`) is calculated as the percentage difference between the close price and the VWAP.
---
#### **Indicators and Signals**
1. **VWAP Trend Signals:**
- Identifies bullish/bearish conditions based on price movement (`aboveVWAP`, `belowVWAP`) and whether the price is crossing the VWAP level (`crossingUp`, `crossingDown`).
- Also detects rising/falling delta changes based on the VWAP threshold.
2. **ADX Calculation:**
- Calculates the directional movement (`PlusDM`, `MinusDM`) and smoothed values for `PlusDI`, `MinusDI`, and `ADX`.
- Confirms strong bullish/bearish trends when ADX crosses the defined threshold.
3. **Volume-Based Signals:**
- Evaluates the ratio of bullish volume (when `close > VWAP`) to bearish volume (when `close < VWAP`) over a specified lookback period.
---
#### **Trade Signals**
The buy and sell signals are determined by combining conditions from the VWAP, ADX, and volume signals:
- **Buy Signal:** Triggered when price upward crossover VWAP, delta rises above the threshold, ADX indicates a strong bullish trend, and volume confirms bullish momentum.
- **Sell Signal:** Triggered under inverse conditions.
- Additionally, exit conditions (`exitLong` and `exitShort`) are based on VWAP crossovers combined with the reversal of delta values.
---
#### **Plotting and Display**
The strategy plots VWAP on the chart and adds signal markers for:
- **Buy/Long Entry:** Green triangle below bars.
- **Sell/Short Entry:** Red triangle above bars.
- **Exit Signals:** Lime or orange "X" shapes for exits from long/short positions.
- Additionally, optional text labels are displayed to indicate the type of signal.
---
#### **Trading Logic**
The script's trading logic executes as follows:
- **Entries:**
- Executes long trades when the `buySignal` condition is true.
- Executes short trades when the `sellSignal` condition is true.
- **Exits:**
- Closes long positions upon `exitLong` conditions.
- Closes short positions upon `exitShort` conditions.
- The strategy calculates profits and visualizes the trade entry, exit, and running profit within the chart.
---
#### **Alerts**
Alerts are set up to notify traders via custom signals for buy and sell trades.
---
### **Use Case**
This script is suitable for day traders, swing traders, or algorithmic traders who rely on confluence signals from VWAP, ADX, and volume momentum. Its modular structure (e.g., the ability to enable/disable specific indicators) makes it highly customizable for various trading styles and financial instruments.
#### **Customizability**
- Adjust VWAP, ADX, and volume sensitivity levels to fit unique market conditions or asset classes.
- Turn off specific criteria to focus only on VWAP or ADX signals if desired.
#### **Caution**
As with all trading strategies, this script should be used for backtesting and analysis before live implementation. It's essential to validate its performance on historical data while considering factors like slippage and transaction costs.
ADX Forecast [Titans_Invest]ADX Forecast
This isn’t just another ADX indicator — it’s the most powerful and complete ADX tool ever created, and without question the best ADX indicator on TradingView, possibly even the best in the world.
ADX Forecast represents a revolutionary leap in trend strength analysis, blending the timeless principles of the classic ADX with cutting-edge predictive modeling. For the first time on TradingView, you can anticipate future ADX movements using scientifically validated linear regression — a true game-changer for traders looking to stay ahead of trend shifts.
1. Real-Time ADX Forecasting
By applying least squares linear regression, ADX Forecast projects the future trajectory of the ADX with exceptional accuracy. This forecasting power enables traders to anticipate changes in trend strength before they fully unfold — a vital edge in fast-moving markets.
2. Unmatched Customization & Precision
With 26 long entry conditions and 26 short entry conditions, this indicator accounts for every possible ADX scenario. Every parameter is fully customizable, making it adaptable to any trading strategy — from scalping to swing trading to long-term investing.
3. Transparency & Advanced Visualization
Visualize internal ADX dynamics in real time with interactive tags, smart flags, and fully adjustable threshold levels. Every signal is transparent, logic-based, and engineered to fit seamlessly into professional-grade trading systems.
4. Scientific Foundation, Elite Execution
Grounded in statistical precision and machine learning principles, ADX Forecast upgrades the classic ADX from a reactive lagging tool into a forward-looking trend prediction engine. This isn’t just an indicator — it’s a scientific evolution in trend analysis.
⯁ SCIENTIFIC BASIS LINEAR REGRESSION
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
β₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ((xᵢ - x̄)²)
β₀ = ȳ - β₁x̄
Where:
y = is the predicted variable (e.g. future value of RSI)
x = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁ LEAST SQUARES ESTIMATION
To minimize the error between predicted and observed values, we use the following formulas:
β₁ = /
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁ LINEAR REGRESSION IN MACHINE LEARNING
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the ADX, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁ VISUAL INTERPRETATION
Imagine an ADX time series like this:
Time →
ADX →
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted ADX, which can be crossed with the actual ADX to generate more intelligent signals.
⯁ SUMMARY OF SCIENTIFIC CONCEPTS USED
Linear Regression Models the relationship between variables using a straight line.
Least Squares Minimizes the sum of squared errors between prediction and reality.
Time Series Forecasting Estimates future values based on historical data.
Supervised Learning Trains models to predict outputs from known inputs.
Statistical Smoothing Reduces noise and reveals underlying trends.
⯁ WHY THIS INDICATOR IS REVOLUTIONARY
Scientifically-based: Based on statistical theory and mathematical inference.
Unprecedented: First public ADX with least squares predictive modeling.
Intelligent: Built with machine learning logic.
Practical: Generates forward-thinking signals.
Customizable: Flexible for any trading strategy.
⯁ CONCLUSION
By combining ADX with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
ADX Forecast is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_______________________________________________________________________
🥇 This is the world’s first ADX indicator with: Linear Regression for Forecasting 🥇_______________________________________________________________________
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
⯁ WHAT IS THE ADX❓
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down.
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
⯁ HOW TO USE THE ADX❓
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
• Strong Trend: When the ADX is above 25, indicating a strong trend.
• Weak Trend: When the ADX is below 20, indicating a weak or non-existent trend.
• Neutral Zone: Between 20 and 25, where the trend strength is unclear.
______________________________________________________
______________________________________________________
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : ADX Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
Directional Movement Index (DMI) + AlertsThis is a Study with associated visual indicators and Bullish/Bearish Alerts for Directional Movement (DMI). It consists of an Average Directional Index (ADX), Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI).
Published by J. Welles Wilder in 1978 for use with currencies and commodities which are typically more volatile than stocks and have stronger trends.
Development Notes
---------------------------
This indicator, and most of the descriptions below, were derived largely from the TradingView reference manual. Feedback and suggestions for improvement are more than welcome, as well are recommended Input settings and best practices for use.
tradingview.com/chart/?solution=43000502250
Strategy Description
---------------------------
ADX defines whether or not there is a trend present; +DI and -DI compliment the ADX by taking direction into account. An ADX above 25 indicates a strong trend, and a Bullish alert is subsequently triggered when +DI is above -DI and a Bearish alert when -DI is above +DI.
Note that the Bullish or Bearish crossover alert will only trigger if ADX is simultaneously above 25 during the crossover event. If ADX later rises to 25 and +DI is still greater than -DI, or -DI greater than +DI, then a delayed alert will not trigger by design.
Basic Use
---------------------------
Acceptable DMI values are up to the trader's interpretation and may change depending on the financial instrument being examined. Recommend not changing any default values without being first familiar with their purpose and impact on the indicator at large.
Confidence in price action and trend is higher when two or more indicators are in agreement -- therefore we recommend not using this indicator by itself to determine entry or exit trade opportunities.
Recommend also choosing 'Once Per Bar Close' when creating alerts.
Inputs
---------------------------
ADX Smoothing - the time period to be used in calculating the ADX which has a smoothing component (14 is the Default).
DI Length - the time period to be used in calculating the DI (14 is the Default).
Key Level - any trade with the ADX above the key level is a strong indicator that it is trending (23 to 25 is the suggested setting).
Sensitivity - an incremental variable to test whether the past n candles are in the same bullish or bearish state before triggering a delayed crossover alert (3 is the Default). Filter out some noise and reduces active alerts.
Show ADX Option - two visual styles are provided for user preference, a visible ADX line or a background overlay (green or red when ADX is above the key level, for bullish or bearish, and gray when below).
Color Candles - an option to transpose the bullish and bearish crossovers to the main candle bars. Can be turned off in the Style Tab by deselecting 'Bar Colors'. Dark blue is bullish, dark purple is bearish, and the black inner color is neutral. Note that the outer red and green border will still be distinguished by whether each individual candle is bearish or bullish during the specified timeframe.
Indicator Visuals
---------------------------
Bullish or Bearish plot based on DMI strategy (ADX and +/-DI values).
Visual cues are intended to improve analysis and decrease interpretation time during trading, as well as to aid in understanding the purpose of this study and how its inclusion can benefit a comprehensive trading strategy.
Trend Strength
---------------------------
To analyze trend strength, the focus should be on the ADX line and not the +DI or -DI lines. An ADX reading above 25 indicates a strong trend, while a reading below 20 indicates a weak or non-existent trend. A reading between those two values would be considered indeterminable. Though what is truly a strong trend or a weak trend depends on the financial instrument being examined; historical analysis can assist in determining appropriate values.
Bullish DI Cross
---------------------------
1. ADX must be over 25 (strong trend) (value is determined by the trader)
2. +DI cross above -DI
3. Set Stop Loss at the current day's low (any +DI cross-backs below -DI should be ignored)
4. Set trailing stop if ADX strengthens (i.e., signal rises)
Bearish DI Cross
---------------------------
1. ADX must be over 25 (strong trend) (value is determined by the trader)
2. -DI cross above +DI
3. Set Stop Loss at the current day's high (any -DI cross-backs below +DI should be ignored)
4. Set trailing stop if ADX strengthens (i.e., signal rises)
Disclaimer
---------------------------
This post and the script are not intended to provide any financial advice. Trade at your own risk.
No known repainting.
Version 1.1
-------------------------
- Added multi-timeframe resolution using PineCoders secure security function to eliminate repainting.
- Cleaned up option for selecting ADX view; and added a colored line as a choice, based on same bullish, bearish, or neutral colors as the background.
- Added exit crossover indicator to aid in an overall strategy development. This ability pairs better with my CHOP Zone Entry Strategy which relies on DMI Exits. Note that exit conditions don't employ the sensitivity variable. Green labels are for Bullish exits and red are for Bearish.
-- Exit condition is triggered if in an active Bullish or Bearish position and ADX drops below 25, Or if either the -DI crosses above +DI (for previously Bullish) or +DI crosses above -DI (for previously Bearish).
- Added reverse position determination. Triggers when a Bullish entry occurs on the same candle as a Bearish exit, or vice versa. Green labels are for Bullish reverses and red are for Bearish.
- Added selectable option to choose visible labels -- Bearish, Bullish, Both, Exits, Reverses, or All.
-- Note that a reverse label will only show if the opposing entry and exit labels are set to show, otherwise the reverse will revert to the appropriate entry or exit on the chart.
- Added alerts to account for new conditions.
-- Note that alerts for crossovers, exits, and reverses will only be triggered if the associated labels are selected to be shown (i.e., what you choose to see on the chart is what you will be alerted to).
Version 1.2
-------------------------
- Changed exit condition to be decided on by whether ADX is below 25 and on a +/-DI crossover. Versus being either or. The previous version had too many false triggers. This variety can now show multiple Bullish or Bearish alerts before an Exit condition too. I'm tempted to simply make this condition based on ADX, and not DI … thoughts? See lines 138 and 139.
- Updated the Background view to have deeper shades of colors dependent upon the ADX trend strength.
- Added an Oscillator view for the ADX and momentum computations to color the histogram by trend. DI lines are hidden.
-- If ADX is Bullish, then the oscillator is colored light green in an uptrend and dark green in a downtrend; if Bearish, then its light red in an uptrend and dark redin a downtrend; if adx is below key level, then it is light gray in a downtrend and dark grey in the uptrend.
- Added option to Hide ADX in case only the Directional lines are desired. This could be useful if you would like to have the ADX oscillator in one panel and +/-DI crossovers in another.
- Added a Columnar view for the ADX. DI lines are hidden. This view is really simple and compact, with the trend strength still easily understood. Colors are the same as for the oscillator -- the deeper the shade of green or red, then the higher the ADX trend strength level.
- Added a Trend Strength label.
ADX Trend Strength Trade (Y/N) Setup Types
0 to 10 = Barely Breathing N N/A
10 to 20 = Weak Trend Y Range/Pre-Breakout
20 to 30 = Potentially Starting to Trend Y Early Stage Trend
30 to 50 = Strong Trend Y Ride the Wave
50 to 75 = Very Strong Trend N Exhaustion
75 to 100 = Extremely Strong Trend N N/A
Version 1.3
-------------------------
Updated to Pine Script v5 to resolve errors from the deprecated v4 version.
This is a reissue of a previously published script that was hidden due to a v4 compatibility issue.
'https://www.tradingview.com/script/9OoEHrv5-Directional-Movement-Index-DMI-Alerts/'
ADX Full [Titans_Invest]ADX Full
This is, without a doubt, the most complete ADX indicator available on TradingView — and quite possibly the most advanced in the world. We took the classic ADX structure and fully optimized it, preserving its essence while elevating its functionality to a whole new level. Every aspect has been enhanced — from internal logic to full visual customization. Now you can see exactly what’s happening inside the indicator in real time, with tags, flags, and informative levels. This indicator includes over 22 long entry conditions and 22 short entry conditions , covering absolutely every possibility the ADX can offer. Everything is transparent, adjustable, and ready to fit seamlessly into any professional trading strategy. This isn’t just another ADX — it’s the definitive ADX, built for traders who take the market seriously.
⯁ WHAT IS THE ADX❓
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down.
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
⯁ HOW TO USE THE ADX❓
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
Strong Trend: When the ADX is above 25, indicating a strong trend.
Weak Trend: When the ADX is below 20, indicating a weak or non-existent trend.
Neutral Zone: Between 20 and 25, where the trend strength is unclear.
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : ADX Full
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
ADX + DI + EMA Dashboard (BKNY)This Indicator creates a dynamic dashboard that combines ADX (Average Directional Index), Directional Movement Index (DI), and Exponential Moving Averages (EMA) to provide a comprehensive view of market trends. The indicator helps traders assess the strength and direction of trends based on key technical indicators.
Features:
ADX: Measures the strength of the trend, allowing traders to identify whether a trend is strong or weak.
+DI and -DI: Show the bullish and bearish directional movements, helping to identify market direction.
EMA Crossover: Compares the fast and slow EMAs to determine the trend’s direction.
Customizable Features:
Adjust the calculation length for ADX, DI, and EMAs.
Set ADX and DI thresholds to define trend strength and direction.
EMA lengths are fully customizable for both fast and slow EMAs.
Display options allow users to show or hide ADX, DI, and EMA values on the dashboard.
Customize the colors to represent bullish, bearish, or neutral trend conditions for ADX, DI, and EMA.
Timeframe selection allows users to choose the preferred timeframe for trend analysis.
The dashboard layout and display are fully customizable, letting users tailor the information shown according to their trading preferences.
This script provides an at-a-glance view of key trend indicators, with flexibility to tailor both the data shown and the visual presentation to individual trading needs.
ADX Divergence and Gap Monitor [theUltimator5]ADX Divergence and Gap Monitor is a custom technical analysis tool designed to visualize momentum imbalances and sudden shifts in trend participation using the ADX system. It combines traditional ADX, DI+ and DI− calculations with dynamic filtering and visual highlighting to help identify key moments of directional acceleration or weakening.
🔍 What It Does:
This indicator builds on the Average Directional Index (ADX) system to detect conditions where market trend strength diverges significantly from directional input (DI) activity. It includes two major visual signals:
Highlight Backgrounds
These appear when the indicator detects a “gap” or sudden acceleration in DI values while ADX remains low, suggesting early-stage momentum bursts or signal noise spikes.
The trigger threshold for DI change can be adjusted using the Gap Trigger Level input.
A background highlight is shown when DI+ or DI− increases sharply, either from a low-ADX environment or from a rapid standalone spike.
GAP Markers
Optional yellow label markers display the word "GAP" just below the lowest line (ADX, DI+, or DI−) whenever a gap condition is triggered. These provide a more noticeable visual cue without crowding the chart.
You can enable or disable the markers with the Show GAP Markers toggle.
🧠 Advanced Divergence Detection:
The script also scans for dominant ADX divergence events, where ADX is significantly higher than DI+ or DI−, indicating strong trend force with weak directional participation. When these conditions are met:
Red or green background fills appear depending on whether DI+ or DI− is being overpowered.
These conditions are based on customizable moving averages and DI strength relationships.
⚙️ Key Inputs:
ADX Length: Period for ADX calculation
DI Moving Average: Smoothing length for directional index signals
Gap Trigger Level: Minimum DI change needed to trigger a GAP highlight
Show Highlight Backgrounds: Toggle to display or hide background signals
Show GAP Markers: Toggle to show or hide text-based GAP labels
🧪 Use Cases:
Spot early breakouts or reversals when DI activity spikes while ADX is still low
Identify periods of trend exhaustion or false breakouts using divergence logic
Confirm trade entry points when ADX begins to rise after a GAP event
Ultimate RSI+ADX Indicator# Ultimate RSI+ADX Indicator: Principles Explained
The Ultimate RSI+ADX Indicator combines two powerful technical analysis tools to create a comprehensive trading system with enhanced signal accuracy.
## Principles of Ultimate RSI
Unlike standard RSI, Ultimate RSI doesn't just measure price movements but considers price ranges in its calculations:
1. It identifies the high and low range of the current period.
2. It detects expansion or contraction of the range compared to previous periods.
3. It considers both direction and range changes to measure momentum more accurately.
This approach allows Ultimate RSI to better capture the context of price movements and reduce false signals compared to traditional RSI.
## The ADX Component
The Average Directional Index (ADX) measures trend strength regardless of direction:
1. It quantifies how strongly a price is trending.
2. Values above 25 typically indicate a strong trend is present.
3. It helps filter out sideways markets where trading signals might be less reliable.
## How the Ultimate RSI+ADX Indicator Works
This integrated indicator functions through these key mechanisms:
1. **Enhanced Momentum Calculation**: Using Ultimate RSI for more accurate overbought/oversold conditions.
2. **Buy Signal Conditions**:
- Ultimate RSI crosses above its signal line
- Ultimate RSI remains below the maximum buy threshold
- ADX confirms sufficient trend strength
- Positive RSI slope indicates upward momentum
3. **Sell Signal Conditions**:
- Downward reversal detected at elevated RSI levels
- Ultimate RSI crosses below its signal line
- Sharp decline compared to previous price action
- ADX confirms the presence of a strong trend
The Ultimate RSI+ADX Indicator excels at identifying potential reversal points in trending markets while filtering out noise in ranging conditions. It provides traders with a balanced approach to momentum and trend analysis, helping capture significant market moves more effectively.
ADX with Shaded ZoneThe ADX with Shaded Zone indicator is a momentum-based tool that visualizes trend strength using the Average Directional Index (ADX) along with the +DI and -DI lines. This indicator enhances the traditional ADX setup by adding a shaded zone between ADX levels 20 and 25, helping traders easily identify the transition area between non-trending and trending market conditions.
It plots:
+DI (Green): Positive Directional Indicator
−DI (Red): Negative Directional Indicator
ADX (Blue): Measures the strength of the trend
Shaded Zone: Highlights the indecisive range where ADX is below 25 (gray background between levels 20 and 25)
⚙️ How to Use:
✅ Trend Identification:
ADX < 20: Weak or no trend. Avoid trend-following strategies.
ADX 20–25 (Shaded Zone): Transition zone. Potential trend forming — stay cautious.
ADX > 25: Stronger trend. Favor trend-following strategies.
✅ Direction Confirmation:
If +DI > -DI and ADX > 25 → Uptrend confirmation.
If -DI > +DI and ADX > 25 → Downtrend confirmation.
Crossovers between +DI and -DI can be used as early signals.
✅ Shaded Zone Use:
The gray shaded area helps visually filter out low-trend strength conditions.
Useful for trend traders to wait before entering until ADX breaks above 25.
[SM-042] EMA 5-8-13 with ADX FilterWhat is the strategy?
The strategy combines three exponential moving averages (EMAs) — 5, 8, and 13 periods — with an optional ADX (Average Directional Index) filter. It is designed to enter long or short positions based on EMA crossovers and to exit positions when the price crosses a specific EMA. The ADX filter, if enabled, adds a condition that only allows trades when the ADX value is above a certain threshold, indicating trend strength.
Who is it for?
This strategy is for traders leveraging EMAs and trend strength indicators to make trade decisions. It can be used by anyone looking for a simple trend-following strategy, with the flexibility to adjust for trend strength using the ADX filter.
When is it used?
- **Long trades**: When the 5-period EMA crosses above the 8-period EMA, with an optional ADX condition (if enabled) that requires the ADX value to be above a specified threshold.
- **Short trades**: When the 5-period EMA crosses below the 8-period EMA, with the ADX filter again optional.
- **Exits**: The strategy exits a long position when the price falls below the 13-period EMA and exits a short position when the price rises above the 13-period EMA.
Where is it applied?
This strategy is applied on a chart with any asset on TradingView, with the EMAs and ADX plotted for visual reference. The strategy uses `strategy.entry` to open positions and `strategy.close` to close them based on the set conditions.
Why is it useful?
This strategy helps traders identify trending conditions and filter out potential false signals by using both EMAs (to capture short-term price movements) and the ADX (to confirm the strength of the trend). The ADX filter can be turned off if not desired, making the strategy flexible for both trending and range-bound markets.
How does it work?
- **EMA Crossover**: The strategy enters a long position when the 5-period EMA crosses above the 8-period EMA, and enters a short position when the 5-period EMA crosses below the 8-period EMA.
- **ADX Filter**: If enabled, the strategy checks whether the ADX value is above a set threshold (default is 20) before allowing a trade.
- **Exit Conditions**: Long positions are closed when the price falls below the 13-period EMA, and short positions are closed when the price rises above the 13-period EMA.
- **Plotting**: The strategy plots the three EMAs and the ADX value on the chart for visualization. It also displays a horizontal line at the ADX threshold.
This setup allows for clear decision-making based on the interaction between different time-frame EMAs and trend strength as indicated by ADX.
RSI + ADX + ATR Combo Indicator: RSI + ADX + ATR Combo Filter
This indicator is a confluence filter tool that combines RSI, ADX, and ATR into a single, easy-to-read chart overlay. It is designed to help traders identify low-volatility, non-trending zones with balanced momentum—ideal for strategies that rely on breakouts or reversals.
🔍 Core Components:
RSI (Relative Strength Index)
Standard RSI with custom upper and lower bounds (default: 60 and 40).
Filters out extreme overbought/oversold regions and focuses on price consolidation zones.
ADX (Average Directional Index)
Measures trend strength.
When ADX is below a custom threshold (default: 20), it indicates a weak or range-bound trend.
ATR (Average True Range)
Represents volatility.
Low ATR values (default threshold: 2.5) are used to filter out high-volatility environments, helping refine entries.
🟣 Signal Logic:
A signal is highlighted with a background color when all three conditions are met:
RSI is between lower and upper bounds (e.g., 40 < RSI < 60) ✅
ADX is below the trend threshold (e.g., ADX < 20) ✅
ATR is below the volatility threshold (e.g., ATR < 2.5) ✅
These combined conditions suggest a low-volatility, low-trend strength, and balanced momentum zone—perfect for anticipating breakouts or strong directional moves.
Reversal Trading Bot Strategy[BullByte]Overview :
The indicator Reversal Trading Bot Strategy is crafted to capture potential market reversal points by combining momentum, volatility, and trend alignment filters. It uses a blend of technical indicators to identify both bullish and bearish reversal setups, ensuring that multiple market conditions are met before entering a trade.
Core Components :
Technical Indicators Used :
RSI (Relative Strength Index) :
Purpose : Detects divergence conditions by comparing recent lows/highs in price with the RSI.
Parameter : Length of 8.
Bollinger Bands (BB) :
Purpose : Measures volatility and identifies price levels that are statistically extreme.
Parameter : Length of 20 and a 2-standard deviation multiplier.
ADX (Average Directional Index) & DMI (Directional Movement Index) :
Purpose : Quantifies the strength of the trend. The ADX threshold is set at 20, and additional filters check for the alignment of the directional indicators (DI+ and DI–).
ATR (Average True Range) :
Purpose : Provides a volatility measure used to set stop levels and determine risk through trailing stops.
Volume SMA (Simple Moving Average of Volume ):
Purpose : Helps confirm strength by comparing the current volume against a 20-period average, with an optional filter to ensure volume is at least twice the SMA.
User-Defined Toggle Filters :
Volume Filter : Confirms that the volume is above average (or twice the SMA) before taking trades.
ADX Trend Alignment Filter : Checks that the ADX’s directional indicators support the trade direction.
BB Close Confirmation : Optionally refines the entry by requiring price to be beyond the upper or lower Bollinger Band rather than just above or below.
RSI Divergence Exit : Allows the script to close positions if RSI divergence is detected.
BB Mean Reversion Exit : Closes positions if the price reverts to the Bollinger Bands’ middle line.
Risk/Reward Filter : Ensures that the potential reward is at least twice the risk by comparing the distance to the Bollinger Band with the ATR.
Candle Movement Filter : Optional filter to require a minimum percentage move in the candle to confirm momentum.
ADX Trend Exit : Closes positions if the ADX falls below the threshold and the directional indicators reverse.
Entry Conditions :
Bullish Entry :
RSI Divergence : Checks if the current close is lower than a previous low while the RSI is above the previous low, suggesting bullish divergence.
Bollinger Confirmation : Requires that the price is above the lower (or upper if confirmation is toggled) Bollinger Band.
Volume & Trend Filters : Combines volume condition, ADX strength, and an optional candle momentum condition.
Risk/Reward Check : Validates that the trade meets a favorable risk-to-reward ratio.
Bearish Entry :
Uses a mirror logic of the bullish entry by checking for bearish divergence, ensuring the price is below the appropriate Bollinger level, and confirming volume, trend strength, candle pattern, and risk/reward criteria.
Trade Execution and Exit Strateg y:
Trade Execution :
Upon meeting the entry conditions, the strategy initiates a long or short position.
Stop Loss & Trailing Stops :
A stop-loss is dynamically set using the ATR value, and trailing stops are implemented as a percentage of the close price.
Exit Conditions :
Additional exit filters can trigger early closures based on RSI divergence, mean reversion (via the middle Bollinger Band), or a weakening trend as signaled by ADX falling below its threshold.
This multi-layered exit strategy is designed to lock in gains or minimize losses if the market begins to reverse unexpectedly.
How the Strategy Works in Different Market Conditions :
Trending Markets :
The ADX filter ensures that trades are only taken when the trend is strong. When the market is trending, the directional movement indicators help confirm the momentum, making the reversal signal more reliable.
Ranging Markets :
In choppy markets, the Bollinger Bands expand and contract, while the RSI divergence can highlight potential turning points. The optional filters can be adjusted to avoid false signals in low-volume or low-volatility conditions.
Volatility Management :
With ATR-based stop-losses and a risk/reward filter, the strategy adapts to current market volatility, ensuring that risk is managed consistently.
Recommendation on using this Strategy with a Trading Bot :
This strategy is well-suited for high-frequency trading (HFT) due to its ability to quickly identify reversal setups and execute trades dynamically with automated stop-loss and trailing exits. By integrating this script with a TradingView webhook-based bot or an API-driven execution system, traders can automate trade entries and exits in real-time, reducing manual execution delays and capitalizing on fast market movements.
Disclaimer :
This script is provided for educational and informational purposes only. It is not intended as investment advice. Trading involves significant risk, and you should always conduct your own research and analysis before making any trading decisions. The author is not responsible for any losses incurred while using this script.