KST Strategy [Skyrexio]Overview
KST Strategy leverages Know Sure Thing (KST) indicator in conjunction with the Williams Alligator and Moving average to obtain the high probability setups. KST is used for for having the high probability to enter in the direction of a current trend when momentum is rising, Alligator is used as a short term trend filter, while Moving average approximates the long term trend and allows trades only in its direction. Also strategy has the additional optional filter on Choppiness Index which does not allow trades if market is choppy, above the user-specified threshold. Strategy has the user specified take profit and stop-loss numbers, but multiplied by Average True Range (ATR) value on the moment when trade is open. The strategy opens only long trades.
Unique Features
ATR based stop-loss and take profit. Instead of fixed take profit and stop-loss percentage strategy utilizes user chosen numbers multiplied by ATR for its calculation.
Configurable Trading Periods. Users can tailor the strategy to specific market windows, adapting to different market conditions.
Optional Choppiness Index filter. Strategy allows to choose if it will use the filter trades with Choppiness Index and set up its threshold.
Methodology
The strategy opens long trade when the following price met the conditions:
Close price is above the Alligator's jaw line
Close price is above the filtering Moving average
KST line of Know Sure Thing indicator shall cross over its signal line (details in justification of methodology)
If the Choppiness Index filter is enabled its value shall be less than user defined threshold
When the long trade is executed algorithm defines the stop-loss level as the low minus user defined number, multiplied by ATR at the trade open candle. Also it defines take profit with close price plus user defined number, multiplied by ATR at the trade open candle. While trade is in progress, if high price on any candle above the calculated take profit level or low price is below the calculated stop loss level, trade is closed.
Strategy settings
In the inputs window user can setup the following strategy settings:
ATR Stop Loss (by default = 1.5, number of ATRs to calculate stop-loss level)
ATR Take Profit (by default = 3.5, number of ATRs to calculate take profit level)
Filter MA Type (by default = Least Squares MA, type of moving average which is used for filter MA)
Filter MA Length (by default = 200, length for filter MA calculation)
Enable Choppiness Index Filter (by default = true, setting to choose the optional filtering using Choppiness index)
Choppiness Index Threshold (by default = 50, Choppiness Index threshold, its value shall be below it to allow trades execution)
Choppiness Index Length (by default = 14, length used in Choppiness index calculation)
KST ROC Length #1 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST ROC Length #2 (by default = 15, value used in KST indicator calculation, more information in Justification of Methodology)
KST ROC Length #3 (by default = 20, value used in KST indicator calculation, more information in Justification of Methodology)
KST ROC Length #4 (by default = 30, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #1 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #2 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #3 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #4 (by default = 15, value used in KST indicator calculation, more information in Justification of Methodology)
KST Signal Line Length (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
User can choose the optimal parameters during backtesting on certain price chart.
Justification of Methodology
Before understanding why this particular combination of indicator has been chosen let's briefly explain what is KST, Williams Alligator, Moving Average, ATR and Choppiness Index.
The KST (Know Sure Thing) is a momentum oscillator developed by Martin Pring. It combines multiple Rate of Change (ROC) values, smoothed over different timeframes, to identify trend direction and momentum strength. First of all, what is ROC? ROC (Rate of Change) is a momentum indicator that measures the percentage change in price between the current price and the price a set number of periods ago.
ROC = 100 * (Current Price - Price N Periods Ago) / Price N Periods Ago
In our case N is the KST ROC Length inputs from settings, here we will calculate 4 different ROCs to obtain KST value:
KST = ROC1_smooth × 1 + ROC2_smooth × 2 + ROC3_smooth × 3 + ROC4_smooth × 4
ROC1 = ROC(close, KST ROC Length #1), smoothed by KST SMA Length #1,
ROC2 = ROC(close, KST ROC Length #2), smoothed by KST SMA Length #2,
ROC3 = ROC(close, KST ROC Length #3), smoothed by KST SMA Length #3,
ROC4 = ROC(close, KST ROC Length #4), smoothed by KST SMA Length #4
Also for this indicator the signal line is calculated:
Signal = SMA(KST, KST Signal Line Length)
When the KST line rises, it indicates increasing momentum and suggests that an upward trend may be developing. Conversely, when the KST line declines, it reflects weakening momentum and a potential downward trend. A crossover of the KST line above its signal line is considered a buy signal, while a crossover below the signal line is viewed as a sell signal. If the KST stays above zero, it indicates overall bullish momentum; if it remains below zero, it points to bearish momentum. The KST indicator smooths momentum across multiple timeframes, helping to reduce noise and provide clearer signals for medium- to long-term trends.
Next, let’s discuss the short-term trend filter, which combines the Williams Alligator and Williams Fractals. Williams Alligator
Developed by Bill Williams, the Alligator is a technical indicator that identifies trends and potential market reversals. It consists of three smoothed moving averages:
Jaw (Blue Line): The slowest of the three, based on a 13-period smoothed moving average shifted 8 bars ahead.
Teeth (Red Line): The medium-speed line, derived from an 8-period smoothed moving average shifted 5 bars forward.
Lips (Green Line): The fastest line, calculated using a 5-period smoothed moving average shifted 3 bars forward.
When the lines diverge and align in order, the "Alligator" is "awake," signaling a strong trend. When the lines overlap or intertwine, the "Alligator" is "asleep," indicating a range-bound or sideways market. This indicator helps traders determine when to enter or avoid trades.
The next indicator is Moving Average. It has a lot of different types which can be chosen to filter trades and the Least Squares MA is used by default settings. Let's briefly explain what is it.
The Least Squares Moving Average (LSMA) — also known as Linear Regression Moving Average — is a trend-following indicator that uses the least squares method to fit a straight line to the price data over a given period, then plots the value of that line at the most recent point. It draws the best-fitting straight line through the past N prices (using linear regression), and then takes the endpoint of that line as the value of the moving average for that bar. The LSMA aims to reduce lag and highlight the current trend more accurately than traditional moving averages like SMA or EMA.
Key Features:
It reacts faster to price changes than most moving averages.
It is smoother and less noisy than short-term EMAs.
It can be used to identify trend direction, momentum, and potential reversal points.
ATR (Average True Range) is a volatility indicator that measures how much an asset typically moves during a given period. It was introduced by J. Welles Wilder and is widely used to assess market volatility, not direction.
To calculate it first of all we need to get True Range (TR), this is the greatest value among:
High - Low
abs(High - Previous Close)
abs(Low - Previous Close)
ATR = MA(TR, n) , where n is number of periods for moving average, in our case equals 14.
ATR shows how much an asset moves on average per candle/bar. A higher ATR means more volatility; a lower ATR means a calmer market.
The Choppiness Index is a technical indicator that quantifies whether the market is trending or choppy (sideways). It doesn't indicate trend direction — only the strength or weakness of a trend. Higher Choppiness Index usually approximates the sideways market, while its low value tells us that there is a high probability of a trend.
Choppiness Index = 100 × log10(ΣATR(n) / (MaxHigh(n) - MinLow(n))) / log10(n)
where:
ΣATR(n) = sum of the Average True Range over n periods
MaxHigh(n) = highest high over n periods
MinLow(n) = lowest low over n periods
log10 = base-10 logarithm
Now let's understand how these indicators work in conjunction and why they were chosen for this strategy. KST indicator approximates current momentum, when it is rising and KST line crosses over the signal line there is high probability that short term trend is reversing to the upside and strategy allows to take part in this potential move. Alligator's jaw (blue) line is used as an approximation of a short term trend, taking trades only above it we want to avoid trading against trend to increase probability that long trade is going to be winning.
Almost the same for Moving Average, but it approximates the long term trend, this is just the additional filter. If we trade in the direction of the long term trend we increase probability that higher risk to reward trade will hit the take profit. Choppiness index is the optional filter, but if it turned on it is used for approximating if now market is in sideways or in trend. On the range bounded market the potential moves are restricted. We want to decrease probability opening trades in such condition avoiding trades if this index is above threshold value.
When trade is open script sets the stop loss and take profit targets. ATR approximates the current volatility, so we can make a decision when to exit a trade based on current market condition, it can increase the probability that strategy will avoid the excessive stop loss hits, but anyway user can setup how many ATRs to use as a stop loss and take profit target. As was said in the Methodology stop loss level is obtained by subtracting number of ATRs from trade opening candle low, while take profit by adding to this candle's close.
Backtest Results
Operating window: Date range of backtests is 2023.01.01 - 2025.05.01. It is chosen to let the strategy to close all opened positions.
Commission and Slippage: Includes a standard Binance commission of 0.1% and accounts for possible slippage over 5 ticks.
Initial capital: 10000 USDT
Percent of capital used in every trade: 60%
Maximum Single Position Loss: -5.53%
Maximum Single Profit: +8.35%
Net Profit: +5175.20 USDT (+51.75%)
Total Trades: 120 (56.67% win rate)
Profit Factor: 1.747
Maximum Accumulated Loss: 1039.89 USDT (-9.1%)
Average Profit per Trade: 43.13 USDT (+0.6%)
Average Trade Duration: 27 hours
These results are obtained with realistic parameters representing trading conditions observed at major exchanges such as Binance and with realistic trading portfolio usage parameters.
How to Use
Add the script to favorites for easy access.
Apply to the desired timeframe and chart (optimal performance observed on 1h BTC/USDT).
Configure settings using the dropdown choice list in the built-in menu.
Set up alerts to automate strategy positions through web hook with the text: {{strategy.order.alert_message}}
Disclaimer:
Educational and informational tool reflecting Skyrexio commitment to informed trading. Past performance does not guarantee future results. Test strategies in a simulated environment before live implementation.
Oscillatori centrati
📊 RSI Multi-Timeframe Dashboard by giua64)### Summary
This is an advanced dashboard that provides a comprehensive overview of market strength and momentum, based on the Relative Strength Index (RSI) analyzed across 6 different timeframes simultaneously (from 5 minutes to the daily chart).
The purpose of this script is to offer traders an immediate and easy-to-read summary of market conditions, helping to identify the prevailing trend direction, overbought/oversold levels, and potential reversals through divergence detection. All of this is available in a single panel, eliminating the need to switch timeframes on your main chart.
### Key Features
* **Multi-Timeframe Analysis:** Simultaneously monitors the 5m, 15m, 30m, 1H, 4H, and Daily timeframes.
* **Scoring System:** Each timeframe is assigned a score based on multiple RSI conditions (e.g., above/below 50, overbought/oversold status, direction) to quantify bullish or bearish strength.
* **Aggregated Signal:** The dashboard calculates a total percentage score and provides a clear summary signal: **LONG**, **SHORT**, or **WAIT**.
* **Divergence Detection:** Automatically identifies Bullish and Bearish divergences between price and RSI for each timeframe.
* **Non-Repainting Option:** In the settings, you can choose to base calculations on the close of the previous candle (`Use RSI on Closed Candle`). This ensures that past signals (like status and score) do not change, providing more reliable data for analysis.
* **Fully Customizable:** Users can modify the RSI period, overbought/oversold thresholds, divergence detection settings, and the appearance of the table.
### How to Read the Dashboard
The table consists of 6 columns, each providing specific information:
* **% (Total Score):**
* **Header:** Shows the overall strength as a percentage. A positive value indicates bullish momentum, while a negative value indicates bearish momentum. The background color changes based on intensity.
* **Rows:** Displays the numerical score for the individual timeframe.
* **RSI:**
* **Header:** The background color indicates the average of all RSI values. Green if the average is > 50, Red if < 50.
* **Rows:** Shows the real-time RSI value for that timeframe.
* **Signal (Status):**
* **Header:** This is the final operational signal. It turns **🟢 LONG** when bullish strength is high, **🔴 SHORT** when bearish strength is high, and **⚪ WAIT** in neutral conditions.
* **Rows:** Describes the RSI status for that timeframe (e.g., Bullish, Bearish, Overbought, Oversold).
* **Dir (Direction):**
* **Header:** Displays an arrow representing the majority direction across all timeframes.
* **Rows:** Shows the instantaneous direction of the RSI (↗️ for rising, ↘️ for falling).
* **Diverg (Divergence):**
* Indicates if a bullish (`🟢 Bull`) or bearish (`🔴 Bear`) divergence has been detected on that timeframe.
* **TF (Timeframe):**
* Indicates the reference timeframe for that row.
### Advantages and Practical Use
This tool was created to solve a common problem: the need to analyze multiple charts to understand the bigger picture. With this dashboard, you can:
1. **Confirm a Trend:** A predominance of green and a "LONG" signal provides strong confirmation of bullish sentiment.
2. **Identify Weakness:** Red signals on higher timeframes can warn of an impending loss of momentum.
3. **Spot Turning Points:** A divergence on a major timeframe can signal an excellent reversal opportunity.
### Originality and Acknowledgements
This script is an original work, written from scratch by giua64. The idea was to create a comprehensive and visually intuitive tool for RSI analysis.
Any feedback, comments, or suggestions to improve the script are welcome!
**Disclaimer:** This is a technical analysis tool and should not be considered financial advice. Always do your own research and backtest any tool before using it in a live trading environment.
Oscillator SignalsOscillator Signals – Smart Trading with RSI & Stochastic
Enhance your trading strategy with clear entry and exit signals!
Developed by Marcelo Ulisses Sobreiro Ribeiro
This script combines two powerful technical indicators—Stochastic Oscillator and Relative Strength Index (RSI)—to generate high-probability trading signals. It helps identify potential reversals and trend confirmations with visual alerts and customizable settings.
🔹 Key Features:
✅ Stochastic Oscillator Signals – Detects exits from overbought (bearish reversal) and oversold (bullish reversal) zones.
✅ RSI + Moving Average Crossovers – Confirms trend strength when RSI crosses its moving average.
✅ Combined Alerts – Stronger signals when Stochastic and RSI align (e.g., Stochastic exits oversold + RSI crosses above MA = Bullish signal).
✅ Fully Customizable – Adjust lengths, levels, and toggle bullish/bearish signals.
✅ Built-in Alerts – Get notified instantly for potential trades.
🔹 How It Works:
Bullish Signals (▲ Green Triangle):
Stochastic exits oversold (crosses above 20).
RSI crosses above its moving average.
Bearish Signals (▼ Red Triangle):
Stochastic exits overbought (crosses below 80).
RSI crosses below its moving average.
🔹 Ideal For:
Swing traders looking for reversals.
Confirmation for trend-following strategies.
Traders who prefer oscillator-based signals.
📌 Pro Tip: Use this alongside support/resistance levels for higher accuracy!
Try it now and trade smarter! 🚀
Why This Works:
Clear & Concise: Explains the value without technical overload.
Highlights Benefits: Focuses on what traders care about (signals, alerts, customization).
Engaging: Uses emojis and bullet points for readability.
Call to Action: Encourages users to test the script.
Let me know if you'd like any refinements!
Insira no texto a informação de que muitas vezes o estocástico passa muito tempo na zona de OB ou OS e somente quando ele sai desta zona é que o preço começa a andar.
Here’s the updated version with your requested addition, emphasizing how the script solves the problem of the Stochastic lingering in OB/OS zones:
Oscillator Signals – Smart Trading with RSI & Stochastic
Stop waiting for false reversals—trade the confirmed moves!
Many traders struggle with the Stochastic Oscillator because it can linger in overbought (OB) or oversold (OS) zones for long periods, leading to premature entries. This script solves that problem by only triggering signals when Stochastic exits these zones, combined with RSI crossovers for higher-confidence trades.
🔹 Key Features:
✅ No More False Alerts – Avoids signals inside OB/OS zones—waits for Stochastic to exit (confirming momentum shift).
✅ RSI + Moving Average Crossovers – Adds a second layer of confirmation when RSI crosses its moving average.
✅ Combined Alerts – Strongest signals occur when:
Stochastic exits oversold (OS) and RSI crosses above its MA (▲ Bullish).
Stochastic exits overbought (OB) and RSI crosses below its MA (▼ Bearish).
✅ Fully Customizable – Adjust lengths, OB/OS levels, and toggle signals.
✅ Built-in Alerts – Never miss a setup.
🔹 Why It Works Better:
Traditional Stochastic signals often fail because price can stay stuck in OB/OS for extended periods. This script ignores entries inside the zones and only acts when:
Stochastic leaves OS (crosses above 20) + RSI confirms uptrend.
Stochastic leaves OB (crosses below 80) + RSI confirms downtrend.
Filters out weak reversals, focusing on high-probability breakouts.
🔹 Ideal For:
Traders tired of "whipsaws" from premature OB/OS entries.
Swing traders seeking confirmed reversals.
Combining with support/resistance for precision.
📌 Pro Tip: Pair this with price action (e.g., breakouts from key levels) for even stronger signals!
Try it now—trade less, profit more! 🚀
Key Improvements:
Problem-Solution Framework: Directly addresses the "Stochastic lingering" issue upfront.
Stronger Emphasis on Confirmation: Highlights how the script waits for OB/OS exits to avoid fakeouts.
Clearer Value Proposition: Positions the script as a filter for higher-quality signals.
Crypto Master IndicatorThe Crypto Master Indicator (CMI) is a custom technical indicator for the TradingView platform, developed in Pine Script, designed to assist traders, especially in the cryptocurrency market, in identifying buy and sell opportunities based on multiple technical indicators combined. It is an overlay indicator that integrates multiple technical analysis tools to generate clear and visually accessible trading signals.
My scriptThe real detrended 4-year growth rate measures inflation-adjusted growth relative to a long-term trend for real wages
TZADIKAOT - Triple Convergence🚀 *TZADIK – Triple Convergence*
The ultimate convergence indicator that brings clarity through the power of consensus.
*What’s Inside?*
A smart fusion of *3 powerful momentum-based indicators*:
* *SMI (Stochastic Momentum Index)*
* *Stochastic RSI*
* *CCI Stochastic*
📊 Each one generates its own buy/sell signal — and TZADIKAOT combines them into a clear, unified consensus:
* ✅ *3/3 BUY / SELL* – Strong entry signals
* ⚠ *2/3 BUY / SELL* – Moderate signals worth watching
* ⚪ *Neutral* – No consensus yet
🎯 *Features*:
✔ Dynamic score histogram
✔ Color-coded background zones
✔ Visual arrows + status labels
✔ Real-time signal table
✔ Built-in alerts for full consensus
*Who is it for?*
Traders who want structured, data-driven signals instead of noise — and a single, trustworthy indicator to guide their decisions.
💡 Designed for clarity, precision, and ease of use on *any timeframe*. No more guesswork. Just signals that matter.
MACD, RSI, Stoch, Volume & ADX Table (Horizontal)Indicator to display the MACD, RSI, STOCh, Volume and ADX values in the wave
Rifle LONG Rifle Shooter Long Indicator
Provides buy/sell signals on DOW symbols including YM, MYM, and US30. Algorithm monitors price action for a drop of price of X points within N minutes. On achieving this drop, the algorithm waits for the price action to drop below one of three levels. Levels end in 23/43/73. For example, 42223 or 42273. Once dropping below the level the algorithm is considered setup if the RSI is below 30. Once setup, it will remain setup until the RSI exceeds 30 or a buy signal is triggered. A buy signal triggers when setup and the following conditions are achieved: 1) price action rises above the level, change in RSI indicates an end/exhaustion of the price drop, and the bar has positive upward momentum.
After signal entry a customizable stop loss and take profit are plotted on the chart adjusting to price action. It will signal exit accordingly.
Requirements for use:
1) 30 second chart
2) Dow symbol
The script has a matching indicator for the SHORT entry. Both indicators rely on common cod within the RifleShooterLib library.
Additionally, the BackTesterLib library is used to provide backtesting statistics and presentation.
ORB Screener-Multiple IndicatorsThis custom screener is designed to identify high-probability intraday breakout opportunities across the top 40 NSE stocks by market capitalization. It is built on the proven Opening Range Breakout (ORB) concept and enhanced with a powerful combination of momentum and trend filters.
✅ Key Features:
Opening Range (09:15–09:20) detection with automatic status: Abv High, Blw Low, BTW
Real-time scanning of 40 pre-loaded NSE stocks (configurable)
Composite scoring system (0–100) based on:
RSI > 55
Price above VWAP
Volume Surge (vs 20-period SMA)
ADX > 20
MACD Histogram (positive and rising)
ORB Breakout Direction
Color-coded screener table to highlight top-scoring stocks
Buy/Sell suggestions shown alongside score
Manual sorting toggle for ranked display
Fully customizable watchlist with checkboxes
🛠️ Best Use:
Ideal for intraday traders looking for momentum trades.
Focus on stocks with score ≥ 75 and green highlight for long trades.
Designed to be lightweight despite scanning 40 instruments.
⚠️ Notes:
This script does not plot on the chart; it only renders a dynamic screener table.
No alerts are configured—manual review required.
You can edit the top 40 symbols as needed.
Fisher Transform Background StripesA simple indicator to provide the user with background stripes on the candle chart showing Fisher Transform Oversold and Overbought Levels.
MACD Golden Cross Last 5 BarsMACD crossup in last 5 days, can be used to screen for things happening in last week
Universal Sentiment Oscillator with Trade RecommendationsUniversal Sentiment Oscillator & Strategy Guide
Summary
This all-in-one indicator is designed to be a comprehensive co-pilot for your trading journey. It moves beyond simple buy/sell signals by analyzing the underlying market sentiment and providing a dynamic, risk-assessed guide of potential trading strategies. Whether you're a novice learning the ropes or an expert seeking confirmation, this tool provides a structured framework for making smarter, more informed decisions in stocks, options, and futures.
How It Works
The core of the indicator is the Sentiment Oscillator, which calculates a score from -5 (Extremely Bearish) to +5 (Extremely Bullish) on every bar. This isn't just a single measurement; it's a weighted aggregate of several key technical conditions:
Trend Analysis: Price position relative to the 20, 50, and 200 EMAs.
Momentum Analysis: The current RSI value.
Hybrid Analysis: The state of the MACD and its signal line.
These factors are intelligently combined and normalized to produce a single, intuitive sentiment score, giving you an at-a-glance understanding of the market's pulse.
Core Features
Dynamic Trade Recommendation Table:
The informational heart of the indicator. This on-chart table provides a list of potential trades perfectly aligned with the current sentiment score.
Risk-Ranked Strategies:
All suggested trades are logically ordered by risk, helping you quickly identify strategies that match your comfort level.
Adjusted Trade Suggestions:
The indicator analyzes sentiment momentum (the score vs. its signal line) to provide proactive, forward-looking trade ideas based on where the market might be heading next.
Customizable Trading Styles:
Tell the indicator if you are a Conservative, Neutral, or Aggressive trader, and the "Adjusted Trade Suggestion" will automatically tailor its recommendations to your personal risk preference.
Context-Aware Futures Mode:
When viewing a futures contract, enable this mode to switch all recommendations from stock/options to futures-specific actions (e.g., "Cautious Long," "Monitor Range").
Predictive Sentiment Cone:
Visualize the potential short-term path of sentiment based on current momentum, helping you anticipate future conditions.
Fully Customizable:
Every parameter—from EMA lengths to trade filters—can be adjusted, allowing you to fine-tune the indicator to your exact specifications.
How to Use This Indicator
This tool is flexible and can be integrated into many trading systems. Here is a powerful, professional approach:
Top-Down Analysis (for Swing or Position Trading):
Establish the Trend: Start on the higher timeframes (Monthly, Weekly, Daily). Use the oscillator's color and score to define the dominant, long-term market sentiment. You only want to look for trades that align with this macro trend.
Refine the Entry: Drop down to the medium timeframes (4-Hour, 1-Hour). Wait for the sentiment on these charts to come into alignment with the higher-timeframe trend. This pullback or consolidation is your "zone of interest."
Pinpoint the Execution: Move to a lower timeframe (e.g., 15-Minute). Use the Adjusted Trade Suggestion and Sentiment Momentum to find a precise entry as momentum begins to shift back in the direction of the primary trend. You can set alerts on the oscillator's zero-line for early warnings of a sentiment shift.
As a Confirmation Tool: If you have an existing trade idea, use the indicator to validate it. Does the sentiment score align with your bullish or bearish thesis? Does the momentum confirm that now is a good time to enter?
As an Idea Generation Tool: Unsure what to trade? Browse different assets and let the indicator's "Primary Trades" and "Adjusted Trade Suggestion" present you with a list of risk-assessed ideas that you can then investigate further.
Disclaimer: This is an analysis tool and should not be considered financial advice. All forms of trading involve substantial risk. You should not trade with money you cannot afford to lose. Always perform your own due diligence and use this indicator as one component of a complete trading plan.
On Balance Volume Momentum + Relative StrengthA combination of "On Balance Volume (OBV)", "Volume Oscillator" and Relative Strength indicators.
"OBV Momentum" is a trend momentum indicator, that can be used to identify strong trends and also trend changes based on volume.
High positive values indicate strong volume on the buy side, high negative values indicate strong volume on the sell side.
An increasing OBV momentum indicates a strengthening buy trend or a weakening sell trend,
decvreasing OBV Momentum indicates a strenghening sell trend or weakening buy trend.
OBV Momentum is calculated by comparing a short vs. a long moving average and plotting the difference in volume.
OBV Momentum metric is absolute volume.
The OBV Momentum values are normalized in the interval.
ANN Strategy v2 (v5, Long & Short, Fixed Inversion + MLMA)Profit Factor : 2.291
Note: The labels labels have been fixed and a Machine Learning Moving Average has been added
Note-2: Use on 1 sec chart
Settings:
Entry Threshold 0
Exit Threshold 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
Cooldown (bars) 50
Reference Timeframe 3 minutes
Use Regular Trading Hours Only Untick
Siyonacci-CheapResult:
Single line %K → colors change depending on the signal
Overbought and oversold zones are indicated by levels 80–20
Orange color appears in indecisive signals
SM/CENKER - Scalping Signal w/ Volume SpikeSM/CENKER - Scalping Signal with Volume Spike
This advanced scalping indicator combines MACD, RSI, EMA, VWAP, and volume spike detection to generate high-probability entry signals. It filters out low-quality setups by confirming entries only during volume surges.
🔍 Key Features:
✅ Volume Spike Filter: Signals are triggered only when volume exceeds 150% of the 20-bar average.
✅ Momentum Cross Confirmation: MACD crossover, RSI conditions, and price above/below EMA & VWAP are all required.
✅ Visual Background: Green or red background highlights BUY/SELL zones for quick decision-making.
✅ Clean Labels: Simple BUY/SELL labels are plotted on the chart.
✅ Optimized for Real-Time Scalping: Works effectively on 1M, 3M, 5M, and 15M charts.
📌 Recommended Timeframes & Settings:
Timeframe EMA RSI MACD Volume Spike Threshold
1 Minute 9 14 12-26-9 1.5x Avg Volume
3 Minute 9 14 12-26-9 1.5x Avg Volume
5 Minute 9 14 12-26-9 1.5x Avg Volume
15 Minute 9 14 12-26-9 1.5x Avg Volume
⚠️ Disclaimer: This script is for educational purposes only and does not constitute financial advice.
SM/CENKER - MACD + EMA 200 MTF Trend Panel📊 SM/CENKER - MACD + EMA 200 MTF Trend Panel
This advanced indicator combines the power of MACD momentum, EMA 200 trend filter, and volume confirmation to generate clean buy/sell signals, all while adapting to multi-timeframe (MTF) trend context.
🔍 Key Features:
✅ Multi-Timeframe EMA 200: Analyze higher timeframe trend while trading on your current chart.
📈 Buy/Sell Signals: Triggered only when MACD crossover aligns with the MTF trend direction and volume spike confirms the move.
🟢 Trend Coloring: EMA 200 line dynamically turns green in uptrend and red in downtrend.
🧭 Trend Panel: Top-right dashboard showing real-time trend direction and volume status.
📍 Minimalist Labels: Clean, modern BUY/SELL labels directly on the chart for easy spotting.
🕹️ Fully customizable font size and timeframe settings.
🚨 Ideal for traders looking for trend-following momentum entries with volume validation, and clean visual support.
⚠️ Disclaimer: This script is intended for educational purposes only and not for financial advice or commercial use.
Trend-Following MA Crossover with MACD ConfirmationA simple strategy with MA crossover and MACD for confirmation
Adaptive Cycle Oscillator with EMADescription of the Adaptive Cycle Oscillator with EMA Pine Script
This Pine Script, titled "Adaptive Cycle Oscillator with EMA", is a custom technical indicator designed for TradingView to help traders analyze market cycles and identify potential buy or sell opportunities. It combines an Adaptive Cycle Oscillator (ACO) with multiple Exponential Moving Averages (EMAs), displayed as colorful, wavy lines, and includes features like buy/sell signals and divergence detection. Below is a beginner-friendly explanation of how the script works, adhering to TradingView's Script Publishing Rules.
What This Indicator Does
The Adaptive Cycle Oscillator with EMA helps you:
Visualize market cycles using an oscillator that adapts to price movements.
Track trends with seven EMAs of different lengths, plotted as a rainbow of wavy lines.
Identify potential buy or sell signals when the oscillator crosses predefined thresholds.
Spot divergences between the oscillator and price to anticipate reversals.
Use customizable settings to adjust the indicator to your trading style.
Note: This is a technical analysis tool and does not guarantee profits. Always combine it with other analysis methods and practice risk management.
Step-by-Step Explanation for New Users
1. Understanding the Indicator
Adaptive Cycle Oscillator (ACO): The ACO analyzes price data (based on high, low, and close prices, or HLC3) to detect market cycles. It smooths price movements to create an oscillator that swings between overbought and oversold levels.
EMAs: Seven EMAs of different lengths are applied to the ACO and scaled based on the market's dominant cycle. These EMAs are plotted as colorful, wavy lines to show trend direction.
Buy/Sell Signals: The script generates signals when the ACO crosses above or below user-defined thresholds, indicating potential entry or exit points.
Divergence Detection: The script identifies bullish or bearish divergences between the ACO and the fastest EMA, which may signal potential reversals.
Visual Style: The indicator uses a rainbow of seven colors (red, orange, yellow, green, blue, indigo, violet) for the EMAs, with wavy lines for a unique visual effect. Static levels (zero, overbought, oversold) are also wavy for consistency.
2. How to Add the Indicator to Your Chart
Open TradingView and load the chart of any asset (e.g., stock, forex, crypto).
Click on the Indicators button at the top of the chart.
Search for "Adaptive Cycle Oscillator with EMA" (or paste the script into TradingView’s Pine Editor if you have access to it).
Click to add the indicator to your chart. It will appear in a separate panel below the price chart.
3. Customizing the Indicator
The script offers several input options to tailor it to your needs:
Base Cycle Length (Default: 20): Sets the initial period for calculating the dominant cycle. Higher values make the indicator slower; lower values make it more sensitive.
Alpha Smoothing (Default: 0.07): Controls how much the ACO smooths price data. Smaller values produce smoother results.
Show Buy/Sell Signals (Default: True): Toggle to display green triangles (buy) and red triangles (sell) on the chart.
Threshold (Default: 0.0): Defines overbought (above threshold) and oversold (below threshold) levels. Adjust to widen or narrow signal zones.
EMA Base Length (Default: 10): Sets the starting length for the fastest EMA. Other EMAs are incrementally longer (12, 14, 16, etc.).
Divergence Lookback (Default: 14): Determines how far back the script looks to detect divergences.
To adjust these:
Right-click the indicator on your chart and select Settings.
Modify the inputs in the pop-up window.
Click OK to apply changes.
4. Reading the Indicator
Oscillator and EMAs: The ACO and seven EMAs are plotted in a separate panel. The EMAs (colored lines) move in a wavy pattern:
Red (fastest) to Violet (slowest) represent different response speeds.
When the faster EMAs (e.g., red, orange) are above slower ones (e.g., blue, violet), it suggests bullish momentum, and vice versa.
Zero Line: A gray wavy line at zero acts as a neutral level. The ACO above zero indicates bullish conditions; below zero indicates bearish conditions.
Overbought/Oversold Lines: Red (overbought) and green (oversold) wavy lines mark threshold levels. Extreme ACO values near these lines may suggest reversals.
Buy/Sell Signals:
Green Triangle (Bottom): Appears when the ACO crosses above the oversold threshold, suggesting a potential buy.
Red Triangle (Top): Appears when the ACO crosses below the overbought threshold, suggesting a potential sell.
Divergences:
Green Triangle (Bottom): Indicates a bullish divergence (price makes a lower low, but the EMA makes a higher low), hinting at a potential upward reversal.
Red Triangle (Top): Indicates a bearish divergence (price makes a higher high, but the EMA makes a lower high), hinting at a potential downward reversal.
5. Using Alerts
You can set alerts for key events:
Right-click the indicator and select Add Alert.
Choose a condition (e.g., "ACO Buy Signal", "Bullish Divergence").
Configure the alert settings (e.g., notify via email, app, or pop-up).
Click Create to activate the alert.
Available alert conditions:
ACO Buy Signal: When the ACO crosses above the oversold threshold.
ACO Sell Signal: When the ACO crosses below the overbought threshold.
Bullish Divergence: When a potential upward reversal is detected.
Bearish Divergence: When a potential downward reversal is detected.
6. Tips for Using the Indicator
Combine with Other Tools: Use the indicator alongside support/resistance levels, candlestick patterns, or other indicators (e.g., RSI, MACD) for confirmation.
Test on Different Timeframes: The indicator works on any timeframe (e.g., 1-minute, daily). Shorter timeframes may produce more signals but with more noise.
Practice Risk Management: Never rely solely on this indicator. Set stop-losses and position sizes to manage risk.
Backtest First: Use TradingView’s Strategy Tester (if you convert the script to a strategy) to evaluate performance on historical data.
Compliance with TradingView’s Script Publishing Rules
This description adheres to TradingView’s Script Publishing Rules (as outlined in the provided link):
No Performance Claims: The description avoids promising profits or specific results, emphasizing that the indicator is a tool for analysis.
Clear Instructions: It provides step-by-step guidance for adding, customizing, and using the indicator.
Risk Disclaimer: It notes that trading involves risks and the indicator should be used with other analysis methods.
No Misleading Terms: Terms like “buy” and “sell” are used to describe signals, not guaranteed actions.
Transparency: The description explains the indicator’s components (ACO, EMAs, signals, divergences) without exaggerating its capabilities.
No External Links: The description avoids linking to external resources or soliciting users.
Educational Tone: It focuses on educating users about the indicator’s functionality.
Limitations
Not a Standalone System: The indicator is not a complete trading strategy. It provides insights but requires additional analysis.
Lagging Nature: As with most oscillators and EMAs, signals may lag behind price movements, especially in fast markets.
False Signals: Signals and divergences may not always lead to successful trades, particularly in choppy markets.
Market Dependency: Performance varies across assets and market conditions (e.g., trending vs. ranging markets).
ANN Strategy v2 (Optimized for 1s)Profit Factor : 3.754
Note: The labels are reversed, however the strategy works (correct if necessary)
Note-2: Use on 1 sec chart
Settings:
Entry Threshold 0.000000000000000000000000000000000000000000000000000000001
Exit Threshold 0.000000000000000000000000000000000000000000000000000000001
Cooldown (bars) 10
Reference Timeframe 15 sec
Min ATR (Volatility Filter) 0.02
Use Session Filter Untick
dōjōwap 🥋 2.0current session vwap
pdwap
pwwap
pmwap
twap
all in one
not financial advice
say no to drugs
MM + MACD [RSI Filter]MM + MACD Trend Follower with RSI Filter
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
The MM + MACD Trend Follower with RSI Filter is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This tool combines the power of Moving Averages (MA), the MACD Histogram, and a visual RSI-based filter to validate both trend direction and timing for entries. Its goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
Trend Gauge [BullByte]Trend Gauge
Summary
A multi-factor trend detection indicator that aggregates EMA alignment, VWMA momentum scaling, volume spikes, ATR breakout strength, higher-timeframe confirmation, ADX-based regime filtering, and RSI pivot-divergence penalty into one normalized trend score. It also provides a confidence meter, a Δ Score momentum histogram, divergence highlights, and a compact, scalable dashboard for at-a-glance status.
________________________________________
## 1. Purpose of the Indicator
Why this was built
Traders often monitor several indicators in parallel - EMAs, volume signals, volatility breakouts, higher-timeframe trends, ADX readings, divergence alerts, etc., which can be cumbersome and sometimes contradictory. The “Trend Gauge” indicator was created to consolidate these complementary checks into a single, normalized score that reflects the prevailing market bias (bullish, bearish, or neutral) and its strength. By combining multiple inputs with an adaptive regime filter, scaling contributions by magnitude, and penalizing weakening signals (divergence), this tool aims to reduce noise, highlight genuine trend opportunities, and warn when momentum fades.
Key Design Goals
Signal Aggregation
Merged trend-following signals (EMA crossover, ATR breakout, higher-timeframe confirmation) and momentum signals (VWMA thrust, volume spikes) into a unified score that reflects directional bias more holistically.
Market Regime Awareness
Implemented an ADX-style filter to distinguish between trending and ranging markets, reducing the influence of trend signals during sideways phases to avoid false breakouts.
Magnitude-Based Scaling
Replaced binary contributions with scaled inputs: VWMA thrust and ATR breakout are weighted relative to recent averages, allowing for more nuanced score adjustments based on signal strength.
Momentum Divergence Penalty
Integrated pivot-based RSI divergence detection to slightly reduce the overall score when early signs of momentum weakening are detected, improving risk-awareness in entries.
Confidence Transparency
Added a live confidence metric that shows what percentage of enabled sub-indicators currently agree with the overall bias, making the scoring system more interpretable.
Momentum Acceleration Visualization
Plotted the change in score (Δ Score) as a histogram bar-to-bar, highlighting whether momentum is increasing, flattening, or reversing, aiding in more timely decision-making.
Compact Informational Dashboard
Presented a clean, scalable dashboard that displays each component’s status, the final score, confidence %, detected regime (Trending/Ranging), and a labeled strength gauge for quick visual assessment.
________________________________________
## 2. Why a Trader Should Use It
Main benefits and use cases
1. Unified View: Rather than juggling multiple windows or panels, this indicator delivers a single score synthesizing diverse signals.
2. Regime Filtering: In ranging markets, trend signals often generate false entries. The ADX-based regime filter automatically down-weights trend-following components, helping you avoid chasing false breakouts.
3. Nuanced Momentum & Volatility: VWMA and ATR breakout contributions are normalized by recent averages, so strong moves register strongly while smaller fluctuations are de-emphasized.
4. Early Warning of Weakening: Pivot-based RSI divergence is detected and used to slightly reduce the score when price/momentum diverges, giving a cautionary signal before a full reversal.
5. Confidence Meter: See at a glance how many sub-indicators align with the aggregated bias (e.g., “80% confidence” means 4 out of 5 components agree ). This transparency avoids black-box decisions.
6. Trend Acceleration/Deceleration View: The Δ Score histogram visualizes whether the aggregated score is rising (accelerating trend) or falling (momentum fading), supplementing the main oscillator.
7. Compact Dashboard: A corner table lists each check’s status (“Bull”, “Bear”, “Flat” or “Disabled”), plus overall Score, Confidence %, Regime, Trend Strength label, and a gauge bar. Users can scale text size (Normal, Small, Tiny) without removing elements, so the full picture remains visible even in compact layouts.
8. Customizable & Transparent: All components can be enabled/disabled and parameterized (lengths, thresholds, weights). The full Pine code is open and well-commented, letting users inspect or adapt the logic.
9. Alert-ready: Built-in alert conditions fire when the score crosses weak thresholds to bullish/bearish or returns to neutral, enabling timely notifications.
________________________________________
## 3. Component Rationale (“Why These Specific Indicators?”)
Each sub-component was chosen because it adds complementary information about trend or momentum:
1. EMA Cross
o Basic trend measure: compares a faster EMA vs. a slower EMA. Quickly reflects trend shifts but by itself can whipsaw in sideways markets.
2. VWMA Momentum
o Volume-weighted moving average change indicates momentum with volume context. By normalizing (dividing by a recent average absolute change), we capture the strength of momentum relative to recent history. This scaling prevents tiny moves from dominating and highlights genuinely strong momentum.
3. Volume Spikes
o Sudden jumps in volume combined with price movement often accompany stronger moves or reversals. A binary detection (+1 for bullish spike, -1 for bearish spike) flags high-conviction bars.
4. ATR Breakout
o Detects price breaking beyond recent highs/lows by a multiple of ATR. Measures breakout strength by how far beyond the threshold price moves relative to ATR, capped to avoid extreme outliers. This gives a volatility-contextual trend signal.
5. Higher-Timeframe EMA Alignment
o Confirms whether the shorter-term trend aligns with a higher timeframe trend. Uses request.security with lookahead_off to avoid future data. When multiple timeframes agree, confidence in direction increases.
6. ADX Regime Filter (Manual Calculation)
o Computes directional movement (+DM/–DM), smoothes via RMA, computes DI+ and DI–, then a DX and ADX-like value. If ADX ≥ threshold, market is “Trending” and trend components carry full weight; if ADX < threshold, “Ranging” mode applies a configurable weight multiplier (e.g., 0.5) to trend-based contributions, reducing false signals in sideways conditions. Volume spikes remain binary (optional behavior; can be adjusted if desired).
7. RSI Pivot-Divergence Penalty
o Uses ta.pivothigh / ta.pivotlow with a lookback to detect pivot highs/lows on price and corresponding RSI values. When price makes a higher high but RSI makes a lower high (bearish divergence), or price makes a lower low but RSI makes a higher low (bullish divergence), a divergence signal is set. Rather than flipping the trend outright, the indicator subtracts (or adds) a small penalty (configurable) from the aggregated score if it would weaken the current bias. This subtle adjustment warns of weakening momentum without overreacting to noise.
8. Confidence Meter
o Counts how many enabled components currently agree in direction with the aggregated score (i.e., component sign × score sign > 0). Displays this as a percentage. A high percentage indicates strong corroboration; a low percentage warns of mixed signals.
9. Δ Score Momentum View
o Plots the bar-to-bar change in the aggregated score (delta_score = score - score ) as a histogram. When positive, bars are drawn in green above zero; when negative, bars are drawn in red below zero. This reveals acceleration (rising Δ) or deceleration (falling Δ), supplementing the main oscillator.
10. Dashboard
• A table in the indicator pane’s top-right with 11 rows:
1. EMA Cross status
2. VWMA Momentum status
3. Volume Spike status
4. ATR Breakout status
5. Higher-Timeframe Trend status
6. Score (numeric)
7. Confidence %
8. Regime (“Trending” or “Ranging”)
9. Trend Strength label (e.g., “Weak Bullish Trend”, “Strong Bearish Trend”)
10. Gauge bar visually representing score magnitude
• All rows always present; size_opt (Normal, Small, Tiny) only changes text size via text_size, not which elements appear. This ensures full transparency.
________________________________________
## 4. What Makes This Indicator Stand Out
• Regime-Weighted Multi-Factor Score: Trend and momentum signals are adaptively weighted by market regime (trending vs. ranging) , reducing false signals.
• Magnitude Scaling: VWMA and ATR breakout contributions are normalized by recent average momentum or ATR, giving finer gradation compared to simple ±1.
• Integrated Divergence Penalty: Divergence directly adjusts the aggregated score rather than appearing as a separate subplot; this influences alerts and trend labeling in real time.
• Confidence Meter: Shows the percentage of sub-signals in agreement, providing transparency and preventing blind trust in a single metric.
• Δ Score Histogram Momentum View: A histogram highlights acceleration or deceleration of the aggregated trend score, helping detect shifts early.
• Flexible Dashboard: Always-visible component statuses and summary metrics in one place; text size scaling keeps the full picture available in cramped layouts.
• Lookahead-Safe HTF Confirmation: Uses lookahead_off so no future data is accessed from higher timeframes, avoiding repaint bias.
• Repaint Transparency: Divergence detection uses pivot functions that inherently confirm only after lookback bars; description documents this lag so users understand how and when divergence labels appear.
• Open-Source & Educational: Full, well-commented Pine v6 code is provided; users can learn from its structure: manual ADX computation, conditional plotting with series = show ? value : na, efficient use of table.new in barstate.islast, and grouped inputs with tooltips.
• Compliance-Conscious: All plots have descriptive titles; inputs use clear names; no unnamed generic “Plot” entries; manual ADX uses RMA; all request.security calls use lookahead_off. Code comments mention repaint behavior and limitations.
________________________________________
## 5. Recommended Timeframes & Tuning
• Any Timeframe: The indicator works on small (e.g., 1m) to large (daily, weekly) timeframes. However:
o On very low timeframes (<1m or tick charts), noise may produce frequent whipsaws. Consider increasing smoothing lengths, disabling certain components (e.g., volume spike if volume data noisy), or using a larger pivot lookback for divergence.
o On higher timeframes (daily, weekly), consider longer lookbacks for ATR breakout or divergence, and set Higher-Timeframe trend appropriately (e.g., 4H HTF when on 5 Min chart).
• Defaults & Experimentation: Default input values are chosen to be balanced for many liquid markets. Users should test with replay or historical analysis on their symbol/timeframe and adjust:
o ADX threshold (e.g., 20–30) based on instrument volatility.
o VWMA and ATR scaling lengths to match average volatility cycles.
o Pivot lookback for divergence: shorter for faster markets, longer for slower ones.
• Combining with Other Analysis: Use in conjunction with price action, support/resistance, candlestick patterns, order flow, or other tools as desired. The aggregated score and alerts can guide attention but should not be the sole decision-factor.
________________________________________
## 6. How Scoring and Logic Works (Step-by-Step)
1. Compute Sub-Scores
o EMA Cross: Evaluate fast EMA > slow EMA ? +1 : fast EMA < slow EMA ? -1 : 0.
o VWMA Momentum: Calculate vwma = ta.vwma(close, length), then vwma_mom = vwma - vwma . Normalize: divide by recent average absolute momentum (e.g., ta.sma(abs(vwma_mom), lookback)), clip to .
o Volume Spike: Compute vol_SMA = ta.sma(volume, len). If volume > vol_SMA * multiplier AND price moved up ≥ threshold%, assign +1; if moved down ≥ threshold%, assign -1; else 0.
o ATR Breakout: Determine recent high/low over lookback. If close > high + ATR*mult, compute distance = close - (high + ATR*mult), normalize by ATR, cap at a configured maximum. Assign positive contribution. Similarly for bearish breakout below low.
o Higher-Timeframe Trend: Use request.security(..., lookahead=barmerge.lookahead_off) to fetch HTF EMAs; assign +1 or -1 based on alignment.
2. ADX Regime Weighting
o Compute manual ADX: directional movements (+DM, –DM), smoothed via RMA, DI+ and DI–, then DX and ADX via RMA. If ADX ≥ threshold, market is considered “Trending”; otherwise “Ranging.”
o If trending, trend-based contributions (EMA, VWMA, ATR, HTF) use full weight = 1.0. If ranging, use weight = ranging_weight (e.g., 0.5) to down-weight them. Volume spike stays binary ±1 (optional to change if desired).
3. Aggregate Raw Score
o Sum weighted contributions of all enabled components. Count the number of enabled components; if zero, default count = 1 to avoid division by zero.
4. Divergence Penalty
o Detect pivot highs/lows on price and corresponding RSI values, using a lookback. When price and RSI diverge (bearish or bullish divergence), check if current raw score is in the opposing direction:
If bearish divergence (price higher high, RSI lower high) and raw score currently positive, subtract a penalty (e.g., 0.5).
If bullish divergence (price lower low, RSI higher low) and raw score currently negative, add a penalty.
o This reduces score magnitude to reflect weakening momentum, without flipping the trend outright.
5. Normalize and Smooth
o Normalized score = (raw_score / number_of_enabled_components) * 100. This yields a roughly range.
o Optional EMA smoothing of this normalized score to reduce noise.
6. Interpretation
o Sign: >0 = net bullish bias; <0 = net bearish bias; near zero = neutral.
o Magnitude Zones: Compare |score| to thresholds (Weak, Medium, Strong) to label trend strength (e.g., “Weak Bullish Trend”, “Medium Bearish Trend”, “Strong Bullish Trend”).
o Δ Score Histogram: The histogram bars from zero show change from previous bar’s score; positive bars indicate acceleration, negative bars indicate deceleration.
o Confidence: Percentage of sub-indicators aligned with the score’s sign.
o Regime: Indicates whether trend-based signals are fully weighted or down-weighted.
________________________________________
## 7. Oscillator Plot & Visualization: How to Read It
Main Score Line & Area
The oscillator plots the aggregated score as a line, with colored fill: green above zero for bullish area, red below zero for bearish area. Horizontal reference lines at ±Weak, ±Medium, and ±Strong thresholds mark zones: crossing above +Weak suggests beginning of bullish bias, above +Medium for moderate strength, above +Strong for strong trend; similarly for bearish below negative thresholds.
Δ Score Histogram
If enabled, a histogram shows score - score . When positive, bars appear in green above zero, indicating accelerating bullish momentum; when negative, bars appear in red below zero, indicating decelerating or reversing momentum. The height of each bar reflects the magnitude of change in the aggregated score from the prior bar.
Divergence Highlight Fill
If enabled, when a pivot-based divergence is confirmed:
• Bullish Divergence : fill the area below zero down to –Weak threshold in green, signaling potential reversal from bearish to bullish.
• Bearish Divergence : fill the area above zero up to +Weak threshold in red, signaling potential reversal from bullish to bearish.
These fills appear with a lag equal to pivot lookback (the number of bars needed to confirm the pivot). They do not repaint after confirmation, but users must understand this lag.
Trend Direction Label
When score crosses above or below the Weak threshold, a small label appears near the score line reading “Bullish” or “Bearish.” If the score returns within ±Weak, the label “Neutral” appears. This helps quickly identify shifts at the moment they occur.
Dashboard Panel
In the indicator pane’s top-right, a table shows:
1. EMA Cross status: “Bull”, “Bear”, “Flat”, or “Disabled”
2. VWMA Momentum status: similarly
3. Volume Spike status: “Bull”, “Bear”, “No”, or “Disabled”
4. ATR Breakout status: “Bull”, “Bear”, “No”, or “Disabled”
5. Higher-Timeframe Trend status: “Bull”, “Bear”, “Flat”, or “Disabled”
6. Score: numeric value (rounded)
7. Confidence: e.g., “80%” (colored: green for high, amber for medium, red for low)
8. Regime: “Trending” or “Ranging” (colored accordingly)
9. Trend Strength: textual label based on magnitude (e.g., “Medium Bullish Trend”)
10. Gauge: a bar of blocks representing |score|/100
All rows remain visible at all times; changing Dashboard Size only scales text size (Normal, Small, Tiny).
________________________________________
## 8. Example Usage (Illustrative Scenario)
Example: BTCUSD 5 Min
1. Setup: Add “Trend Gauge ” to your BTCUSD 5 Min chart. Defaults: EMAs (8/21), VWMA 14 with lookback 3, volume spike settings, ATR breakout 14/5, HTF = 5m (or adjust to 4H if preferred), ADX threshold 25, ranging weight 0.5, divergence RSI length 14 pivot lookback 5, penalty 0.5, smoothing length 3, thresholds Weak=20, Medium=50, Strong=80. Dashboard Size = Small.
2. Trend Onset: At some point, price breaks above recent high by ATR multiple, volume spikes upward, faster EMA crosses above slower EMA, HTF EMA also bullish, and ADX (manual) ≥ threshold → aggregated score rises above +20 (Weak threshold) into +Medium zone. Dashboard shows “Bull” for EMA, VWMA, Vol Spike, ATR, HTF; Score ~+60–+70; Confidence ~100%; Regime “Trending”; Trend Strength “Medium Bullish Trend”; Gauge ~6–7 blocks. Δ Score histogram bars are green and rising, indicating accelerating bullish momentum. Trader notes the alignment.
3. Divergence Warning: Later, price makes a slightly higher high but RSI fails to confirm (lower RSI high). Pivot lookback completes; the indicator highlights a bearish divergence fill above zero and subtracts a small penalty from the score, causing score to stall or retrace slightly. Dashboard still bullish but score dips toward +Weak. This warns the trader to tighten stops or take partial profits.
4. Trend Weakens: Score eventually crosses below +Weak back into neutral; a “Neutral” label appears, and a “Neutral Trend” alert fires if enabled. Trader exits or avoids new long entries. If score subsequently crosses below –Weak, a “Bearish” label and alert occur.
5. Customization: If the trader finds VWMA noise too frequent on this instrument, they may disable VWMA or increase lookback. If ATR breakouts are too rare, adjust ATR length or multiplier. If ADX threshold seems off, tune threshold. All these adjustments are explained in Inputs section.
6. Visualization: The screenshot shows the main score oscillator with colored areas, reference lines at ±20/50/80, Δ Score histogram bars below/above zero, divergence fill highlighting potential reversal, and the dashboard table in the top-right.
________________________________________
## 9. Inputs Explanation
A concise yet clear summary of inputs helps users understand and adjust:
1. General Settings
• Theme (Dark/Light): Choose background-appropriate colors for the indicator pane.
• Dashboard Size (Normal/Small/Tiny): Scales text size only; all dashboard elements remain visible.
2. Indicator Settings
• Enable EMA Cross: Toggle on/off basic EMA alignment check.
o Fast EMA Length and Slow EMA Length: Periods for EMAs.
• Enable VWMA Momentum: Toggle VWMA momentum check.
o VWMA Length: Period for VWMA.
o VWMA Momentum Lookback: Bars to compare VWMA to measure momentum.
• Enable Volume Spike: Toggle volume spike detection.
o Volume SMA Length: Period to compute average volume.
o Volume Spike Multiplier: How many times above average volume qualifies as spike.
o Min Price Move (%): Minimum percent change in price during spike to qualify as bullish or bearish.
• Enable ATR Breakout: Toggle ATR breakout detection.
o ATR Length: Period for ATR.
o Breakout Lookback: Bars to look back for recent highs/lows.
o ATR Multiplier: Multiplier for breakout threshold.
• Enable Higher Timeframe Trend: Toggle HTF EMA alignment.
o Higher Timeframe: E.g., “5” for 5-minute when on 1-minute chart, or “60” for 5 Min when on 15m, etc. Uses lookahead_off.
• Enable ADX Regime Filter: Toggles regime-based weighting.
o ADX Length: Period for manual ADX calculation.
o ADX Threshold: Value above which market considered trending.
o Ranging Weight Multiplier: Weight applied to trend components when ADX < threshold (e.g., 0.5).
• Scale VWMA Momentum: Toggle normalization of VWMA momentum magnitude.
o VWMA Mom Scale Lookback: Period for average absolute VWMA momentum.
• Scale ATR Breakout Strength: Toggle normalization of breakout distance by ATR.
o ATR Scale Cap: Maximum multiple of ATR used for breakout strength.
• Enable Price-RSI Divergence: Toggle divergence detection.
o RSI Length for Divergence: Period for RSI.
o Pivot Lookback for Divergence: Bars on each side to identify pivot high/low.
o Divergence Penalty: Amount to subtract/add to score when divergence detected (e.g., 0.5).
3. Score Settings
• Smooth Score: Toggle EMA smoothing of normalized score.
• Score Smoothing Length: Period for smoothing EMA.
• Weak Threshold: Absolute score value under which trend is considered weak or neutral.
• Medium Threshold: Score above Weak but below Medium is moderate.
• Strong Threshold: Score above this indicates strong trend.
4. Visualization Settings
• Show Δ Score Histogram: Toggle display of the bar-to-bar change in score as a histogram. Default true.
• Show Divergence Fill: Toggle background fill highlighting confirmed divergences. Default true.
Each input has a tooltip in the code.
________________________________________
## 10. Limitations, Repaint Notes, and Disclaimers
10.1. Repaint & Lag Considerations
• Pivot-Based Divergence Lag: The divergence detection uses ta.pivothigh / ta.pivotlow with a specified lookback. By design, a pivot is only confirmed after the lookback number of bars. As a result:
o Divergence labels or fills appear with a delay equal to the pivot lookback.
o Once the pivot is confirmed and the divergence is detected, the fill/label does not repaint thereafter, but you must understand and accept this lag.
o Users should not treat divergence highlights as predictive signals without additional confirmation, because they appear after the pivot has fully formed.
• Higher-Timeframe EMA Alignment: Uses request.security(..., lookahead=barmerge.lookahead_off), so no future data from the higher timeframe is used. This avoids lookahead bias and ensures signals are based only on completed higher-timeframe bars.
• No Future Data: All calculations are designed to avoid using future information. For example, manual ADX uses RMA on past data; security calls use lookahead_off.
10.2. Market & Noise Considerations
• In very choppy or low-liquidity markets, some components (e.g., volume spikes or VWMA momentum) may be noisy. Users can disable or adjust those components’ parameters.
• On extremely low timeframes, noise may dominate; consider smoothing lengths or disabling certain features.
• On very high timeframes, pivots and breakouts occur less frequently; adjust lookbacks accordingly to avoid sparse signals.
10.3. Not a Standalone Trading System
• This is an indicator, not a complete trading strategy. It provides signals and context but does not manage entries, exits, position sizing, or risk management.
• Users must combine it with their own analysis, money management, and confirmations (e.g., price patterns, support/resistance, fundamental context).
• No guarantees: past behavior does not guarantee future performance.
10.4. Disclaimers
• Educational Purposes Only: The script is provided as-is for educational and informational purposes. It does not constitute financial, investment, or trading advice.
• Use at Your Own Risk: Trading involves risk of loss. Users should thoroughly test and use proper risk management.
• No Guarantees: The author is not responsible for trading outcomes based on this indicator.
• License: Published under Mozilla Public License 2.0; code is open for viewing and modification under MPL terms.
________________________________________
## 11. Alerts
• The indicator defines three alert conditions:
1. Bullish Trend: when the aggregated score crosses above the Weak threshold.
2. Bearish Trend: when the score crosses below the negative Weak threshold.
3. Neutral Trend: when the score returns within ±Weak after being outside.
Good luck
– BullByte