OPEN-SOURCE SCRIPT
ที่อัปเดต: Cardwell RSI Trade Navigator [MarkitTick]

💡 An advanced, multi-dimensional technical overlay designed to translate hidden momentum shifts into actionable, visually structured chart setups.
By extracting the core principles of Andrew Cardwell's methodology—which applies moving averages directly to the Relative Strength Index (RSI) rather than price—this tool identifies underlying momentum trends before they fully manifest in price action.
✨ Originality and Utility
Standard oscillators force traders to divert their attention away from price action to interpret lower-panel squiggles, which can often lead to a disconnect in charting focus.
This script is highly original because it extracts the mathematical cross of RSI-based moving averages and projects them directly onto the main price chart as a comprehensive, fully visualized trade management ecosystem.
It does not just paint a simple signal arrow; it algorithmically constructs a complete risk-to-reward framework the exact moment a momentum cross is mathematically validated.
By integrating directional filters like the ADX and higher timeframe (HTF) consensus protocols, it effectively filters out low-probability market chop.
The primary utility lies in its ability to automate the visual calculation of entry parameters, construct stop losses based on real-time volatility, and project multiple take-profit milestones based on strict multiples, essentially acting as a dynamic charting assistant built entirely on objective mathematical rules.
🔬 Methodology and Concepts

The core computational engine of this indicator relies on the calculation of a standard 14-period Relative Strength Index (RSI).
Instead of looking for traditional overbought or oversold reversal levels, the script calculates two Relative Moving Averages (RMA) of the RSI itself—a Fast RMA (9-period) and a Slow RMA (45-period).
A bullish bias is generated when the Fast RMA crosses above the Slow RMA, indicating that short-term momentum is accelerating faster than the baseline trend velocity.
Conversely, a bearish bias occurs when the Fast RMA crosses below the Slow RMA, signaling immediate downside momentum acceleration.
To ensure these momentum signals are not triggered in stagnant or mean-reverting markets, the script integrates an Average Directional Index (ADX) filter.
The ADX must register a value above a user-defined threshold (default 20) to mathematically confirm that the market is currently in a trending phase capable of sustaining the RSI momentum push.
Furthermore, a Higher Timeframe (HTF) filter requests the RSI RMA cross status from a macro timeframe. Signals on the current charting timeframe are only validated if they align perfectly with the HTF bias, ensuring that all setups are traded strictly in the direction of the dominant market flow.
Once all conditions of a valid signal are met, the script utilizes the Average True Range (ATR) to calculate a dynamic, volatility-adjusted Stop Loss, and then projects exact Take Profit targets using standardized Risk:Reward multipliers.
🎨 Visual Guide

The script transforms the standard candlestick chart into a highly visual, logically color-coded trade environment.
📖 How to Use

Traders can utilize this framework to efficiently identify and manage momentum-based trend continuation setups across any asset.
First, wait for a clear momentum shift, visually indicated by a change in the candlestick gradient color and the sudden appearance of the geometric trade setup zones.
Before considering the setup valid, reference the top-right dashboard table. Confirm that the ADX bar is registering sufficient trend strength and that the HTF Bias aligns with the direction of the signal.
Once the dashed white lines and colored risk zones appear, use the Entry line as the suggested area of execution.
The Stop Loss line provides a definitive, volatility-based invalidation point that should be respected.
As price moves in favor of the active setup, closely monitor the progression through the green reward zones.
If the "Breakeven on TP1" feature is enabled in the settings, observe the Stop Loss label automatically transitioning to a Breakeven line once the first target is struck, theoretically securing the position.
Finally, use the dynamic Risk:Reward live label attached to the current price action to actively monitor the floating R-multiple of the current signal.
⚙️ Inputs and Settings


🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Momentum Derivatives and Relative Strength
The foundational architecture of this script rests upon J. Welles Wilder Jr.'s Relative Strength Index (RSI), a momentum oscillator that measures the speed and change of price movements.
The mathematical formula bounds the output between absolute values of 0 and 100.
By taking a derivative of this oscillator—specifically applying Relative Moving Averages (RMAs, which are mathematically equivalent to Wilder's Smoothing method or an Exponential Moving Average with alpha = 1/length)—the script effectively isolates the velocity of the momentum itself.
The intersection of a fast-period RMA and a slow-period RMA of the RSI mathematically represents a point of momentum inflection, where short-term acceleration deviates significantly from the longer-term mean.
● Volatility-Normalized Risk Management
The utilization of the Average True Range (ATR) establishes a statistically sound, non-static risk framework.
ATR quantifies the historical volatility of an asset by calculating the greatest of the current high minus the current low, the absolute value of the current high minus the previous close, and the absolute value of the current low minus the previous close.
By multiplying the ATR by a specific scalar value, the script dynamically calculates a stop-loss distance that is statistically placed outside the normal noise distribution of the current market environment.
This approach is scientifically superior to static percentage-based stop losses, as it continuously adapts to the heteroskedasticity (changing variance) inherent in complex financial time series.
● Trend Directionality and Vector Strength
The Average Directional Index (ADX) component provides a purely quantitative measure of trend strength that is entirely independent of direction.
ADX is derived from the smoothed moving averages of the +DI and -DI, which measure the positive and negative directional movement vectors.
By requiring the ADX to breach a specific numerical threshold, the script mathematically filters out random walk (stochastic) market phases.
This ensures that the structural momentum setups only trigger when they occur within a statistically significant directional drift, massively increasing the probability of trend continuation.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
By extracting the core principles of Andrew Cardwell's methodology—which applies moving averages directly to the Relative Strength Index (RSI) rather than price—this tool identifies underlying momentum trends before they fully manifest in price action.
✨ Originality and Utility
Standard oscillators force traders to divert their attention away from price action to interpret lower-panel squiggles, which can often lead to a disconnect in charting focus.
This script is highly original because it extracts the mathematical cross of RSI-based moving averages and projects them directly onto the main price chart as a comprehensive, fully visualized trade management ecosystem.
It does not just paint a simple signal arrow; it algorithmically constructs a complete risk-to-reward framework the exact moment a momentum cross is mathematically validated.
By integrating directional filters like the ADX and higher timeframe (HTF) consensus protocols, it effectively filters out low-probability market chop.
The primary utility lies in its ability to automate the visual calculation of entry parameters, construct stop losses based on real-time volatility, and project multiple take-profit milestones based on strict multiples, essentially acting as a dynamic charting assistant built entirely on objective mathematical rules.
🔬 Methodology and Concepts
The core computational engine of this indicator relies on the calculation of a standard 14-period Relative Strength Index (RSI).
Instead of looking for traditional overbought or oversold reversal levels, the script calculates two Relative Moving Averages (RMA) of the RSI itself—a Fast RMA (9-period) and a Slow RMA (45-period).
A bullish bias is generated when the Fast RMA crosses above the Slow RMA, indicating that short-term momentum is accelerating faster than the baseline trend velocity.
Conversely, a bearish bias occurs when the Fast RMA crosses below the Slow RMA, signaling immediate downside momentum acceleration.
To ensure these momentum signals are not triggered in stagnant or mean-reverting markets, the script integrates an Average Directional Index (ADX) filter.
The ADX must register a value above a user-defined threshold (default 20) to mathematically confirm that the market is currently in a trending phase capable of sustaining the RSI momentum push.
Furthermore, a Higher Timeframe (HTF) filter requests the RSI RMA cross status from a macro timeframe. Signals on the current charting timeframe are only validated if they align perfectly with the HTF bias, ensuring that all setups are traded strictly in the direction of the dominant market flow.
Once all conditions of a valid signal are met, the script utilizes the Average True Range (ATR) to calculate a dynamic, volatility-adjusted Stop Loss, and then projects exact Take Profit targets using standardized Risk:Reward multipliers.
🎨 Visual Guide
The script transforms the standard candlestick chart into a highly visual, logically color-coded trade environment.
- Candle Coloring: Candlesticks are dynamically colored based on underlying momentum strength. A visual gradient shifts from a neutral gray to a bright green (bullish) or bright red (bearish) depending directly on the separation distance between the Fast and Slow RSI RMAs.
- HTF Trend Cloud: An optional visual cloud is plotted both above and below the price action. It is colored teal for HTF bullishness and crimson for HTF bearishness, offering traders macro context at a single glance without switching timeframes.
- Trade Setup Lines: Upon a validated signal, dashed white horizontal lines appear on the chart, representing the exact calculated price levels for the Stop Loss, Entry point, Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3).
- Risk Zones: The chart background between the entry price and the stop loss is shaded in a semi-transparent dark red. The zones between the entry and the consecutive take-profit levels are shaded in progressive green tones to visually represent risk versus reward areas.
- Price Labels: Distinctive text labels featuring geometric icons are plotted dynamically at the end of the trade lines, displaying the exact numeric price coordinates for the Stop Loss, Entry, and all TPs.
- Signal Strength Score Label: is a calculated metric designed to quantify the momentum and quality of the trade setup at the exact moment the signal is triggered. This value provides a "snapshot" of the signal's conviction level the moment it appears, whereas dashboard metrics track ongoing market conditions.
- Dashboard Table: Located permanently in the top right corner, this dark-themed data table displays real-time metrics including the ticker symbol, current trend direction, current ATR value, a visual ADX strength bar, an overall signal strength percentage, the overarching HTF bias, and a counter tracking the number of bars since the last valid signal.
📖 How to Use
Traders can utilize this framework to efficiently identify and manage momentum-based trend continuation setups across any asset.
First, wait for a clear momentum shift, visually indicated by a change in the candlestick gradient color and the sudden appearance of the geometric trade setup zones.
Before considering the setup valid, reference the top-right dashboard table. Confirm that the ADX bar is registering sufficient trend strength and that the HTF Bias aligns with the direction of the signal.
Once the dashed white lines and colored risk zones appear, use the Entry line as the suggested area of execution.
The Stop Loss line provides a definitive, volatility-based invalidation point that should be respected.
As price moves in favor of the active setup, closely monitor the progression through the green reward zones.
If the "Breakeven on TP1" feature is enabled in the settings, observe the Stop Loss label automatically transitioning to a Breakeven line once the first target is struck, theoretically securing the position.
Finally, use the dynamic Risk:Reward live label attached to the current price action to actively monitor the floating R-multiple of the current signal.
⚙️ Inputs and Settings
- RSI Length & RMA Lengths: Controls the core sensitivity of the underlying momentum engine. Lower values create more frequent signals, while higher values smooth the data for longer-term trend captures.
- ATR Length & SL Multiplier: Defines the strictness of the stop loss protocol. A higher multiplier increases the breathing room for the trade but mathematically requires a larger price move to achieve a 1R target.
- TP Risk:Reward Multipliers: Customizes the exact distance of the three take-profit targets relative to the initial ATR-based risk unit.
- HTF Timeframe: Sets the macro timeframe used for the overarching trend consensus filter.
- Choppiness / ADX Filter: Toggles the strict requirement for a minimum ADX threshold to validate signals, preventing entries in tight trading ranges.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Momentum Derivatives and Relative Strength
The foundational architecture of this script rests upon J. Welles Wilder Jr.'s Relative Strength Index (RSI), a momentum oscillator that measures the speed and change of price movements.
The mathematical formula bounds the output between absolute values of 0 and 100.
By taking a derivative of this oscillator—specifically applying Relative Moving Averages (RMAs, which are mathematically equivalent to Wilder's Smoothing method or an Exponential Moving Average with alpha = 1/length)—the script effectively isolates the velocity of the momentum itself.
The intersection of a fast-period RMA and a slow-period RMA of the RSI mathematically represents a point of momentum inflection, where short-term acceleration deviates significantly from the longer-term mean.
● Volatility-Normalized Risk Management
The utilization of the Average True Range (ATR) establishes a statistically sound, non-static risk framework.
ATR quantifies the historical volatility of an asset by calculating the greatest of the current high minus the current low, the absolute value of the current high minus the previous close, and the absolute value of the current low minus the previous close.
By multiplying the ATR by a specific scalar value, the script dynamically calculates a stop-loss distance that is statistically placed outside the normal noise distribution of the current market environment.
This approach is scientifically superior to static percentage-based stop losses, as it continuously adapts to the heteroskedasticity (changing variance) inherent in complex financial time series.
● Trend Directionality and Vector Strength
The Average Directional Index (ADX) component provides a purely quantitative measure of trend strength that is entirely independent of direction.
ADX is derived from the smoothed moving averages of the +DI and -DI, which measure the positive and negative directional movement vectors.
By requiring the ADX to breach a specific numerical threshold, the script mathematically filters out random walk (stochastic) market phases.
This ensures that the structural momentum setups only trigger when they occur within a statistically significant directional drift, massively increasing the probability of trend continuation.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Release Note
Added a new feature to the user settings to select the filter type.Relative Moving Average (RMA)
Kalman Filter
Locally Linear Adaptive Moving Average (LLAMA)
Release Note
Add alert function Release Note
Performing optimizations on the script.Release Note
An advanced alert system has been added. Release Note
Dashboard colors updated.Release Note
Fixing a bug and adding buy/sell labels. Release Note
Fixed a stale-data bug in the webhook alert systemสคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
💡 Proprietary indicators. Original research. Built by analysts who trade.
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
💡 Proprietary indicators. Original research. Built by analysts who trade.
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน