Lever SWMA 1.0// © @lever
//@version=6
indicator("Lever SWMA 1.0", shorttitle="Lever SWMA", overlay=true, max_bars_back=5000, max_labels_count=500)
// I. Inputs
priceSource = input.source(close, title="Price Source")
fastPeriod = input.int(8, title="Fast SWMA Period")
slowPeriod = input.int(21, title="Slow SWMA Period")
volumeFactor = input.float(1.2, title="Volume Multiplier")
rsiOversold = input.int(40, title="RSI Oversold Level")
rsiOverbought = input.int(70, title="RSI Overbought Level")
// II. SWMA Calculation
var float PI = math.pi
swma(src, len) =>
float num = 0.0
float den = 0.0
for i = 1 to len
float w = math.sin(i * PI / len)
num += w * nz(src )
den += w
den > 0 ? num / den : na
fast_swma = swma(priceSource, fastPeriod)
slow_swma = swma(priceSource, slowPeriod)
// III. Other Indicators
avg_vol = ta.sma(volume, 20)
rsi_val = ta.rsi(close, 14)
// IV. Filtered Signal Logic
buyFilt = ta.crossover(fast_swma, slow_swma) and volume > avg_vol * volumeFactor and rsi_val < rsiOversold
sellFilt = ta.crossunder(fast_swma, slow_swma) and volume > avg_vol * volumeFactor and rsi_val > rsiOverbought
// V. Plot Lines
plot(fast_swma, title="Fast SWMA", color=color.yellow, linewidth=2)
plot(slow_swma, title="Slow SWMA", color=color.fuchsia, linewidth=2)
// VI. Plotshapes for Filtered Signals
plotshape(buyFilt, title="Buy Filtered", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.new(color.green,20), text="BUY")
plotshape(sellFilt, title="Sell Filtered", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.new(color.red,20), text="SELL")
// VII. Alerts
alertcondition(buyFilt, title="Long Entry", message="BUY: Filtered Signal")
alertcondition(sellFilt, title="Short Entry", message="SELL: Filtered Signal")
Wskaźniki i strategie
L3 Twin Range Filter Pro Strategy
交易信号定义 :沿用了原指标中的买卖信号逻辑,即当收盘价上穿趋势范围过滤器时生成买入信号,下穿时生成卖出信号。
交易执行 :使用 strategy.entry 函数根据买卖信号执行相应的买入和卖出操作。
标签绘制 :保留了原指标中在图表上标记买卖信号的功能,帮助用户直观地识别交易机会。
图表元素绘制 :继续绘制趋势范围过滤器、价格点以及填充向上和向下趋势的背景颜色,增强图表的可视化效果。
Trading Signal Definition:
Carry over the original indicator's logic. A buy signal is triggered when the closing price crosses above the trend range filter, and a sell signal is triggered when it crosses below.
Trade Execution:
Use the strategy.entry function to perform buy and sell operations based on trading signals.
Label Plotting:
Retain the function of marking buy/sell signals on the chart from the original indicator to help users visually identify trading chances.
Chart Elements Plotting:
Continue plotting the trend range filter, price points, and filling the background colors for upward and downward trends to enhance the chart's visual representation.
GeeksDoByte/Rayen Kamta ORB Clean
This script is an advanced, all-in-one technical analysis tool designed primarily for intraday traders who use the Opening Range Breakout (ORB) strategy. Its main purpose is to automatically identify the key high and low levels established at the market open, provide clear trading signals based on breakouts, and keep the chart exceptionally clean by focusing only on the current trading day's action.
Here is a breakdown of what it does:
Core Functionality
Customizable Opening Range Breakout (ORB)
The script automatically calculates and draws the high and low of the market's opening period.
You can choose a standard period (like the first 5, 15, or 30 minutes) or define a completely custom time session (e.g., "0930-1030") in the settings.
Breakout Signals with Volume Confirmation
When the price closes above the ORB High or below the ORB Low, a distinct triangle arrow appears, signaling a potential trade entry.
To filter out weak signals or "fakeouts," these breakout signals can be qualified by volume. You can require the volume on the breakout candle to be a certain multiple (e.g., 1.5x) of the recent average volume, indicating strong conviction behind the move.
RSI Momentum Signals
A built-in Relative Strength Index (RSI) provides additional momentum context.
The script generates its own unique circle-shaped signals when the RSI crosses your defined upper or lower thresholds, helping to identify overbought or oversold conditions that might support or contradict a breakout trade.
Automatic Profit Targets
When the opening range is established, the script automatically projects a 1:1 risk/reward profit target.
It calculates the height of the opening range and projects that distance from the high (for a long target) and from the low (for a short target).
Key UI & UX Features (User Interface & Experience)
"Current Day Only" by Default
This is the script's most important feature. To keep your chart clean and prevent "indicator clutter," all drawings (lines, zones, targets, signals) are automatically cleared at the start of each new trading day. This ensures you are only ever looking at today's relevant levels.
Optional Historical View
If you need to analyze past performance or see how the indicator behaved on previous days, there is a simple checkbox in the settings ("Show Historical Drawings") to toggle the visibility of all past signals.
Enhanced Visuals
ORB Zone: The opening range itself is drawn as a distinct, shaded gray box.
Extended Lines: Dashed lines for the high (green) and low (red) extend from this zone across your screen for the rest of the day.
Clean Targets: Profit targets are not messy plots; they are clean, dotted horizontal lines with a "T1" label, making them easy to see without cluttering price action.
Modern Info Panel
A professional, easy-to-read panel in the bottom-right corner provides critical data at a glance:
ORB High & Low: The exact price levels.
Range Size: The size of the opening range in both points (e.g., $1.50) and as a percentage (e.g., 0.75%).
Live Status: A dynamic field that tells you if the current price is in a "Breakout Up," "Breakout Down," or still "Inside Range."
How to Use & Configure
All features can be turned on or off in the indicator's settings menu (the gear icon).
The settings are organized into logical groups like "ORB," "Confirmation & Signals," and "RSI" for easy navigation.
Every setting includes a tooltip explaining what it does.
Alerts
You can set up proactive alerts for key events so you don't have to watch the chart all day. Alerts can be created for:
ORB Established: Notifies you when the day's range is set.
ORB Confirmed Breakout Up/Down: Notifies you when a volume-confirmed breakout occurs.
RSI Buy/Sell Signal: Notifies you when an RSI momentum signal triggers.
In summary, this script consolidates multiple essential trading concepts into a single, clean, and highly configurable indicator, perfect for traders looking to systematize their approach to opening range strategies.
Smart OBsSmart Order Block Indicator with Mitigation Detection
This indicator identifies bullish and bearish order blocks on the chart using a price action-based logic. For a bearish order block, it detects a candle whose high is higher than the highs of the candles immediately before and after it, followed by a candle after the next one whose high is below the low of the order block candle. Conversely, a bullish order block is identified where a candle’s low is lower than the lows of its neighboring candles and the subsequent candle after next has a low above the high of the order block candle. This method helps to spot potential areas where institutional buying or selling occurred.
Once identified, the indicator plots rectangular zones on the chart highlighting these order blocks, allowing traders to visualize key supply and demand areas. The zones extend forward by a configurable number of bars to anticipate potential future price reactions. Additionally, the indicator checks if the order block zone has been “mitigated” or “consumed” by current price action, meaning price has retraced into or through the zone, potentially weakening its strength. Mitigated zones are not replotted, keeping the chart cleaner.
This tool assists traders in spotting high-probability reversal or continuation zones, aiding in entry, stop-loss, and take-profit placement decisions by visually marking institutional order flow areas.
Ehlers Three Pole Butterworth Filter Strategy指标概述
这是一个基于 Ehlers 三极巴特沃斯滤波器的指标,用于平滑价格数据,识别潜在趋势。
它还结合了交叉信号和发散检测来生成交易信号。
核心逻辑
巴特沃斯滤波器计算 :通过 calculateButterworthFilter 函数计算滤波器值和触发值。这些值用于识别价格趋势。
交叉信号 :当滤波器值与触发值交叉时,生成买卖信号。具体来说,当滤波器值上穿触发值时生成买入信号,下穿时生成卖出信号。
发散检测 :指标还检测常规和隐藏的多头和空头发散。发散是指价格走势与指标走势不一致的情况,可能预示着趋势反转。
交易逻辑
买入信号 :当出现以下情况时,生成买入信号:
滤波器值上穿触发值。
出现常规或隐藏的多头发散。
卖出信号 :当出现以下情况时,生成卖出信号:
滤波器值下穿触发值。
出现常规或隐藏的空头发散。
细节分析
该指标使用 hl2(最高价和最低价的平均值)作为默认价格输入,但用户可以根据需要调整。
periodInput 参数控制滤波器的周期,影响指标的灵敏度。
使用 label 函数在图表上标记买卖信号,方便用户快速识别。
alertcondition 函数用于设置警报,当满足特定条件时通知用户。
Indicator Overview
This is an indicator based on the Ehlers Three-Pole Butterworth Filter. It smooths price data to identify potential trends and combines crossover signals and divergence detection to generate trading signals.
Core Logic
Butterworth Filter Calculation :The filter and trigger values are calculated via the calculateButterworthFilter function and are used to identify price trends.
Crossover Signals :When the filter value crosses the trigger value, trading signals are generated. An upward crossover suggests a buy signal, while a downward crossover indicates a sell signal.
Divergence Detection :The indicator also detects regular and hidden bullish and bearish divergences, which occur when the price movement and the indicator movement are inconsistent, potentially signaling a trend reversal.
Trading Logic
Bullish Signal :Generated when the filter value crosses up over the trigger value, or when regular or hidden bullish divergence is detected.
Bearish Signal :Generated when the filter value crosses down under the trigger value, or when regular or hidden bearish divergence is detected.
Details
The indicator uses hl2 (the average of the high and low prices) as the default price input, but this can be adjusted by the user.
The periodInput parameter controls the filter's period, affecting its sensitivity.
The label function is used to mark buy and sell signals on the chart for quick identification.
The alertcondition function sets up alerts to notify users when specific conditions are met.
GEEKSDOBYTE X RAYEN KAMTA ORB Advanced with Signals & TargetsCME_MINI:NQ1!
This Pine Script indicator is an **Opening Range Breakout (ORB) system** for TradingView. It overlays on price charts and helps identify trade entries based on:
1. **Opening Range breakout levels**
2. **Volume confirmation**
3. **RSI-based momentum signals**
4. **Visual targets and stop losses**
5. **Optional Parabolic SAR for trend guidance**
6. **Alerts and data display table**
---
### 🔍 **Key Components and Features**
#### 🕒 **Opening Range Breakout (ORB)**
* Lets users choose the range period: `5`, `15`, `30`, or a custom session (`e.g. 0930–1030`).
* Captures the **high and low of that range**.
* Draws **dashed lines** to represent ORB High and Low.
#### 📈 **Breakout Signals**
* After the session ends, it checks for a **breakout above/below** the ORB using:
* **Price crossover**
* **Optional volume spike confirmation** (volume > 1.5× SMA of last 20 bars)
#### 🔄 **RSI Confirmation**
* Detects **bullish/bearish RSI crossovers**:
* Buy when RSI crosses **above 60**
* Sell when RSI crosses **below 49**
* Signals are filtered to avoid repetition (i.e., only once per valid setup).
#### 🎯 **Profit Targets & Stop Loss**
* Automatically calculates:
* **Target:** Equal to the ORB range added to breakout point
* **Stop:** At the opposite ORB level
* Optionally plotted if enabled.
#### 🌀 **Parabolic SAR (optional)**
* Visual overlay using customizable SAR values.
#### 🧾 **Table Display**
* In the bottom-right of the chart, shows:
* ORB period
* Current high/low values of the opening range
#### 🔔 **Alerts**
* Trigger alerts when:
* New ORB is established
* Confirmed breakouts occur
* RSI-based signals fire
---
### ⚙️ **Inputs & Customizations**
| Group | Feature | Description |
| ------------ | ------------------------- | -------------------------------------- |
| ORB | Period, Session, Timezone | Configures ORB time window |
| Confirmation | Volume spike | Adds breakout confirmation via volume |
| RSI | RSI thresholds | Adds another layer of entry validation |
| Targets | Target/Stop lines | Draws visual TP/SL levels |
| SAR | Parabolic SAR | Optional trend-following tool |
---
### 📊 Visuals
* **Breakouts:** Arrows on breakout bars.
* **RSI signals:** Tiny circles (above bar = short, below = long).
* **ORB levels:** Green (high) and red (low) dashed lines.
* **Targets & Stops:** Aqua (targets) and orange (stops) lines.
* **SAR:** Yellow dots across bars when enabled.
### ✅ Use Case
Traders can use this script to:
* Systematically identify breakout trades after the market opens
* Filter entries with volume and RSI
* Visually see where to take profit and stop out
* Get alerts for all key moments — ORB, breakouts, and momentum shifts
Failed 2 Candle Detector (Highlight)Failed 2 bar indicator. Failed two in this indicator is determined by the failed candle closing above or below the 50% level of the previous candle.
4 EMA Overlay with SignalsA simple indicator with 4 EMA's - 8 EMA, 21 EMA, 50 EMA & 200 EMA with a buy & sell indicator for when the 8 ema crosses up through 21 ema will show a buy signal and when the 8 ema crosses down the 21 ema will show a sell signal
20-Day Breakout w/ Exit Signals (No Duplicate Signals)TUrtle trader indiciator entry and exit on the 20 day breakout. i updated the previous one so there wouldn't be any duplicate signals
TKTForex_MFI confluence indicator 5 15 30Money flow index is an indicator run faster than RSI. It help trader get the entry sooner.
MohdTZ - XO Trend Scanner/EMA/ATR/Supertrend/WatermarkApply the Script:
Copy the code into TradingView’s Pine Script editor.
Save and add the indicator to your chart.
Verify Supertrend:
Look for a line that switches between green (uptrend) and red (downtrend) based on price movement relative to the Supertrend level.
It should appear alongside the 200 EMA, Slow EMA, ATR band fill, and trend scanner EMAs.
Customize Settings:
Adjust supertrend_length and supertrend_multiplier in the indicator settings to fine-tune sensitivity.
Change supertrend_color_up, supertrend_color_down, or supertrend_linewidth for visual preferences.
Modify atr_band_color if you want a different fill color for the ATR bands.
Check for Clutter:
The chart now includes multiple overlays (200 EMA, Slow EMA, ATR bands, Supertrend, Fast/Slow EMAs). If it’s too crowded, toggle i_bothEMAs to false to show only the Consolidated EMA, or adjust line widths/transparency.
Why Supertrend Wasn’t Visible Before
The original scripts didn’t include Supertrend calculations or plotting.
If you were expecting Supertrend from another indicator or script, it’s possible another indicator was disabled or not applied. This script now explicitly includes Supertrend.
Additional Notes
Chart Appearance: The Supertrend line will plot above or below the price, changing color based on trend direction. Ensure it’s visible by checking the chart’s scale and that no other indicators are overlapping.
Conflicts: If you don’t see the Supertrend, verify that no other indicators are hiding it (e.g., due to overlapping colors or chart scaling). You can disable other indicators temporarily to confirm.
Further Customization: If you want Supertrend to interact with other components (e.g., combine with EMA signals, adjust bar coloring based on Supertrend), let me know, and I can add that logic.
Debugging: If the Supertrend doesn’t appear, check the TradingView console for errors, or share a screenshot/description of your chart setup.
If you meant a specific Supertrend implementation (e.g., with unique parameters or additional features) or if you’re referring to a different issue (e.g., a specific Supertrend script you expected), please provide more details, and I’ll refine the solution. Let me know if you need help applying this or visualizing the result!
learn Supertrend parameters
Bollinger Bands
Universal Scalper: Candle OR Momentum (VWAP Optional)A universal scalping alert tool that triggers based on candle and/or momentum pattern reversals, with or without the optional VWAP proximity filter.
How to Use
To see more momentum signals:
- Set Require VWAP Proximity for Momentum Alerts? to false in the settings.
- Try shorter EMAs (8/21 or 5/20).
- Optionally, relax the RSI filter (e.g., <70 for longs, >30 for shorts).
To require VWAP for both:
- Set both toggles to true.
Debug:
Aqua/fuchsia squares = momentum signals.
Lime/orange circles = candle pattern signals.
Main triangles = overall alert.
Summary
Momentum alerts are rare when too many filters are combined.
This script lets you control if VWAP proximity is required for each alert type, and visually shows which logic is firing.
For more signals, relax filters and/or use shorter EMAs.
This will ensure you get both candle and momentum alerts, with full control over VWAP filtering and easy debugging.
MACD with DivergenceMACD indicator with Bearish/Bullish Normal Divergence
MACD indicator with Bearish/Bullish Reverse/Hidden Divergence
ES vs S&P500 Top10 Basket Spread# 🦴 ES vs S&P500 Top10 Basket Spread – Mean Reversion Strategy
This strategy implements a real-time **index arbitrage model** between the **E-mini S&P 500 futures (ES)** and a custom-constructed **S&P 500 Top-10 weighted basket**, simulating the SPX fair value using real constituent stocks.
### 📊 What It Does:
- **Builds a custom basket** using real-time prices of the 10 largest S&P 500 stocks (AAPL, MSFT, AMZN, NVDA, etc.) with approximate weights based on current SPX market cap distribution.
- **Calculates the spread** between the ES price and this basket.
- **Normalizes the spread** into a Z-score using a rolling window.
- **Enters long or short positions** in ES when the spread is significantly above/below its mean (i.e., ES is overpriced or underpriced relative to the synthetic SPX).
- **Exits** when the spread mean-reverts within a safe threshold.
### ⚙️ Parameters:
- **Z-score Entry/Exit Thresholds** – tune how aggressive the strategy is
- **Rolling Window Length** – adjust the sensitivity of spread normalization
- **Basket Weights** – fully customizable if you wish to replicate a different index structure
### ✅ Designed For:
- **1-minute ES chart**
- Futures traders looking to monitor microstructure divergence from underlying value
- Stat-arb traders interested in relative value modeling
### ⚠️ Notes:
- This script is optimized for TradingView backtesting. Actual arbitrage requires execution on both sides (long/short futures + ETF or equity basket), which is shown here from the ES side only.
- You can modify the weights or add more stocks to improve fidelity.
- TradingView supports up to ~40 `request.security()` calls – this version uses 10 stocks for speed and stability.
---
📈 Inspired by real index arbitrage used by HFT/stat-arb desks.
If this helps you, please give it a like or fork to expand!
Happy trading!
Accurate 1-Min Trend System [Dr.K.C.Prakash]Accurate 1-Min Trend System — Indicator Overview
This 1-minute trend-following system is designed to identify high-probability intraday entries using a combination of EMA-based trend direction, swing structure, and price action strength. It is optimized for option buying or scalping entries in strong directional moves.
🧠 Core Logic:
1. Trend Filter (Context Check)
Uses 50 EMA (fast) and 200 EMA (slow) to determine the market trend.
Only takes buy entries in uptrends and sell entries in downtrends.
Additional filters ensure both EMAs are rising or falling, avoiding sideways noise.
2. Swing Structure Confirmation
Uses swing high/low over a lookback period to ensure price is breaking structure favorably.
Buy: Price closes above previous swing low in an uptrend.
Sell: Price closes below previous swing high in a downtrend.
3. Candle Strength Filter
Ensures only strong bullish or bearish candles (large body relative to ATR) are used for entries.
Filters out weak or indecisive candles, increasing precision.
4. Entry Gapping
Avoids overtrading by restricting entries within a set number of bars (gapBars) since the last trade.
Prevents back-to-back signals during chop or fakeouts.
📊 Visual Components:
🔶 Orange Line: 50 EMA (short-term trend)
🟦 Teal Line: 200 EMA (long-term trend)
🟢 BUY Label: Signals a strong bullish entry
🔴 SELL Label: Signals a strong bearish entry
✅ Best Use Cases:
1-minute scalping in index options (e.g., NIFTY/BankNIFTY)
Filtering trades only in strong directional bias
Combining with manual support/resistance or higher-timeframe SMC zones
Open Interest-RSI + Funding + Fractal DivergencesIndicator — “Open Interest-RSI + Funding + Fractal Divergences”
A multi-factor oscillator that fuses Open-Interest RSI, real-time Funding-Rate data and price/OI fractal divergences.
It paints BUY/SELL arrows in its own pane and directly on the price chart, helping you spot spots where crowd positioning, leverage costs and price action contradict each other.
1 Purpose
OI-RSI – measures conviction behind position changes instead of price momentum.
Funding Rate – shows who pays to hold positions (longs → bull bias, shorts → bear bias).
Fractal Divergences – detects HH/LL in price that are not confirmed by OI-RSI.
Optional Funding filter – hides signals when funding is already extreme.
Together these elements highlight exhaustion points and potential mean-reversion trades.
2 Inputs
RSI / Divergence
RSI length – default 14.
High-OI level / Low-OI level – default 70 / 30.
Fractal period n – default 2 (swing width).
Fractals to compare – how many past swings to scan, default 3.
Max visible arrows – keeps last 50 BUY/SELL arrows for speed.
Funding Rate
mode – choose FR, Avg Premium, Premium Index, Avg Prem + PI or FR-candle.
Visual scale (×) – multiplies raw funding to fit 0-100 oscillator scale (default 10).
specify symbol – enable only if funding symbol differs from chart.
use lower tf – averages 1-min premiums for smoother intraday view.
show table – tiny two-row widget at chart edge.
Signal Filter
Use Funding filter – ON hides long signals when funding > Buy-threshold and short signals when funding < Sell-threshold.
BUY threshold (%) – default 0.00 (raw %).
SELL threshold (%) – default 0.00 (raw %).
(Enter funding thresholds as raw percentages, e.g. 0.01 = +0.01 %).
3 Visual Outputs
Sub-pane
Aqua OI-RSI curve with 70 / 50 / 30 reference lines.
Funding visualised according to selected mode (green above 0, red below 0, or other).
BUY / SELL arrows at oscillator extremes.
Price chart
Identical BUY / SELL arrows plotted with force_overlay = true above/below candles that formed qualifying fractals.
Optional table
Shows current asset ticker and latest funding value of the chosen mode.
4 Signal Logic (Summary)
Load _OI series and compute RSI.
Retrieve Funding-Rate + Premium Index (optionally from lower TF).
Find fractal swings (n bars left & right).
Check divergence:
Bearish – price HH + OI-RSI LH.
Bullish – price LL + OI-RSI HL.
If Funding-filter enabled, require funding < Buy-thr (long) or > Sell-thr (short).
Plot arrows and trigger two built-in alerts (Bearish OI-RSI divergence, Bullish OI-RSI divergence).
Signals are fixed once the fractal bar closes; they do not repaint afterwards.
5 How to Use
Attach to a liquid perpetual-futures chart (BTC, ETH, major Binance contracts).
If _OI or funding series is missing you’ll see an error.
Choose timeframe:
15 m – 4 h for intraday;
1 D+ for swing trades.
Lower TFs → more signals; raise Fractals to compare or use Funding filter to trim noise.
Trade checklist
Funding positive and rising → longs overcrowded.
Price makes higher high; OI-RSI makes lower high; Funding above Sell-threshold → consider short.
Reverse logic for longs.
Combine with trend filter (EMA ribbon, SuperTrend, etc.) so you fade only when price is stretched.
Automation – set TradingView alerts on the two alertconditions and send to webhooks/bots.
Performance tips
Keep Max visible arrows ≤ 50.
Disable lower-TF premium aggregation if script feels heavy.
6 Limitations
Some symbols lack _OI or funding history → script stops with a console message.
Binance Premium Index begins mid-2020; older dates show na.
Divergences confirm only after n bars (no forward repaint).
7 Changelog
v1.0 – 10 Jun 2025
Initial public release.
Added price-chart arrows via force_overlay.
NinjaTrendAdvanced TradingView Indicator for Multi-Timeframe Trend Analysis with Volume Confirmation
Key Features
Multi-Timeframe Analysis:
Displays trends across H4, H1, M15, and M5 (configurable)
Organized dashboard in the top-right corner
Trend Filters:
Uses 4 EMAs (21, 50, 100, 200 periods - customizable)
Classifies trends as:
SUPER BULLISH ▲
Strong Uptrend
Weak Uptrend
Sideways
Weak Downtrend
Strong Downtrend
SUPER BEARISH ▼
Additional Filters:
ADX to confirm trend strength (configurable)
Volume filter to validate movements (volume above average)
How to Use
Dashboard:
4 columns: Timeframe | ADX | Volume | Trend
Color-coded signals for quick interpretation
Interpretation:
"SUPER" trends (bright green/red) indicate strongest signals
Volume icons:
✅ Confirmed
☑ Not confirmed
ADX values turn orange when above threshold (default: 25)
Customization:
Toggle specific timeframes on/off
Adjust EMA periods
Configure ADX thresholds and volume sensitivity
Candle Price % ChangeIf you are using candle bottoms/tops for your stop-loss, this indicator allows you to see the price percentage difference between the current price and the high or low of a candle. This eliminates the need to manually measure the candle every time you need to determine your stop-loss %. It's particularly useful when scalping on small time frames like the 1m.
MACD Histogram on RSI - Hex ColorsThe Moving Average Convergence Divergence ( MACD ) indicator was developed by Gerald Appel in the late 1970s as a tool for identifying changes in momentum, trend strength, and direction in financial markets . Appel designed MACD to provide traders with a clearer view of market trends by comparing two exponential moving averages (EMAs) and their convergence or divergence over time. The indicator became widely popular due to its versatility—it helps traders recognize strong trends while also signaling potential reversals. Over the years, MACD has evolved, with refinements in interpretation and parameter settings, making it a staple in technical analysis. The most impotrtant indications given by MACD are divergences .
MACD divergences are classified into different types based on their strength and reliability in predicting trend reversals . Here are the main classes:
Class A Divergence: This is the strongest type of divergence. It occurs when the price makes a new high (or low), but the MACD fails to confirm it by making a lower high (or higher low). This signals a high probability of trend reversal.
Class B Divergence: In this case, the price forms a double top or double bottom, but the MACD does not reach a new extreme. This suggests a potential reversal but with less certainty compared to Class A.
Class C Divergence: The weakest form of divergence, where the price makes a new high or low, but the MACD forms a pattern similar to a double top or double bottom. This indicates a possible slowdown in momentum rather than a strong reversal.
These divergences help traders assess whether a trend is losing strength and may reverse.
Besides these, there are two other signals that traders should be aware of, viz, ZLR and Shamur signal.
The Zero Line Reject (ZLR) is a concept in MACD analysis where the MACD line approaches the zero line, briefly crosses it, and then reverses direction. This behavior suggests that the trend attempted to shift but failed, reinforcing the prevailing trend. Traders often interpret this as a continuation signal rather than a reversal.
The Shamur Signal , as some traders call it, is a variation of this pattern. It occurs when the MACD line drops below the zero line, rebounds above it, and then resumes its downward movement—or vice versa for bullish setups. This pattern can indicate a false breakout or a temporary shift in momentum before the trend resumes. The key takeaway is that the market attempted to reverse but lacked the strength to sustain the move, making it a potential opportunity for trend traders.
Now let's look at RSI(14) briefly: The Relative Strength Index (RSI) is a widely used momentum oscillator that measures the speed and magnitude of price movements to identify overbought and oversold conditions. Developed by J. Welles Wilder Jr. in 1978, RSI operates on a scale from 0 to 100, with readings above 70 typically indicating an overbought market and readings below 30 signaling an oversold market. Traders use RSI to assess trend strength, spot potential reversals, and confirm price movements. While effective in ranging markets, RSI can also be adapted with divergence analysis and dynamic thresholds to enhance its predictive power.
Now, the question arises why do we use an indicator on indicator?
Using indicator-on-indicator analysis enhances traditional technical indicators by applying secondary calculations to their values, unlocking deeper insights into market behavior. This method offers several advantages:
Refined Signal Filtering – Applying an indicator to another indicator smooths out noise, helping traders avoid false signals and focus on meaningful market trends. For example, using MACD on RSI can reveal momentum shifts that standard RSI alone might overlook.
Multi-Layered Confirmation – Instead of relying on a single indicator, traders get a more nuanced view of price movements. Secondary indicators reinforce decisions, improving accuracy in identifying trend strength and reversals.
Adaptive Market Analysis – Different market environments require different tools. Indicator-on-indicator techniques allow traders to fine-tune strategies based on changing volatility and momentum conditions rather than relying on static thresholds.
Creative Customization – Traders can mold indicators to fit their specific market approach. Whether refining entries/exits or detecting trend exhaustion, these hybrid setups provide tailored insights beyond conventional methods.
This approach is particularly useful for momentum and trend-based trading, offering a more dynamic perspective that adapts to price action in a way traditional indicators cannot.
What are the potential shortcomings of such an approach?
While indicator-on-indicator analysis can refine signals and enhance decision-making, it also comes with several drawbacks that traders should consider:
Lagging Effect – Since indicators are already derivatives of price action, stacking them introduces additional delays in responsiveness. This can lead to late entries or exits, reducing a strategy’s effectiveness in fast-moving markets.
Over-Filtering Signals – Applying an indicator to another can smooth out noise, but it may also suppress valuable early signals. Traders may miss key turning points if too much filtering dilutes the raw market momentum.
Complex Interpretation – Standard indicators have well-defined thresholds and behaviors, but once modified by another indicator, they can become harder to interpret. Traders may struggle to adapt existing strategies or find reliable patterns.
Reduced Versatility – Some hybrid indicators work well in specific market conditions but lose their edge in others. This dependency on particular trends or volatility levels can make a strategy less adaptable.
Potential Redundancy – If indicators are not chosen wisely, layering them may lead to excessive confirmation bias, where multiple indicators show similar information without providing any new insights.
While indicator-on-indicator techniques can refine analysis, careful calibration is required to balance precision with practicality.
The MACD on RSI Indicator merges two powerful momentum-based indicators, offering deeper insights into trend dynamics and market strength . By applying the MACD calculation to the RSI values instead of price, traders can detect subtle shifts in momentum that might be overlooked by traditional MACD or RSI alone.
This hybrid approach enhances trend confirmation , allowing traders to gauge whether RSI’s momentum aligns with MACD's trend direction. It helps in early signal detection , potentially revealing trend shifts before they appear on conventional setups. Additionally, it reduces false signals by filtering RSI fluctuations, making MACD more reactive to meaningful changes in strength rather than short-term noise.
By combining these indicators, traders can refine entries and exits based on momentum divergences, zero-line behaviors, and shifts in trend acceleration. The MACD on RSI setup is particularly useful in identifying trend exhaustion and continuation signals, making it a valuable tool in both ranging and trending markets.
I have primarily used this indicator to spot hidden divergences. So what are they?
Hidden divergences , sometimes referred to as reverse divergences , are a powerful yet often overlooked concept in technical analysis. Unlike regular divergences, which signal potential trend reversals, hidden divergences indicate trend continuation —suggesting that the prevailing trend is likely to persist despite temporary price fluctuations.
Hidden divergences occur when the price makes a higher low in an uptrend or a lower high in a downtrend, while the oscillator (such as RSI, MACD, or Stochastic) forms a lower low or higher high, respectively. This discrepancy suggests that momentum is still strong in the direction of the trend, even though price action may appear to weaken momentarily.
Types of Hidden Divergences
---------------------------------------------------------
Hidden Bullish Divergence: Price forms a higher low, but the oscillator prints a lower low. This signals that the uptrend remains intact and is likely to continue.
Hidden Bearish Divergence: Price forms a lower high, but the oscillator prints a higher high. This suggests that the downtrend is still dominant and likely to persist.
Why Hidden Divergences Matter
Hidden divergences are particularly useful for trend-following traders, as they provide early confirmation that a trend is still strong despite minor pullbacks. They help traders avoid premature exits and reinforce confidence in holding positions longer. Additionally, hidden divergences can serve as entry signals, allowing traders to position themselves in the direction of the trend before a new wave of momentum unfolds.
Key Considerations
While hidden divergences are valuable, they should not be used in isolation. Combining them with support/resistance levels, volume analysis, and price action confirmation enhances their reliability. Additionally, they tend to work best in strong trending markets, where momentum indicators align with price direction.
By mastering hidden divergences, traders can refine their ability to ride trends effectively, reducing the risk of exiting too soon or misinterpreting temporary pullbacks as reversals.
In my trading, I have used this indicator since 2009. My general aim is to make it available to all my friends. If you are using it, you are also my friend. So happy trading.
SignalWatcherThis script provides real-time monitoring of multiple technical indicators and generates visual alerts and configurable alarms:
Inputs & Mini-GUI
MACD Settings: Activation, fast, slow and signal line lengths.
RSI Settings: Activation, period length, overbought and oversold thresholds.
ADX Settings: Activation, period length, smoothing and trend strength thresholds.
Volume Settings: Activation, length of the volume MA, factor for detecting volume peaks.
Global Alert: A single composite alert for all signals.
Plot Settings: Activation and deactivation of the plot displays for RSI, MACD (lines) and ADX. Color and width selection for each line.
Display Table: Activation of the status table.
Calculations
MACD: Generates macdLine and signalLine, detects crossovers (bullish) and crossunders (bearish).
RSI: Calculates rsi_val, compares with rsi_ob and rsi_os to determine overbought/oversold.
ADX: Uses ta.dmi() to determine adx_val and checks against adx_thresh for trend strength.
Volume Spike: Exceptional trading activity detected by moving average (vol_ma) and factor (vol_factor).
Alert conditions
Six individual alertcondition() calls: MACD ↑/↓, RSI Overbought/Oversold, ADX Strong Trend, Volume Spike.
Optional composite alert (enable_global): A single notification when one of the indicator signals strikes.
Visual overlays
Alarm overlay (bottom right): Red table with text lines for currently triggered signals.
Status Table (bottom left): Overview of all indicators with current status (On/Off, Values, Thresholds).
Plots in the chart
RSI, MACD Line & Signal Line, ADX: Are displayed as lines if activated in the GUI; configurable colors & line thicknesses.