Dskyz (DAFE) GENESIS Dskyz (DAFE) GENESIS: Adaptive Quant, Real Regime Power
Let’s be honest: Most published strategies on TradingView look nearly identical—copy-paste “open-source quant,” generic “adaptive” buzzwords, the same shallow explanations. I’ve even fallen into this trap with my own previously posted strategies. Not this time.
What Makes This Unique
GENESIS is not a black-box mashup or a pre-built template. It’s the culmination of DAFE’s own adaptive, multi-factor, regime-aware quant engine—built to outperform, survive, and visualize live edge in anything from NQ/MNQ to stocks and crypto.
True multi-factor core: Volume/price imbalances, trend shifts, volatility compression/expansion, and RSI all interlock for signal creation.
Adaptive regime logic: Trades only in healthy, actionable conditions—no “one-size-fits-all” signals.
Momentum normalization: Uses rolling, percentile-based fast/slow EMA differentials, ALWAYS normalized, ALWAYS relevant—no “is it working?” ambiguity.
Position sizing that adapts: Not fixed-lot, not naive—not a loophole for revenge trading.
No hidden DCA or pyramiding—what you see is what you trade.
Dashboard and visual system: Directly connected to internal logic. If it’s shown, it’s used—and nothing cosmetic is presented on your chart that isn’t quantifiable.
Inputs and What They Mean (Read Carefully)
📊 Main Signal Inputs
Maximum Raw Score: How many distinct factors can contribute to regime/trade confidence (default 4). If you extend the quant logic, increase this.
RSI Length / Min RSI for Shorts / Max RSI for Longs: Fine-tunes how “overbought/oversold” matters; increase the length for smoother swings, tighten floors/ceilings for more extreme signals.
⚡ Regime & Momentum Gates
Min Normed Momentum/Score (Conf): Raise to demand only the strongest trends—your filter to avoid algorithmic chop.
🕒 Volatility & Session
ATR Lookback, ATR Low/High Percentile: These control your system’s awareness of when the market is dead or ultra-volatile. All sizing and filter logic adapts in real time.
Trading Session (hours): Easy filter for when entries are allowed; default is regular trading hours—no surprise overnight fills.
📊 Sizing & Risk
Max Dollar Risk / Base-Max Contracts: All sizing is adaptive, based on live regime and volatility state—never static or “just 1 contract.” Control your max exposures and real $ risk.
🔄 Exits & Scaling
Stop/Trail/Scale multipliers: You choose how dynamic/flexible risk controls and profit-taking need to be. ATR-based, so everything auto-adjusts to the current market mode.
Visuals That Actually Matter
Dashboard (Top Right): Shows only live, relevant stats: scoring, status, position size, win %, win streak, total wins—all from actual trade engine state (not “simulated”).
Watermark (Bottom Right): Momentum bar visual is always-on, regime-aware, reflecting live regime confidence and momentum normalization. If the bar is empty, you’re truly in no-momentum. If it glows lime, you’re riding the strongest possible edge.
*No cosmetics, no hidden code distractions.
Why It Wins
While others put out “AI-powered” strategies with little logic or soul, GENESIS is ruthlessly practical. It is built around what keeps traders alive:
- Context-aware signals, not just patterns
- Tight, transparent risk
- Inputs that adapt, not confuse
- Visuals that clarify, not distract
- Code that runs clean, efficient, and with minimal overfitting risk (try it on QQQ, AMD, SOL, etc. out of the box)
Disclaimer (for TradingView compliance):
Trading is risky. Futures, stocks, and crypto can result in significant losses. Do not trade with funds you cannot afford to lose. This is for educational and informational purposes only. Use in simulation/backtest mode before live trading. No past performance is indicative of future results. Always understand your risk and ownership of your trades.
Personal Note to Mods and Traders:
Yes, this statement is DIFFERENT, because this script IS different. If you see this taken down for some technicality (charting labels etc.), know I will fix, adapt, and repost until the system and its truth are visible to the community.
This will not be my last—my goal is to keep raising the bar until DAFE is a brand or I’m forced to take this private.
Use with discipline, use with clarity, and always trade smarter.
— Dskyz, powered by DAFE Trading Systems.
Oscillators
WaveFunction MACD (TechnoBlooms)WaveFunction MACD — The Next Generation of Market Momentum
WaveFunction MACD is an advanced hybrid momentum indicator that merges:
• The classical MACD crossover logic (based on moving averages)
• Wave physics (modeled through phase energy and cosine functions)
• Hilbert Transform theory from signal processing
• The concept of a wavefunction from quantum mechanics, where price action is seen as a probabilistic energy wave—not just a trend.
✨ Key Features of WaveFunction MACD
• Wave Energy Logic : Instead of using just price and MA differences, this indicator computes phase-corrected momentum using the cosine of the wave phase angle — revealing the true energy behind market moves.
• Phase-Based Trend Detection : It reads cycle phases using Hilbert Transform-like logic, allowing you to spot momentum before it becomes visible in price.
• Ultra-Smooth Flow : The main line and histogram are built to follow price flow smoothly — eliminating much of the noise found in traditional MACD indicators.
• Signal Amplification via Energy Histogram : The histogram doesn’t just show momentum changes — it shows the intensity of wave energy, allowing you to confirm the strength of the trend.
• Physics-Driven Structure : The algorithm is rooted in real-world wave mechanics, bringing a scientific edge to trading — ideal for traders who believe in natural models like cycles and harmonics.
• Trend Confirmation & Early Reversals : It can confirm strong trends and also catch subtle shifts that often precede big reversals — giving you both reliability and anticipation.
• Ready for Fusion : Designed to work seamlessly with liquidity zones, price action, order blocks, and structure trading — a perfect fit for modern trading systems.
🧪 The Science Behind It
This tool blends:
• Hilbert Transform: Measures the phase of a waveform (price cycle) to detect turning points
• Cosine Phase Energy: Calculates true wave energy using the cosine of the phase angle, revealing the strength behind price movements
• Quantum Modeling: Views price like a wavefunction, offering predictive insight based on phase dynamics
Adaptive RSI | Lyro RSThe Adaptive RSI | 𝓛𝔂𝓻𝓸 𝓡𝓢 indicator enhances the traditional Relative Strength Index (RSI) by integrating adaptive smoothing techniques and dynamic bands. This design aims to provide traders with a nuanced view of market momentum, highlighting potential trend shifts and overbought or oversold conditions.
Key Features
Adaptive RSI Calculation: Combines fast and slow Exponential Moving Averages (EMAs) of the RSI to capture momentum shifts effectively.
Dynamic Bands: Utilizes a smoothed standard deviation approach to create upper and lower bands around the adaptive RSI, aiding in identifying extreme market conditions.
Signal Line: An additional EMA of the adaptive RSI serves as a signal line, assisting in confirming trend directions.
Customizable Color Schemes: Offers multiple predefined color palettes, including "Classic," "Mystic," "Accented," and "Royal," with an option for users to define custom colors for bullish and bearish signals.
How It Works
Adaptive RSI Computation: Calculates the difference between fast and slow EMAs of the RSI, producing a responsive oscillator that adapts to market momentum.
Band Formation: Applies a smoothing factor to the standard deviation of the adaptive RSI, generating dynamic upper and lower bands that adjust to market volatility.
Signal Line Generation: Computes an EMA of the adaptive RSI to act as a signal line, providing additional confirmation for potential entries or exits.
Visualization: Plots the adaptive RSI as color-coded columns, with colors indicating bullish or bearish momentum. The dynamic bands are filled to visually represent overbought and oversold zones.
How to Use
Identify Momentum Shifts: Observe crossovers between the adaptive RSI and the signal line to detect potential changes in trend direction.
Spot Overbought/Oversold Conditions: Monitor when the adaptive RSI approaches or breaches the dynamic bands, signaling possible market extremes.
Customize Visuals: Select from predefined color palettes or define custom colors to align the indicator's appearance with personal preferences or chart themes.
Customization Options
RSI and EMA Lengths: Adjust the lengths of the RSI, fast EMA, slow EMA, and signal EMA to fine-tune the indicator's sensitivity.
Band Settings: Modify the band length, multiplier, and smoothing factor to control the responsiveness and width of the dynamic bands.
Color Schemes: Choose from predefined color modes or enable custom color settings to personalize the indicator's appearance.
⚠️ DISCLAIMER ⚠️: This indicator alone is not reliable and should be combined with other indicator(s) for a stronger signal.
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 𐓷𐓏
BK AK-9I am incredibly proud to introduce my fourth indicator to the TradingView community:
BK AK-9 — a next-level momentum-volatility hybrid, built for traders who demand precision.
🔥 Why “AK-9”? The Meaning Behind the Name
This indicator is deeply personal to me.
The “AK” in the name represents the initials of my mentor — the man whose guidance shaped my journey in trading, discipline, and strategy.
His wisdom is woven into every line of code, every design choice, and every purpose behind this tool.
The “9” holds its own powerful meaning:
9 is the number of completion and breakthrough — the moment where preparation meets opportunity.
The AK-9 weapon itself is a suppressed variant of the legendary AK platform, built for stealth, precision, and maximum impact in close-quarters combat.
It’s quiet, adaptive, and deadly effective — just like this indicator cuts through market noise, adapts to volatility, and pinpoints moments of maximum opportunity.
✨ About the BK AK-9 Indicator
The BK AK-9 is not just an oscillator.
It’s a multi-layered trading weapon combining:
✅ RSI → Stochastic → Bollinger Bands on Stoch RSI → momentum measured inside volatility.
✅ Dynamic or Static Background Flash → when extremes hit, you get instant visual alerts.
✅ Color-coded %K zones →
🔴 Red: oversold
🟢 Green: overbought
🔵 Blue: neutral
✅ Volatility-adaptive bands → instead of relying on static levels, the bands expand and contract dynamically using standard deviation.
🛡️ Why This Indicator Matters
Pinpoints exhaustion zones statistically, not emotionally.
Confirms breakouts with volatility evidence, not just price action.
Filters noise and helps you wait for high-probability setups.
Gives you visual edge with color-coded momentum and background flash.
Perfect for:
🔹 Breakout traders confirming momentum surges.
🔹 Mean-reversion traders catching exhaustion pivots.
🔹 Swing traders using multi-layered momentum analysis.
🔹 Momentum traders hunting volatility-backed entries.
💥 How to Use BK AK-9
Breakout Confirmation → when Stoch RSI breaks above upper Bollinger Band (green zone, flash ON), ride the trend.
Mean Reversion Trades → when Stoch RSI drops below lower Bollinger Band (red zone, flash ON), look for reversals.
Noise Filtering → stay patient inside the blue zone, wait for extremes.
Advanced Sync → align it with Gann levels, harmonic patterns, Fibonacci clusters, or Elliott waves for maximum edge.
🙏 Final Thoughts
This isn’t just another tool — it’s a weapon in your trading arsenal.
🔹 Dedicated to my mentor, A.K., whose wisdom and legacy guide my work.
🔹 Designed around the number 9, the number of completion, transition, and breakthrough.
🔹 Built to help traders act with precision, discipline, and clarity.
But above all, I give praise and glory to Gd — the true source of wisdom, insight, and success.
Markets will test your patience and your skill, but faith tests your soul. Through every challenge, every victory, and every setback, Gd remains the constant.
This tool is simply another way to use the gifts He has given — to help others rise.
⚡ Stay Ready, Stay Sharp
The markets are a battlefield. But with the right tools, the right strategy, and the right mindset — you will always stay 10 steps ahead.
🔥 Stay locked. Stay loaded. Trade with precision. 🔥
Gd bless, and may He guide us all to wisdom and success. 🙏
RSI + RSI MA + Choppiness IndexThe indicator is an extension of the Chopiness & RSI Index but takes it one step further by adding the RSI based MA .
Strong uptrend occurs when the RSI is at least 15% above the RSI based MA and the choppiness index value is below the RSI based MA.
Strong downtrend occurs when the Choppiness index line is at least 15% above the RSI based MA and the RSI is below the RSI based MA.
When both the RSI and Chopiness index are above the RSI based MA, this can mean either an uptrend or approaching downtrend.
When both the RSI and Chopiness index are below the RSI based MA, this can mean either an downtrend or approaching uptrend.
*Use at own risk.
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/'
RSI + RSI MA + Choppiness IndexThe indicator is an extension of the Chopiness & RSI Index but takes it one step further by adding the RSI based MA .
Strong uptrend occurs when the RSI is at least 15% above the RSI based MA and the choppiness index value is below the RSI based MA.
Strong downtrend occurs when the Choppiness index line is at least 15% above the RSI based MA and the RSI is below the RSI based MA.
When both the RSI and Chopiness index are above the RSI based MA, this can mean either an uptrend or approaching downtrend.
When both the RSI and Chopiness index are below the RSI based MA, this can mean either an downtrend or approaching uptrend.
*Use at own risk.
RSI 5 Dakika Al/Sat Alarmırsi 5 dklık grafikte scalp için sinyal üretir. yatırım tavsiyesi değildir.
Stochastics + VixFix Buy/Sell SignalsThis script is designed for long-term investors using ETFs on a weekly timeframe, where catching high-probability bottoms is the goal. It combines the Stochastic Oscillator with the Williams VixFix to identify moments of extreme fear and potential reversals.
A Buy signal is triggered when:
Stochastic %K drops below 20
VixFix forms a green spike (suggesting a panic-driven market flush)
A Sell signal is triggered when:
Stochastic %K rises above 90
VixFix falls below 5 (indicating excessive complacency)
Catching tops is much harder than catching bottoms.
These Sell signals are not designed to fully exit positions. Instead, they suggest trimming a small portion of ETF holdings — simply to free up liquidity for future opportunities.
This strategy is ideal for:
Long-term ETF investors
Weekly charts
Systematic decision-making in volatile markets
Use in conjunction with macro indicators, sector rotation, and valuation frameworks for best results.
VAPI with MA (no ta.sum)## 📘 Indicator: **VAPI with MA (no ta.sum)**
This custom indicator is a version of the **Volume Adjusted Price Indicator (VAPI)** combined with a selectable **moving average (MA)**. It manually computes the volume-weighted price momentum over a period and smooths it with a chosen type of moving average. The purpose is to assess directional volume pressure and potential trend shifts.
---
### 🔧 Inputs:
* **VAPI Length (`length`)**: Number of bars used for calculating the VAPI.
* **MA Length (`maLength`)**: Number of bars for smoothing VAPI with a moving average.
* **MA Type (`maType`)**: Type of moving average to apply (options: SMA, EMA, WMA, RMA, HMA, VWMA).
---
### 📈 Calculation Logic:
1. **x = (2 × close − high − low) / (high − low)**
Measures where the closing price lies within the candle range:
* Close at high → x = 1
* Close at low → x = -1
* Close in the middle → x = 0
A small constant (0.0001) is used to avoid division by zero.
2. **volX = volume × x**
This adjusts volume based on the candle's directional momentum.
3. **Manual summation over `length` bars** (instead of using `ta.sum`):
* `tva` accumulates the volume-adjusted values (`volX`)
* `tv` accumulates the total volume
4. **VAPI = 100 × (tva / tv)**
Gives a percentage-style oscillator:
* Positive values → bullish pressure
* Negative values → bearish pressure
5. **MA = Moving Average of VAPI**
Type of MA is user-defined (SMA, EMA, WMA, RMA, HMA, or VWMA).
---
### 📊 Plots:
* **VAPI Line** — Gray line (shows raw volume-adjusted price impulse).
* **MA Line** — Orange line (smoothed VAPI).
* **Zero Line** — Dashed horizontal reference at 0:
* Crossovers may suggest trend direction changes.
---
### 💡 Use Cases:
* **Volume momentum analysis**: Shows if volume supports current price action.
* **Divergence spotting**: Compare VAPI behavior against price movements.
* **Trend filtering**: The MA smooths out noise for clearer signals.
* **Entry/exit signals**: Use crossovers of VAPI/MA or zero line as potential triggers.
Dual Stochastic %K(14)+%K(5) / Stocastico Doppio🇬🇧Dual Stochastic %K(14)+%K(5) / Stocastico Doppio) (English version) - La versione italiana è sotto quella inglese
🟦 Indicator Title: Dual Stochastic %K(14)+%K(5) / Stocastico Doppio
🖊️ Author: B&MMNCR (Borsa & Mercati – Metro Manila National Capital Region)
🔍 What is it?
This script combines two stochastic oscillators:
A slow %K(14) acting as a zone filter (detecting overbought/oversold areas)
A fast %K(5) acting as a trigger (generating entry signals via %K/%D crossovers)
Signals (green/red arrows) only appear when a crossover occurs within a confirming zone (e.g. both oscillators under 20 or over 80).
All signals are stored for future analysis or export.
🎯 Ideal for:
Traders working in range-bound or sideways markets
Scalping and intraday strategies with momentum filtering
Visual confirmation of overbought/oversold zones
⚙️ Recommended settings:
Timeframe Use Type Smoothing
1–5 min Scalping 1–2
15m–1H Intraday 2–3
4H–1D Swing 3–5
📌 Full Italian description included in the script.
Let me know in the comments if you'd like a video version or strategy version.
🇮🇹 Versione Italiana (per la community)
📊 Titolo: Stocastico Doppio – %K(14) + %K(5)
✍️ Autore: B&MMNCR (Borsa & Mercati – Metro Manila National Capital Region)
🔎 Cos’è?
Questo indicatore unisce due stocastici:
Uno lento %K(14) come filtro per identificare zone operative (ipercomprato/ipervenduto)
Uno veloce %K(5) come trigger per generare segnali tramite incroci %K/%D
Le frecce compaiono solo se l'incrocio avviene in una zona coerente.
Tutti i segnali sono salvati per analisi o backtest.
✅ Ideale per:
Mercati laterali
Strategia scalping/intraday con conferma visiva
Trading sistematico semplificato
⚙️ Impostazioni consigliate:
Timeframe Tipo Smoothing
1–5 minuti Scalping 1–2
15m–1 ora Intraday 2–3
4H – Daily Swing 3–5
DEMA HMA Z-score OscillatorThis custom oscillator combines the power of the Hull Moving Average (HMA) with the Z-Score to identify momentum shifts and potential trend reversals. The Z-Score measures how far the current HMA is from its historical mean, helping to spot overbought or oversold conditions.
Uptrend: Long signals are generated when the Z-Score crosses above the defined Long Threshold.
Downtrend: Short signals are triggered when the Z-Score drops below the Short Threshold.
Visuals: The Z-Score is plotted along with background color changes and fills to clearly indicate trend strength. Green fills highlight uptrends, while pink fills indicate downtrends.
Alerts: Alerts are available for both long and short conditions based on Z-Score crossovers.
Customizable Inputs:
HMA Length
Smoothing Length (for DEMA)
Z-Score Length
Long and Short Thresholds
This indicator is ideal for detecting momentum shifts, confirming trend strength, and helping to time entry/exit points in your trading strategy.
Liquidity DeltaThis indicator estimates market pressure by calculating the difference between bid and ask volume based on candle structure and volume without access to an order book.
Methodology
Normalized delta by volume for consistency across assets, smoothed for reduced noise
The threshold channel highlights potential imbalances
Settings
Normalization Length: window size for averaging volume and delta
Smoothing Length: noise reduction for the normalized data
MA types for averaging delta, its normalization and final smoothing
Aroon𝑻𝑹𝑨𝑫𝑬𝑹𝑫𝑶 + Oscillator
ENGLISH
Key Differences Between Aroon𝑻𝑹𝑨𝑫𝑬𝑹𝑫𝑶 + Oscillator and Original Aroon Indicator:
Visual and User Experience Enhancements
✅ Colored Background:
Green for uptrends
Orange for downtrends
(Not present in original version)
✅ Signal Markers:
Buy (B): Green triangle ▼ (bottom)
Sell (S): Red triangle ▲ (top)
(Original only shows line crossovers)
✅ Text Color Customization:
"Buy (B) and Sell (S) signals feature selectable white/black text colors to accommodate both dark and light chart themes."
(No such option in original)
Technical Improvements
✅ Added Oscillator Line:
Purple line using upper - lower formula
(Original only shows Up/Down lines)
✅ Advanced Signal Logic:
Crossover + previous candle confirmation (upper < lower )
(Original uses simple crossovers)
Customization Options
✅ User-Friendly Inputs:
Adjustable period (default: 14)
Feature Comparison
Performans Karşılaştırması
Özellik Orijinal Aroon
Up/Down Çizgileri ✔️
Renkli Arka Plan ❌
Al/Sat Sinyalleri ❌
Yazı Rengi Seçimi ❌
Kesişim Filtresi ❌
Özellik Aroon𝑻𝑹𝑨𝑫𝑬𝑹𝑫𝑶+ Oscillator
Up/Down Çizgileri ✔️
Osilatör Çizgisi ✔️ (Mor)
Renkli Arka Plan ✔️
Al/Sat Sinyalleri ✔️ (B/S)
Yazı Rengi Seçimi ✔️
Kesişim Filtresi ✔️ (Önceki Bar)
Conclusion
This indicator preserves the original Aroon's core mechanics while adding:
Enhanced visual feedback
Trend confirmation systems
User customization
Ideal for swing traders seeking clearer signals, though some users may want adjustments to the oscillator calculation (which uses a non-standard formula).
////////////////////////////////////////////////////////////////////////////////
TÜRKÇE AÇIKLAMA:
Aroon𝑻𝑹𝑨𝑫𝑬𝑹𝑫𝑶 + Oscillator göstergesinin orijinal Aroon'a göre temel farklılıkları:
Görsel ve Kullanıcı Deneyimi Geliştirmeleri
✅ Renkli Arka Plan:
Yükseliş trendinde yeşil
Düşüş trendinde turuncu
Bu özellik orijinalinde yok
✅ Sinyal İşaretleri:
Al (B) için yeşil üçgen ▲ (alt kısım)
Sat (S) için kırmızı üçgen ▼ (üst kısım)
Orijinalde sadece çizgi kesişimleri var
✅ Yazı Rengi Seçeneği:
Al için "B" ve sat için "S" sinyalleri beyaz/siyah yazı rengi seçilebilir koyu ve açık tema kullananlar için
Orijinalde böyle bir özellik yok
Teknik Geliştirmeler
✅ Aroon Osilatörü Eklentisi:
upper - lower formülüyle mor renkli ek çizgi
Orijinal Aroon sadece Up/Down çizgilerini gösterir
✅ Gelişmiş Sinyal Mantığı:
Kesişim + önceki mum doğrulaması (upper < lower )
Orijinalde basit kesişimler
Özelleştirme Seçenekleri
✅ Kullanıcı Dostu Inputlar:
Periyot ayarı (varsayılan 14)
Performans Karşılaştırması
Özellik Orijinal Aroon
Up/Down Çizgileri ✔️
Osilatör Çizgisi ❌
Renkli Arka Plan ❌
Al/Sat Sinyalleri ❌
Yazı Rengi Seçimi ❌
Kesişim Filtresi ❌
Özellik Aroon𝑻𝑹𝑨𝑫𝑬𝑹𝑫𝑶+ Oscillator
Up/Down Çizgileri ✔️
Osilatör Çizgisi ✔️ (Mor)
Renkli Arka Plan ✔️
Al/Sat Sinyalleri ✔️ (B/S)
Yazı Rengi Seçimi ✔️
Kesişim Filtresi ✔️ (Önceki Bar)
Sonuç:
Bu gösterge, orijinal Aroon'un teknik temelini korurken daha fazla görsel geri bildirim, trend onay mekanizması ve kullanıcı özelleştirmesi sunar. Özellikle swing trader'lar için sinyal netliği sağlar, ancak osilatör hesaplamasında orijinal formül kullanılmadığı için bazı kullanıcılar ek ayar yapmak isteyebilir.
Alerta Caída Brusca + Confirmación de VolumenTechnical Components of the Indicator
EMA 9 vs EMA 21
Detects momentum shifts via exponential moving average crossovers.
When EMA 9 crosses below EMA 21, it is interpreted as a bearish signal.
Bollinger Band Compression
Identifies periods of low volatility (tight bands).
A breakout following this compression typically precedes sharp and fast price moves.
Ichimoku Cloud (Kumo Breakout)
If the price closes below the Kumo (Ichimoku cloud), it indicates structural bearish pressure.
This confirms the loss of key technical support.
RSI (Relative Strength Index)
A reading below 45 signals price weakness and low buying pressure.
🛑 Conditions to Trigger a Sell Signal
A sell signal is generated when all of the following conditions occur simultaneously:
Bollinger Bands show compression (low volatility).
EMA 9 crosses below EMA 21 (bearish crossover).
Price breaks below the Ichimoku cloud (Kumo).
RSI is below 45, confirming weak buying momentum.
When these conditions are met, a "SELL" label is visually projected on the corresponding candle.
📈 Usage Recommendations
Recommended timeframes: 5 minutes, 15 minutes, or 1 hour.
Useful for anticipating drops, avoiding late entries, and detecting technical breakdowns.
Can be combined with volume, candlestick patterns, or liquidity zones for higher accuracy.
Market Manipulation Index (MMI)The Composite Manipulation Index (CMI) is a structural integrity tool that quantifies how chaotic or orderly current market conditions are, with the aim of detecting potentially manipulated or unstable environments. It blends two distinct mathematical models that assess price behavior in terms of both structural rhythm and predictability.
1. Sine-Fit Deviation Model:
This component assumes that ideal, low-manipulation price behavior resembles a smooth oscillation, such as a sine wave. It generates a synthetic sine wave using a user-defined period and compares it to actual price movement over an adaptive window. The error between the real price and this synthetic wave—normalized by price variance—forms the Sine-Based Manipulation Index. A high error indicates deviation from natural rhythm, suggesting structural disorder.
2. Predictability-Based Model:
The second component estimates how well current price can be predicted using recent price lags. A two-variable rolling linear regression is computed between the current price and two lagged inputs (close and close ). If the predicted price diverges from the actual price, this error—also normalized by price variance—reflects unpredictability. High prediction error implies a more manipulated or erratic environment.
3. Adaptive Mechanism:
Both components are calculated using an adaptive smoothing window based on the Average True Range (ATR). This allows the indicator to respond proportionally to market volatility. During high volatility, the analysis window expands to avoid over-sensitivity; during calm periods, it contracts for better responsiveness.
4. Composite Output:
The two normalized metrics are averaged to form the final CMI value, which is then optionally smoothed further. The output is scaled between 0 and 1:
0 indicates a highly structured, orderly market.
1 indicates complete structural breakdown or randomness.
Suggested Interpretation:
CMI < 0.3: Market is clean and structured. Trend-following or breakout strategies may perform better.
CMI > 0.7: Market is structurally unstable. Choppy price action, fakeouts, or manipulative behavior may dominate.
CMI 0.3–0.7: Transitional zone. Caution or reduced risk may be warranted.
This indicator is designed to serve as a contextual filter, helping traders assess whether current market conditions are conducive to structured strategies, or if discretion and defense are more appropriate.
Peak Pulse ReversalPeak Pulse Reversal is a clean and accurate indicator designed to detect price exhaustion zones.
It uses a combination of internal logic to identify high-probability reversal points — both at tops and bottoms.
📈 Ideal for swing and intraday traders
🔍 Highlights overbought/oversold extremes with signal arrows
🧠 Combines multiple hidden tools under a simplified interface
🔎 Among the signals generated by the indicator, purple and orange signals represent moments where multiple internal indicators confirm an overbought or oversold condition simultaneously.
These signals often form at stronger exhaustion points and indicate a higher probability of reversal.
💡 Therefore, purple and orange signals are considered high-confidence zones.
🔐 Manual access only. Contact @traderpango for access
ATR Zone Levels Pro### 🧠 **Purpose of the Script**
The script calculates **dynamic support/resistance levels** above and below a base price using the **ATR (Average True Range)**. These "zones" help traders identify potential areas of price reaction, entries, or stop placement based on current market volatility.
---
### ⚙️ **1. User Inputs**
```pinescript
show_long = input(true, "Show Long Levels")
show_short = input(true, "Show Short Levels")
use_close_price = input(true, "Use Close Price")
atr_length = input.int(14, "ATR Period", minval=1)
smoothing = input.string("RMA", "Smoothing Type", options= )
```
* `show_long` and `show_short`: Allow toggling visibility of long/short zones.
* `use_close_price`: If true, base level = close price; else, it’s the average of high and low.
* `atr_length`: Number of bars used for ATR calculation.
* `smoothing`: Type of smoothing applied to the ATR.
---
### 📐 **2. ATR Calculation with Custom Smoothing**
```pinescript
ma_function(source, length) => ...
true_range = ta.tr(true)
atr = ma_function(true_range, atr_length)
```
* `true_range`: Calculates the true range for each bar.
* `atr`: Applies user-selected smoothing function to the true range to get ATR.
---
### 📏 **3. Base Level Calculation**
```pinescript
base_level = use_close_price ? close : (high + low) / 2
```
* Defines the **base price level** for the zones:
* `close` if selected, otherwise midpoint of high and low.
---
### 🔢 **4. Calculating Zone Levels**
```pinescript
array.push(long_levels, base_level + atr * 0.3) ...
array.push(short_levels, base_level - atr * 0.3) ...
```
* Creates arrays of levels spaced at multipliers of ATR (0.3x, 0.5x, 1x, 1.5x).
* `long_levels` are above the base level (for breakout or continuation).
* `short_levels` are below (for breakdown or reversal).
---
### 🖼️ **5. Plotting Levels**
```pinescript
plot(show_long ? array.get(long_levels, 1) : na, ...)
```
* Each level is plotted with distinct colors.
* If `show_long` or `show_short` is disabled, the corresponding lines are hidden.
---
### 📋 **6. Info Table (Top Right Corner)**
```pinescript
var table info_table = table.new(position.top_right, 2, 5)
```
* Displays:
* Current ATR value
* Main Long/Short zone level (1 ATR above/below base)
* Chosen smoothing type
* Current base price
---
### 🏷️ **7. Info Label on Chart**
```pinescript
label.new(bar_index, base_level, ...)
```
* Shows a label near the base price on the last bar with:
* Base level
* ATR value
* Old label is deleted on each bar to keep only one active label.
---
### ✅ **Use Case**
This indicator is ideal for:
* Determining dynamic **support/resistance levels**
* Planning entries/exits based on volatility zones
* Structuring trades with ATR-based risk zones (e.g. 1.5x ATR stops)
---
Would you like me to add **alerts** when price reaches these zones or crosses them?
ATR Momentum Pro### 🧠 **Purpose of the Script**
This indicator visualizes the **momentum of volatility** by calculating the difference between the current ATR (Average True Range) and its moving average. It helps detect periods when market volatility is accelerating or decelerating.
---
### ⚙️ **1. User Inputs**
```pinescript
atr_length = input.int(14, "ATR Period", minval=1, maxval=100)
ma_length = input.int(20, "MA Period", minval=1, maxval=50)
ma_type = input.string("SMA", "MA Type", options= )
```
* `atr_length`: Number of periods used to calculate ATR (default is 14).
* `ma_length`: Number of periods for smoothing the ATR.
* `ma_type`: Type of Moving Average to use for smoothing (SMA, EMA, RMA, or WMA).
---
### 📈 **2. Calculations**
```pinescript
atr = ta.atr(atr_length)
```
* Calculates the standard **ATR**, which measures market volatility using high, low, and close prices.
```pinescript
ma_value = switch ma_type
"SMA" => ta.sma(atr, ma_length)
"EMA" => ta.ema(atr, ma_length)
"RMA" => ta.rma(atr, ma_length)
"WMA" => ta.wma(atr, ma_length)
```
* Applies the selected Moving Average to the ATR to smooth it.
```pinescript
oscillator = atr - ma_value
```
* Calculates the **ATR Momentum Oscillator**:
* Positive values: volatility is increasing.
* Negative values: volatility is decreasing.
---
### 📊 **3. Oscillator Plot**
```pinescript
plot(oscillator, "ATR Momentum", color=color.new(color.blue, 0), style=plot.style_histogram)
```
* Plots the oscillator as a **blue histogram** in a separate pane below the chart.
---
### 🏷️ **4. Informational Label**
```pinescript
var label lbl = label.new(bar_index, na, "", style=label.style_label_center)
if barstate.islast
label.set_xy(lbl, bar_index, ta.highest(high, 10) )
label.set_text(lbl,
"ATR: " + str.tostring(atr, "#.##") +
" MA(" + str.tostring(ma_length) + "): " + str.tostring(ma_value, "#.##") +
" Momentum: " + str.tostring(oscillator, "#.##"))
label.set_color(lbl, oscillator > 0 ? color.green : color.red)
```
* Creates a **single label** that updates only on the **latest bar**.
* The label shows:
* Current ATR
* ATR moving average
* Momentum (difference between the two)
* Label color:
* **Green** if momentum > 0
* **Red** if momentum < 0
* The label is positioned just above the price (highest high of the last 10 bars, offset by 1 bar).
---
### ✅ **Use Case**
This indicator is useful for:
* Spotting increases or decreases in market volatility
* Confirming breakout strength
* Filtering trades based on volatility momentum
---
Would you like me to add **buy/sell signals** when the oscillator crosses above or below zero?
RSI Crosses SMA Buy/Sell StrategyDisclaimer:
// This script is for educational and informational purposes only.
// It does not constitute financial or investment advice.
// Trading involves substantial risk and may not be suitable for all investors.
// Always do your own research or consult with a licensed financial advisor
// before making any trading or investment decisions.
// The author is not responsible for any losses incurred using this script
Key Changes:
Buy at High of the Signal Candle:
The strategy.entry("Buy", strategy.long, limit=high, comment="Buy at High of Signal Candle") line places a buy order at the high of the candle that triggered the signal (i.e., the candle where the RSI crosses above the SMA).
How it works:
When the RSI crosses above the SMA and the buy condition is true, the strategy will place a buy order at the high of that candle.
Exit:
The strategy will exit the position if the RSI crosses below the SMA as usual using strategy.close("Buy").
Example:
If the RSI crosses above the SMA at a specific candle, the strategy will enter a buy order at the high of that candle.
When the RSI crosses below the SMA, it will close the long position.
This should now execute a buy order at the high of the signal candle when the RSI crosses above the SMA, as requested.
RSI-EMA-Crossing with Donchian-Stop-LossThe Donchian RSI Indicator is a visual tool that combines momentum and trend analysis to identify high-quality long opportunities based on RSI crossovers, price action, and Donchian channel dynamics.
How It Works
Momentum Signal: A bullish RSI crossover is detected when the RSI crosses above its moving average.
Trend Filter: A signal is only valid if the crossover occurs while the price is above its moving average – filtering out entries against the prevailing trend.
Signal Candle: The high of the crossover candle is stored.
Entry Trigger: A valid signal occurs when a later candle closes above that signal high.
Stop-Loss (Visual Only)
The lower band of the Donchian Channel acts as a visual reference for a dynamic stop-loss level.
Features
Customizable RSI, Donchian Channel, and moving average lengths
Selectable MA types: SMA, EMA, WMA, VWMA, HMA
Signal candle highlighted (yellow background)
Entry points labeled on the chart
Price MA and Donchian Channel plotted
Trend filter improves signal quality by confirming upward bias
Use Case
Designed for swing and position traders
Optimized for use on daily or 4H charts