MACD Zero-Line Dominance (no ta.sum)Description Option 1 (Simple & Clear)
“This indicator compares how many recent bars have the MACD line above the zero line versus below it.
It plots the resulting strength as a green/red histogram showing whether bullish or bearish momentum is dominating.”
“MACD Zero-Line Dominance measures the strength balance between bullish and bearish momentum by counting how many candles in a lookback period have MACD above or below the zero line.
The histogram turns green when bullish pressure dominates and red when bearish momentum takes control.
Useful for trend confirmation, regime detection, and higher-timeframe alignment.”
廣量指標
W/M Pattern Strategy + MACD/RSI Confirmation V3.0 by ThaungkmitlW/M Pattern Strategy + MACD/RSI Confirmation V3.0
Description Text:
This script is a comprehensive Strategy (backtestable) that combines classical Chart Patterns with momentum indicators to identify high-probability reversal setups. It focuses on detecting "W" Patterns (Double Bottoms/Higher Lows) and "M" Patterns (Double Tops/Lower Highs), filtered by MACD and RSI to reduce false signals.
How It Works
The strategy relies on a "Confluence" of three factors before triggering an entry:
1. Price Action Patterns (W & M)
W Pattern (Bullish): The script detects Pivot Lows. If a new Pivot Low is higher than the previous one (forming a Higher Low structure), it marks a potential "W" pattern.
M Pattern (Bearish): The script detects Pivot Highs. If a new Pivot High is lower than the previous one (forming a Lower High structure), it marks a potential "M" pattern.
2. MACD Confirmation (Zero Line)
Price action alone is not enough. The script waits for the MACD Line to cross the Zero Line:
Buy: MACD crosses UP over 0 (indicating bullish momentum shift).
Sell: MACD crosses DOWN under 0 (indicating bearish momentum shift).
3. RSI Threshold
To ensure the trend has strength, the RSI (Relative Strength Index) acts as a final filter:
Buy Condition: RSI must be above 50.
Sell Condition: RSI must be below 50.
Visual Features
Pivot Labels: Automatically marks Pivot High (Red Triangle) and Pivot Low (Green Triangle).
Pattern Lines: Draws lines connecting the swing points when a potential W or M pattern is detected.
Signals: Displays "BUY" or "SELL" labels with text explaining the setup (e.g., "W+MACD+RSI").
Background: Highlights the chart background (Green/Red) when a valid trade signal occurs.
EMAs: Plots EMA 10 (Blue) and EMA 15 (Red) to help you visualize the immediate trend direction.
Settings
Pivot Left/Right Bars: Adjust the sensitivity of the Swing detection.
MACD Settings: Fast, Slow, and Signal lengths (Standard 12, 26, 9).
RSI Settings: Adjust Length and the Threshold level (Default is 50).
Backtesting
This is a strategy script, meaning you can use the Strategy Tester panel below the chart to see how this logic performs on historical data for your chosen timeframe and asset.
Disclaimer: This tool is for educational purposes. Past performance in backtesting does not guarantee future results.
EXPLOSION Scanner v1 - Sudden Spike Hunter//@version=5
indicator("EXPLOSION ENTRY v1 - 5Day Swing Breakout Scanner", overlay=true)
// ===============================
// 입력값
// ===============================
lenBB = input.int(20, "BB Length")
multBB = input.float(2.0, "BB StdDev")
lenVolMA = input.int(20, "Volume MA Length")
volMult = input.float(1.8, "Volume Explosion Mult")
lenATR = input.int(14, "ATR Length")
atrThresh= input.float(3.0, "ATR % Threshold")
needBull = input.int(4, "최근 5봉 중 최소 양봉 개수", minval=1, maxval=5)
// ===============================
// Bollinger Band
// ===============================
basis = ta.sma(close, lenBB)
dev = ta.stdev(close, lenBB)
upper = basis + dev * multBB
lower = basis - dev * multBB
plot(upper, "BB Upper", display=display.none)
plot(basis, "BB Basis", display=display.none)
plot(lower, "BB Lower", display=display.none)
// ===============================
// Volume Explosion
// ===============================
volMA = ta.sma(volume, lenVolMA)
volCond = volume > volMA * volMult
// ===============================
// 5-Day Candle Strength (최근 5봉 양봉 개수)
// ===============================
bullCount = (close > open ? 1 : 0) +
(close > open ? 1 : 0) +
(close > open ? 1 : 0) +
(close > open ? 1 : 0) +
(close > open ? 1 : 0)
candleCond = bullCount >= needBull
// ===============================
// ATR Volatility Filter
// ===============================
atrValue = ta.atr(lenATR)
atrRate = atrValue / close * 100.0
volatilityCond = atrRate > atrThresh
// ===============================
// Trend Filter (기본 추세)
// ===============================
trendCond = close > basis
// ===============================
// 최종 매수 조건
// ===============================
buyCond = trendCond and volCond and candleCond and volatilityCond
// ===============================
// BUY 신호 표시
// ===============================
plotshape(
buyCond,
title = "BUY Signal",
style = shape.triangleup,
location = location.belowbar,
size = size.small,
text = "BUY",
textcolor = color.white
)
// ===============================
// 알림(Alert)
// ===============================
alertcondition(
buyCond,
title = "EXPLOSION BUY",
message = "EXPLOSION ENTRY v1 : BUY SIGNAL 발생"
)
XΩ — T+ Sentiment Sniper
**XΩ — T+ Sentiment Sniper**
Crowd psychology helper for timing T+ reversals and managing risk
---
### 1. What is XΩ — T+ Sentiment Sniper?
XΩ — T+ Sentiment Sniper is a **crowd sentiment companion indicator**.
It estimates whether the market as a whole is currently:
- Deep in profit (euphoria, FOMO‑prone)
- Deep in loss (panic, capitulation‑prone)
- Slightly profitable / slightly losing
From that, it marks:
- Potential **supply/demand absorption** zones at panic lows and euphoric highs
- **Sentiment divergences** between price and crowd PnL
You use it as a **psychology layer on top of your main system**, especially for timing T+ style moves (the next 1–3 swings after an emotional extreme).
You do not need to understand the internal math to use it.
---
### 2. How to read the panel
The indicator runs in a **separate pane** (not on the price chart) and shows:
1. **Crowd Sentiment (Raw) – columns**
- Green/red columns represent how “good” or “bad” the crowd’s current PnL is.
- Taller columns = more emotional / more extreme conditions.
2. **Signal Line – white line**
- A smoothed line summarising the **overall direction of sentiment**.
- Helps you see whether psychology is improving or deteriorating.
3. **Horizontal levels**
- `0 (Neutral)` → sentiment is roughly balanced.
- `Euphoria` → crowd is strongly in profit (high risk of FOMO and distribution).
- `Panic` → crowd is deeply underwater (high risk of capitulation and absorption).
4. **Dashboard label on the latest bar**
- Status: `EUPHORIA (Risk)`, `PANIC (Opp.)`, `SLIGHT PROFIT`, or `SLIGHT LOSS`.
- Current **Crowd PnL (%)**.
- A short note about volume (stable vs unusually high, with a T+2 warning when needed).
At a glance, you know:
> “Is the market currently euphoric, panicking, or somewhere in between?”
---
### 3. What the signals mean
The indicator plots shapes at the top/bottom of the pane:
- **ABS (Absorption – Buy)**
- Small green circle near the bottom.
- Suggests **demand absorption**: sentiment is bad (panic), but strong buying appears against the selling.
- Use as a **potential bottom area** to watch, not an automatic “buy now”.
- **DST (Distribution – Sell)**
- Small red circle near the top.
- Suggests **distribution**: sentiment is very positive (euphoria), but strong selling appears into that optimism.
- Use as a **potential top area** to watch for taking profits or avoiding FOMO entries.
- **DIV triangle up (Bullish Div – Buy)**
- Yellow triangle pointing up near the bottom.
- Price makes new lows while sentiment stops getting worse and starts to improve.
- Suggests selling pressure is fading; potential for an upward reversal.
- **DIV triangle down (Bearish Div – Sell)**
- Orange triangle pointing down near the top.
- Price makes new highs while sentiment stops getting better and starts to weaken.
- Suggests buying pressure is fading; potential for a downward reversal.
Think of these as **context signals / alerts**, not as “must‑take” entries on their own.
---
### 4. Suggested ways to use it
#### 4.1. As a context filter before entering trades
Use Sentiment Sniper to avoid trading directly into emotional extremes:
- Avoid opening **new longs** when:
- The indicator is in the **Euphoria** zone and you see **DST or Bearish DIV** near resistance.
- Avoid opening **new shorts** when:
- The indicator is in the **Panic** zone and you see **ABS or Bullish DIV** near support.
In other words, use it as a **“do not chase” filter** for tops and bottoms.
---
#### 4.2. To spot potential T+ reversal zones
Example workflow:
1. Use your normal tools to mark **key zones** (support/resistance, liquidity areas, higher‑timeframe levels).
2. When price reaches those zones, look at T+ Sentiment Sniper:
- Near **Panic** with **ABS or Bullish DIV** → watch for potential long opportunities.
- Near **Euphoria** with **DST or Bearish DIV** → watch for potential short/exit opportunities.
3. Only take trades when:
- You also have confirmation from your own system (reversal candle, structure break, etc.).
4. Expect a **T+ style move** (1–3 swings) away from the extreme.
---
#### 4.3. To manage open positions
- When you are **heavily in profit**:
- If Sentiment Sniper moves into **Euphoria** and starts printing **DST or Bearish DIV**, consider:
- Taking partial profits
- Tightening stops
- Reducing risk to protect gains
- When you are **stuck in drawdown**:
- If sentiment is deep in **Panic** but there is **no** ABS or Bullish DIV yet, be careful:
- Avoid catching a falling knife too early.
- Look for sentiment to stabilise (ABS/DIV + your own confirmation) before committing.
---
### 5. User‑level settings (simple view)
You typically only need to think of them like this:
- **Half-Life (Memory Decay)**
- Higher value → sentiment reacts more slowly (more “long‑term” feel).
- Lower value → sentiment reacts faster to recent moves (better for short‑term trading).
- **Euphoria / Panic Threshold (%)**
- Define what counts as an “extreme”.
- For very volatile assets (crypto, small caps), you may want slightly wider thresholds.
- For calmer markets (majors, large caps), slightly tighter thresholds may be enough.
- **Avg Volume Length**
- Period to define “normal” volume.
- Spikes above this are used to flag meaningful absorption/distribution.
- **Show Sentiment Divergence / Show Supply/Demand Absorption**
- Turn off one or both if you feel the chart is too crowded.
- Keep only the parts that match your own style.
---
### 6. Alerts
In TradingView’s **Alerts** panel you will find:
- `XΩ SNIPER BUY`
- Triggers when a **psychological Buy** signal appears (Absorption or Bullish Divergence, if enabled).
- `XΩ SNIPER SELL`
- Triggers when a **psychological Sell** signal appears (Distribution or Bearish Divergence, if enabled).
Use alerts to be notified when the crowd hits important **Panic/Euphoria zones**, without watching the screen all day.
---
### 7. Important notes
- This is a **sentiment / context tool**, not a standalone “black box” system.
- Always combine it with:
- Price structure on higher timeframes
- Your own entry/exit rules
- Proper risk management
- Backtest and forward‑test before applying it with real capital.
VietNguyen Buy_Sell VIPThis is indicator of Vietnammes, it is very good for trade Gold and Crypto.
Cre by: VietNguyenDN
Candle Length by RaviThis is a private, invite-only script designed to measure and analyze candle length behavior in real-time.
It detects significant deviations in candle size, allowing traders to identify:
High volatility zones
Breakout and breakdown conditions
Momentum continuation or exhaustion
Potential reversal signals
Ideal for scalpers, intraday traders, and momentum-based systems.
NEXFEL – Quantum Adaptive MACD System v2.0# NEXFEL – Quantum Adaptive MACD System v2.0
## 📌 Overview
The **NEXFEL – Quantum Adaptive MACD System v2.0** is an advanced, fully integrated decision-support tool built upon an enhanced adaptive MACD engine.
Unlike traditional MACD implementations that rely on fixed parameters, this system uses **R² correlation** to dynamically adjust sensitivity based on current market behavior.
This indicator **does not simply merge tools**; it unifies:
- Adaptive MACD calculation
- Multi-timeframe sentiment (1H + 4H)
- Market regime detection
- Volume confirmation
- Confidence scoring (0–100%)
- ATR stop-loss visualization
- Session filtering
- Daily trade limit control
into a **single coherent trading framework**.
This publication replaces my previous “Adaptive MACD Flow PRO”, as this version is a complete rewrite with new logic, improved structure, and expanded analytical capabilities.
---
## ⚙️ How It Works
### **1. Adaptive MACD Core (R²-Based)**
The MACD sensitivity is adjusted using R² correlation:
- High R² → smoother & more stable response
- Low R² → more reactive & faster response
This adaptation allows the oscillator to naturally adjust to different volatility environments.
---
### **2. Multi-Timeframe Sentiment**
The system analyzes:
- **1H EMAs (10/30)**
- **4H EMAs (20/50)**
A directional sentiment score is generated, allowing signals only when the local timeframe aligns with the higher timeframe structure.
---
### **3. Market Regime Detection**
The indicator identifies whether the market is:
- **TRENDING**
- **RANGING**
- **NEUTRAL**
Signals are validated or filtered depending on the active regime.
---
### **4. Confidence Scoring System (0–100%)**
The signal quality is measured by weighting:
- Momentum
- Volume confirmation
- Market regime compatibility
- Multi-timeframe alignment
- Local trend direction
- Short-term momentum
Only **high-confidence** conditions produce the safest BUY/SELL signals.
---
### **5. ATR Stop-Loss Visualization**
Dynamic stop levels are displayed using:
- ATR × multiplier
A visual reference for risk management without executing trades.
---
### **6. Daily Trade Limit Control**
To prevent overtrading, the system tracks daily signals and restricts new ones once a limit is reached.
---
### **7. Multi-Language Interface**
The panel can display:
- **English**
- **Portuguese**
depending on user selection.
(TradingView requires English as the primary language, which is why it appears first in this description.)
---
## 👤 Who This Script Is For
- Traders seeking a more reliable and adaptive MACD
- Scalpers who prefer high-confirmation entries
- Swing traders analyzing market regimes
- Users needing a clean, objective analytical panel
---
## ⚠️ Important
This indicator does **not** execute trades and does not guarantee results.
It is a **decision-support system**, not a trading bot.
# 📝 Author’s Notes
This version is a complete redesign of my previous indicator.
All components were rebuilt, expanded, and optimized to offer a more structured and reliable trading system.
6EMA & SMA with alertOverview
This indicator is designed to combine multiple moving averages, higher-timeframe levels, and flexible alerts into a single tool. It helps you monitor trend direction, dynamic support/resistance, and key daily/weekly/monthly levels without loading several separate indicators.
Main Features
1 12 Moving Averages in One Indicator
・Plots a total of 12 lines: 6 EMAs and 6 SMAs.
・All lengths and sources are fully configurable from the settings, so you can adapt them to your own style and timeframe.
2 Slope-Based Color Change
・One EMA and one SMA are colored based on their slope (rising vs. falling).
・This makes it easy to visually confirm when the medium/long-term bias is turning up or down.
3 Price-vs-MA Alerts
・You can enable alerts when price touches or crosses any selected EMA or SMA.
・Direction can be set to “Up”, “Down”, or “Both”, and you can choose to trigger only on bar close.
・The script can also send detailed alert() messages containing the symbol, timeframe, price, and line value at the moment of the cross.
4 Daily / Weekly / Monthly High–Low Levels
・Optionally display the current Daily, Weekly, and Monthly high/low levels as rays extended to the right.
・Each set of levels can be shown or hidden individually, and has its own color, style, and width options.
・Labels (DH/DL, WH/WL, MH/ML) are attached at the right side of each line for quick identification.
Notes & Disclaimer
This indicator is for charting and alerting purposes only. It does not open, close, or manage any positions.
It does not guarantee any specific results or performance. All examples are for educational and informational purposes only.
Always test and adjust the settings on your own symbols and timeframes, and use proper risk management when applying it to live trading.
Minho Index | SETUP (Safe Filter 90%)//@version=5
indicator("Minho Index | SETUP (Safe Filter 90%)", shorttitle="Minho Index | SETUP+", overlay=false)
//--------------------------------------------------------
// ⚙️ INPUTS
//--------------------------------------------------------
bullColor = input.color(color.new(color.lime, 0), "Bull Color (Minho Green)")
bearColor = input.color(color.new(color.red, 0), "Bear Color (Red)")
neutralColor = input.color(color.new(color.white, 0), "Neutral Color (White)")
lineWidth = input.int(2, "Line Width")
period = input.int(14, "RSI Period")
centerLine = input.float(50.0, "Central Line (Fixed at 50)")
//--------------------------------------------------------
// 🧠 BASE RSI + INTERNAL SMOOTHING
//--------------------------------------------------------
rsiBase = ta.rsi(close, period)
rsiSmooth = ta.sma(rsiBase, 3) // light smoothing
//--------------------------------------------------------
// 🔍 TREND DETECTION AND NEUTRAL ZONE
//--------------------------------------------------------
trendUp = (rsiSmooth > rsiSmooth ) and (rsiSmooth > rsiSmooth )
trendDown = (rsiSmooth < rsiSmooth ) and (rsiSmooth < rsiSmooth )
slopeUp = (rsiSmooth > rsiSmooth )
slopeDown = (rsiSmooth < rsiSmooth )
lineColor = neutralColor
if trendUp
lineColor := bullColor
else if trendDown
lineColor := bearColor
else if slopeUp or slopeDown
lineColor := neutralColor
//--------------------------------------------------------
// 📈 MAIN INDEX LINE
//--------------------------------------------------------
plot(rsiSmooth, title="Dynamic RSI Line (Safe Filter)", color=lineColor, linewidth=lineWidth)
//--------------------------------------------------------
// ⚪ FIXED CENTRAL LINE
//--------------------------------------------------------
plot(centerLine, title="Central Line (Highlight)", color=neutralColor, linewidth=1)
//--------------------------------------------------------
// 📊 NORMALIZED MOVING AVERAGES (SMA20 and EMA20)
//--------------------------------------------------------
SMA20 = ta.sma(close, 20)
EMA20 = ta.ema(close, 20)
// Normalization 0–100
minPrice = ta.lowest(low, 100)
maxPrice = ta.highest(high, 100)
rangeCalc = maxPrice - minPrice
rangeCalc := rangeCalc == 0 ? 1 : rangeCalc
normSMA = ((SMA20 - minPrice) / rangeCalc) * 100
normEMA = ((EMA20 - minPrice) / rangeCalc) * 100
//--------------------------------------------------------
// 🩶 MOVING AVERAGES PLOTS (GHOST-GREY STYLE)
//--------------------------------------------------------
ghostColor = color.new(color.rgb(200,200,200), 65)
plot(normSMA, title="SMA 20 (Ghost Grey)", color=ghostColor, linewidth=2)
plot(normEMA, title="EMA 20 (Ghost Grey)", color=ghostColor, linewidth=2)
//--------------------------------------------------------
// 🌈 FILL BETWEEN MOVING AVERAGES
//--------------------------------------------------------
bullCond = normSMA < normEMA
bearCond = normSMA > normEMA
fill(
plot(normSMA, display=display.none),
plot(normEMA, display=display.none),
color = bearCond ? color.new(color.red, 55) :
bullCond ? color.new(color.lime, 55) : na
)
//--------------------------------------------------------
// ✅ END OF INDICATOR
//--------------------------------------------------------
Minho Index | SETUP+@TraderMinho//@version=5
// By: Trader Minho — Analista Gráfico desde 2022
indicator("Minho Index | SETUP+@TraderMinho", shorttitle="Minho Index (Classic)", overlay=false)
//--------------------------------------------------------
// PARAMETERS
//--------------------------------------------------------
shortPeriod = input.int(3, "Short Period")
mediumPeriod = input.int(8, "Medium Period")
longPeriod = input.int(20, "Long Period")
intensityFactor = input.float(3.0, "Intensity Factor", step = 0.1)
shortSmoothing = input.int(2, "Short Smoothing (EMA)")
mediumSmoothing = input.int(5, "Medium Smoothing (EMA)")
shortColor = input.color(color.new(#00CED1, 0), "Short Line Color (Aqua Blue)")
mediumColor = input.color(color.new(#FFD700, 0), "Medium Line Color (Yellow)")
zeroColor = input.color(color.new(color.white, 0), "Zero Line Color")
lineWidth = input.int(1, "Line Thickness")
//--------------------------------------------------------
// MOVING AVERAGE CALCULATIONS
//--------------------------------------------------------
smaShort = ta.sma(close, shortPeriod)
smaMedium = ta.sma(close, mediumPeriod)
smaLong = ta.sma(close, longPeriod)
//--------------------------------------------------------
// CLASSIC DIDI NORMALIZATION
//--------------------------------------------------------
priceBase = ta.sma(close, longPeriod)
didiShort = ((smaShort - smaLong) / priceBase) * intensityFactor
didiMedium = ((smaMedium - smaLong) / priceBase) * intensityFactor
//--------------------------------------------------------
// FINAL SMOOTHING (CLASSIC NEEDLE EFFECT)
//--------------------------------------------------------
aquaSmooth = ta.ema(didiShort, shortSmoothing)
yellowSmooth = ta.ema(didiMedium, mediumSmoothing)
//--------------------------------------------------------
// PLOTS
//--------------------------------------------------------
hline(0, "Zero Line", color = zeroColor, linewidth = 1)
plot(aquaSmooth, "Short (Aqua)", color = shortColor, linewidth = lineWidth)
plot(yellowSmooth, "Medium (Yellow)", color = mediumColor, linewidth = lineWidth)
XAU / XAG SCALPER PRO🔥 XAU / XAG SCALPER PRO is a specialized scalping assistant designed exclusively for XAUUSD and XAGUSD.
Free trial : just send your TV username to >> t.me
🟢 Generates four progressive BUY signals that reflect shifting bullish strength.
📈 Highlights momentum-based turning points to help anticipate early bullish phases.
➕ Provides a structured Add-More mechanic for building positions in strong trends.
🎯 Marks Take Profit (TP) moments when momentum weakens.
🏷️ Ensures clean, non-repaintable signal labels directly on the chart for clarity.
🔒 Zero configuration: all parameters are pre-optimized and locked.
🥇 Focused design: works only on Gold (XAUUSD) and Silver (XAGUSD) to maximize reliability.
🔁 Smooth workflow: Buy → Bullish Continuations → TP.
🧠 Adaptive sequencing: the indicator “remembers” previous signals to improve timing.
⚡ Lightweight & fast: built for real-time scalping on low-noise momentum shifts.
⏱️ Designed and fine-tuned for scalping and intraday trading on XAUUSD and XAGUSD.
⚠️ Note: No indicator guarantees profits. Always combine signals with your trading strategy and risk management.
Мой скриптinputs:
window(1),
type(0), // 0: close, 1: high low, 2: fractals up down, 3: new fractals
persistent(False),
exittype(1),
nbars(160),
adxthres(40),
nstop(3000);
vars:
currentSwingLow(0),
currentSwingHigh(0),
trailStructureValid(false),
downFractal(0),
upFractal(0),
breakStructureHigh(0),
breakStructureLow(0),
BoS_H(0),
BoS_L(0),
Regime(0),
Last_BoS_L(0),
Last_BoS_H(0),
PeakfilterX(false);
BoS(window,persistent,type,Bos_H,BoS_L,upFractal,downFractal,breakStructureHigh,breakStructureLow);
//BOS Regime
If BoS_H <> 0 then begin
Regime = 1; // Bullish
Last_BoS_H = BoS_H ;
end;
If BoS_L <> 0 Then begin
Regime = -1; // Bearish
Last_BoS_L = BoS_L ;
end;
//Entry Logic: if we are in BoS regime then wait for break swing to entry
if ADX(5) of data2 < adxthres then begin
if time>900 and Regime = 1 and EntriesToday(date)= 0 and Last_BoS_H upFractal then buy next bar at market;
end;
if time>900 and EntriesToday(date)= 0 and Regime = -1 and Last_BoS_L>downFractal then
begin
if close < downFractal then sellshort next bar at market;
end;
end;
// Exits: nbars or stoploss or at the end of the day
if marketposition <> 0 and barssinceentry >nbars then begin
sell next bar at market;
buytocover next bar at market;
end;
setstoploss(nstop);
setexitonclose;
Stock Relative Strength Rotation Graph🔄 Visualizing Market Rotation & Momentum (Stock RSRG)
This tool visualizes the sector rotation of your watchlist on a single graph. Instead of checking 40 different charts, you can see the entire market cycle in one view. It plots Relative Strength (Trend) vs. Momentum (Velocity) to identify which assets are leading the market and which are lagging.
📜 Credits & Disclaimer
Original Code: Adapted from the open-source " Relative Strength Scatter Plot " by LuxAlgo.
Trademark: This tool is inspired by Relative Rotation Graphs®. Relative Rotation Graphs® is a registered trademark of JOOS Holdings B.V. This script is neither endorsed, nor sponsored, nor affiliated with them.
📊 How It Works (The Math)
The script calculates two metrics for every symbol against a benchmark (Default: SPX):
X-Axis (RS-Ratio): Is the trend stronger than the benchmark? (>100 = Yes)
Y-Axis (RS-Momentum): Is the trend accelerating? (>100 = Yes)
🧩 The 4 Market Quadrants
🟩 Leading (Top-Right): Strong Trend + Accelerating. (Best for holding).
🟦 Improving (Top-Left): Weak Trend + Accelerating. (Best for entries).
⬜ Weakening (Bottom-Right): Strong Trend + Decelerating. (Watch for exits).
🟥 Lagging (Bottom-Left): Weak Trend + Decelerating. (Avoid).
✨ Significant Improvements
This open-source version adds unique features not found in standard rotation scripts:
📝 Quick-Input Engine: Paste up to 40 symbols as a single comma-separated list (e.g., NVDA, AMD, TSLA). No more individual input boxes.
🎯 Quadrant Filtering: You can now hide specific quadrants (like "Lagging") to clear the noise and focus only on actionable setups.
🐛 Trajectory Trails: Visualizes the historical path of the rotation so you can see the direction of momentum.
🛠️ How to Use
Paste Watchlist: Go to settings and paste your symbols (e.g., US Sectors: XLK, XLF, XLE...).
Find Entries: Look for tails moving from Improving ➔ Leading.
Find Exits: Be cautious when tails move from Leading ➔ Weakening.
Zoom: Use the "Scatter Plot Resolution" setting to zoom in or out if dots are bunched up.
DANGER SP500This indicator is designed to identify severe correlation anomalies between the Volatility Index (VIX) and the S&P 500 (SPX). It operates on the premise that a simultaneous rise in both assets often precedes market corrections or significant local tops.
The underlying concept is "fear in the rally": investors are buying equities (driving price up), but at the same time, they are aggressively buying protection (Puts), causing the VIX to spike.
⚠️ Strict Usage Rules
To guarantee the mathematical reliability of the VIX data, this indicator includes strict security restrictions:
EXCLUSIVE ASSET: Designed solely for the S&P 500 (SPX, SPY, US500, ES1!). It should not be used on Crypto or Forex, as the VIX correlation does not apply in the same way.
LOCKED TIMEFRAME: It only functions on the Daily Chart (1D).
Note: The script includes a runtime.error block that will prevent execution if you attempt to load it on intraday charts (H1, H4, etc.) to avoid false signals caused by market noise.
Visualization
Red Background: Visually highlights the exact moment the alert is triggered.
"DANGER" Label: Prints clearly above the signaled bar.
Max Price Display: Unlike other indicators that mark the close, this tool specifically labels the HIGH of the candle, allowing you to identify the exact point of price extension.
🔔 Alerts
The script is ready for TradingView Alerts. The alert message is dynamic and will include the exact High price reached during the signal candle.
Disclaimer: This script is for technical analysis purposes only and does not constitute financial advice. Trading involves risk.
London First 15m Candle (Real-Time NY)London First 15-Minute Candle (Real-Time New York Time)
This custom TradingView indicator identifies and tracks the first 15-minute candle of the London session, but calculated in real-time according to New York time (EST/EDT).
🔹 What the Indicator Does
1. Detects the London Session Open (Real NY Time)
You define the London session start time in New York hours (default: 3:00 AM NY Time).
The indicator monitors the first 15 minutes from the defined start time (3:00–3:15 NY time).
Only today’s candle is tracked — historical London ranges are not shown.
2. Builds the London Opening Range Candle (15m)
While the 15-minute window is still open, it continuously tracks:
Highest price reached (London High)
Lowest price reached (London Low)
The values update in real time only within the 3:00–3:15 window.
At 3:15 NY time, the candle is locked in and no longer changes.
3. Draws Three Persistent Levels on the Chart
Once the London candle closes, the indicator plots:
🔴 Top Line (London High)
Extended to the right across the chart.
🟢 Bottom Line (London Low)
Extended to the right across the chart.
⚪ Mid Line (Middle of the Range)
Computed as:
(londonHigh + londonLow) / 2
Also extended to the right.
All lines:
Are only drawn for today.
Auto-delete and refresh when a new trading day begins.
4. Works on ANY Timeframe
Even if the indicator runs on:
1m
2m
5m
1h
etc.
…it still uses a real 15-minute aggregation, ensuring the London candle is accurate.
5. Clean Chart — No Historical London Levels
The script:
Removes old lines at the start of each new day.
Keeps only today’s active London range.
This prevents clutter and ensures clarity.
6. Optional Alerts (if enabled)
The indicator can generate alerts when the market crosses:
The top of the London range
The bottom of the London range
The midline
For example:
Price breaks above London High
Price breaks below London Low
Price crosses the Midline up or down
These can be used for:
Breakout strategies
Liquidity grabs
Range-trading confirmations
7. Fully Customizable
User inputs allow you to modify:
London session start hour (NY Time)
Candle duration (fixed at 15 minutes)
Line colors:
High line color
Low line color
Midline color
Line widths
Summary
This indicator gives you a clean and accurate view of the first 15-minute candle of the London session — critical for many ICT/SMS/prop firm strategies — with:
Real-time NY-based calculation
Automatic cleanup
Clear range lines
Custom colors
Alerts for breakouts
TMT EMA Bundle - Hitesh NimjeTMT EMA Bundle - Multi Timeframe EMA Indicator
Created by: Hitesh Nimje | Contact: 8087192915
Overview
The TMT EMA Bundle is a comprehensive multi-EMA indicator designed for traders who rely on multiple exponential moving averages for trend analysis and trading decisions. This powerful tool displays 10 essential EMAs on your chart, providing complete visibility of short, medium, and long-term trends.
Key Features
🔹 10 Essential EMAs Included:
• EMA 9 (Blue) - Ultra Short-term trend
• EMA 11 (Red) - Short-term momentum
• EMA 15 (Yellow) - Quick trend changes
• EMA 21 (Black) - Swing trading reference
• EMA 50 (Gray) - Medium-term bias
• EMA 51 (Orange) - Alternative medium-term
• EMA 55 (Brown) - Extended medium-term
• EMA 100 (Purple) - Long-term trend
• EMA 200 (Maroon) - Major support/resistance
• EMA 400 (Green) - Primary trend direction
🔹 Customizable Settings
• Source selection for each EMA (Open, High, Low, Close, HL2, HLC3, OHLC4)
• Independent length adjustment for each moving average
• Color-coded lines for easy identification
🔹 Professional Features
• Clean, overlay display on price charts
• Optimized performance with max limits set
• Compatible with all timeframes
• Works on all instruments (Forex, Stocks, Crypto, Commodities)
How to Use
1. Trend Identification: All EMAs aligned = Strong trend
2. Support/Resistance: EMAs act as dynamic support/resistance levels
3. Entry Signals: Price reactions at key EMAs
4. Trend Confirmation: EMA crossovers indicate potential trend changes
5. Risk Management: Use EMAs for stop-loss placement
Best Practices
• Use higher timeframes (1H, 4H, Daily) for clearer signals
• Combine with price action and volume analysis
• Watch for EMA clusters and divergences
• Consider trend strength by EMA separation
Perfect For
✓ Swing Traders
✓ Day Traders
✓ Trend Followers
✓ Scalpers (shorter timeframes)
✓ Position Traders
Technical Specifications
• Version: Pine Script v6
• Overlay: Yes
• Multi-timeframe compatible
• No repainting
• Lightweight and efficient
This indicator is part of the Thought Magic Trading collection, designed to provide professional-grade technical analysis tools for serious traders.
Happy Trading! 📈
TRADING DISCLAIMER
RISK WARNING
Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. You should carefully consider whether trading is suitable for you in light of your circumstances, knowledge, and financial resources.
NO FINANCIAL ADVICE
This indicator is provided for educational and informational purposes only. It does not constitute:
* Financial advice or investment recommendations
* Buy/sell signals or trading signals
* Professional investment advice
* Legal, tax, or accounting guidance
LIMITATIONS AND DISCLAIMERS
Technical Analysis Limitations
* Pivot points are mathematical calculations based on historical price data
* No guarantee of accuracy of price levels or calculations
* Markets can and do behave irrationally for extended periods
* Past performance does not guarantee future results
* Technical analysis should be used in conjunction with fundamental analysis
Data and Calculation Disclaimers
* Calculations are based on available price data at the time of calculation
* Data quality and availability may affect accuracy
* Pivot levels may differ when calculated on different timeframes
* Gaps and irregular market conditions may cause level failures
* Extended hours trading may affect intraday pivot calculations
Market Risks
* Extreme market volatility can invalidate all technical levels
* News events, economic announcements, and market manipulation can cause gaps
* Liquidity issues may prevent execution at calculated levels
* Currency fluctuations, inflation, and interest rate changes affect all levels
* Black swan events and market crashes cannot be predicted by technical analysis
USER RESPONSIBILITIES
Due Diligence
* You are solely responsible for your trading decisions
* Conduct your own research before using this indicator
* Verify calculations with multiple sources before trading
* Consider multiple timeframes and confirm levels with other technical tools
* Never rely solely on one indicator for trading decisions
Risk Management
* Always use proper risk management and position sizing
* Set appropriate stop-losses for all positions
* Never risk more than you can afford to lose
* Consider the inherent risks of leverage and margin trading
* Diversify your portfolio and trading strategies
Professional Consultation
* Consult with qualified financial advisors before trading
* Consider your tax obligations and legal requirements
* Understand the regulations in your jurisdiction
* Seek professional advice for complex trading strategies
LIMITATION OF LIABILITY
Indemnification
The creator and distributor of this indicator shall not be liable for:
* Any trading losses, whether direct or indirect
* Inaccurate or delayed price data
* System failures or technical malfunctions
* Loss of data or profits
* Interruption of service or connectivity issues
No Warranty
This indicator is provided "as is" without warranties of any kind:
* No guarantee of accuracy or completeness
* No warranty of uninterrupted or error-free operation
* No warranty of merchantability or fitness for a particular purpose
* The software may contain bugs or errors
Maximum Liability
In no event shall the liability exceed the purchase price (if any) paid for this indicator. This limitation applies regardless of the theory of liability, whether contract, tort, negligence, or otherwise.
REGULATORY COMPLIANCE
Jurisdiction-Specific Risks
* Regulations vary by country and region
* Some jurisdictions prohibit or restrict certain trading strategies
* Tax implications differ based on your location and trading frequency
* Commodity futures and options trading may have additional requirements
* Currency trading may be regulated differently than stock trading
Professional Trading
* If you are a professional trader, ensure compliance with all applicable regulations
* Adhere to fiduciary duties and best execution requirements
* Maintain required records and reporting
* Follow market abuse regulations and insider trading laws
TECHNICAL SPECIFICATIONS
Data Sources
* Calculations based on TradingView data feeds
* Data accuracy depends on broker and exchange reporting
* Historical data may be subject to adjustments and corrections
* Real-time data may have delays depending on data providers
Software Limitations
* Internet connectivity required for proper operation
* Software updates may change calculations or functionality
* TradingView platform dependencies may affect performance
* Third-party integrations may introduce additional risks
MONEY MANAGEMENT RECOMMENDATIONS
Conservative Approach
* Risk only 1-2% of capital per trade
* Use position sizing based on volatility
* Maintain adequate cash reserves
* Avoid over-leveraging accounts
Portfolio Management
* Diversify across multiple strategies
* Don't put all capital into one approach
* Regularly review and adjust trading strategies
* Maintain detailed trading records
FINAL LEGAL NOTICES
Acceptance of Terms
* By using this indicator, you acknowledge that you have read and understood this disclaimer
* You agree to assume all risks associated with trading
* You confirm that you are legally permitted to trade in your jurisdiction
Updates and Changes
* This disclaimer may be updated without notice
* Continued use constitutes acceptance of any changes
* It is your responsibility to stay informed of updates
Governing Law
* This disclaimer shall be governed by the laws of the jurisdiction where the indicator was created
* Any disputes shall be resolved in the appropriate courts
* Severability clause: If any part of this disclaimer is invalid, the remainder remains enforceable
REMEMBER: THERE ARE NO GUARANTEES IN TRADING. THE MAJORITY OF RETAIL TRADERS LOSE MONEY. TRADE AT YOUR OWN RISK.
Contact Information:
* Creator: Hitesh_Nimje
* Phone: Contact@8087192915
* Source: Thought Magic Trading
© HiteshNimje - All Rights Reserved
This disclaimer should be prominently displayed whenever the indicator is shared, sold, or distributed to ensure users are fully aware of the risks and limitations involved in trading.
Week high / Week low (Mo–Fr)The indicator tracks the weekly high and low levels of the market starting from Monday 00:00 and updates them throughout the week until Friday. It draws horizontal lines across the chart representing:
Weekly High
Weekly Low
Each level also displays a label that can be positioned in different ways depending on user settings.
🧠 How it works step-by-step
1. Every Monday a new week starts
When a new week begins:
The script stores the current candle’s high as the initial weekHigh
And the current candle’s low as weekLow
Previous week's lines and labels are deleted
New horizontal lines are created and extended to the right
Labels (for high & low) are placed initially at the start of the week
2. During Monday–Friday
On every candle:
If a new higher price is reached → weekly high updates
If a new lower price is reached → weekly low updates
The horizontal line moves to the new value
A saved index remembers where that high/low was created
3. Label Position Control
The user can choose how labels should be anchored:
Mode Meaning
Update point Label stays where the high/low occurred
Right edge Label always moves to the current bar (right end of week)
Right offset Like Right edge but shifted further right by X bars
You can also customize:
label background color
label text color
label size
whether the label points up/down (above or below the line)
line color, style, and width
4. Weekend behavior
On Saturday, the script stops extending the lines, effectively freezing the weekly high and low for that completed week.
Summary
This indicator is useful for traders who want automatic weekly levels, visually clean chart structure, and customizable label placement. It tracks market structure weekly, keeps levels persistent across the chart, and lets you choose exactly how those levels appear.
If you want, I can also create:
✔ previous week high/low
✔ midline (50% of the range)
✔ alerts when price breaks the weekly high/low
✔ highlight liquidity sweeps
SIGMA 0.44📌 الشرح بالعربي:
اسم المؤشر: SIGMA 0.44
الوظيفة: يساعد المتداول على تحديد اتجاه السوق، مناطق الدخول والخروج، وأهداف السعر اليومية.
✅ المميزات:
تحديد جلسات السوق (افتتاح، أوروبا، أمريكا) مع مستويات دعم ومقاومة ديناميكية.
إشارات دخول مؤكدة.
رسم أهداف اليوم من نطاق الساعة الأولى.
رسم المتوسط 200 EMA لتحديد الاتجاه العام.
رسم خطوط افتتاح اليوم، وبعد ساعة، وبعد 4 ساعات لمراقبة حركة السعر.
🎯 الفائدة:
مؤشر متكامل يساعدك على تحليل السوق بدقة واتخاذ قرارات مدروسة باستخدام أدوات احترافية.
📌 English Summary:
Indicator Name: SIGMA 0.44
Purpose: Helps traders identify market direction, entry/exit zones, and daily price targets.
✅ Features:
Detects market sessions (Open, Europe, US) with dynamic support/resistance levels.
Provides confirmed entry signals.
Draws daily targets based on the first hour range.
Includes 200 EMA to define the overall trend.
Plots daily open line, +1 hour, and +4 hours to track price behavior.
🎯 Benefit:
A complete indicator that helps you analyze the market accurately and make informed trading decisions using professional tools.
⚠️ إخلاء المسؤولية:
هذا المؤشر لا يُعد توصية مباشرة للبيع أو الشراء، ولا يضمن الأرباح أو نتائج محددة.
الأداء السابق لا يعني بالضرورة أداءً مستقبليًا مماثلًا.
المستخدم هو المسؤول الوحيد عن قراراته الاستثمارية، وينبغي عليه دراسة السوق وتحليل المخاطر قبل الدخول في أي صفقة.
💰 إدارة رأس المال:
من الضروري الالتزام بإستراتيجية واضحة لإدارة رأس المال.
لا تخاطر بأكثر من 1-2٪ من رأس مالك في الصفقة الواحدة، واستخدم وقف الخسارة دائمًا.
التداول بدون خطة مالية مدروسة قد يؤدي إلى خسائر كبيرة، لذلك اجعل حماية رأس المال أولوية قبل البحث عن الأرباح.
⚠️ Disclaimer:
This indicator is not a direct buy or sell recommendation and does not guarantee profits or specific outcomes.
Past performance is not indicative of future results.
The user is solely responsible for their trading decisions and should perform their own market analysis and risk assessment before entering any trade.
💰 Capital Management:
It is essential to follow a clear risk management strategy.
Do not risk more than 1–2% of your total capital per trade, and always use a stop-loss.
Trading without a solid financial plan may lead to significant losses, so prioritize capital protection before seeking profits.
Market Trend & Breadth Checklist [Kulturdesken]Description
Concept & Inspiration This indicator serves as a disciplined "Pre-Flight Checklist" for swing traders, combining two powerful methodologies into one objective dashboard.
The Foundation (@kulturdesken): The core checklist structure is inspired by the workflow of @kulturdesken, utilizing the QQQE (Nasdaq 100 Equal Weighted Index). By focusing on the equal-weighted index rather than the market-cap weighted QQQ, we avoid distortions caused by mega-cap stocks and gauge the true price trend of the average stock.
The Enhancement (StockBee): To further filter out "hollow rallies," we integrated Pradeep Bonde’s (StockBee) "Market Monitor" logic. This adds a layer of analysis based on the Total US Universe (Wilshire 5000) to ensure market breadth is expanding, not just price.
Why StockBee Logic Was Added While QQQE tells us if the average price is trending, the StockBee logic tells us if the market structure is healthy. We added the "Universe" checks (Total US Market Breadth) because price trends can sometimes be deceptive during low-volume corrections.
By incorporating the Market Monitor concept (specifically checking if the % of stocks above their 50-day Moving Average is rising), this tool acts as a "Traffic Light." It prevents the trader from entering aggressive long positions even if QQQE is green, provided the underlying participation (Market Breadth) is weak.
How It Works (The 7 Checks)
1. Price Momentum (Kulturdesken): QQQE > Rising 5 SMA
Verifies short-term momentum is aggressive (Price > 5SMA) and the 5SMA itself is curling up.
2. Daily Trend Structure: Daily Buy Signal
Verifies a "stacked" bullish alignment where Price > 10 SMA > 20 SMA.
3. Macro Trend: Weekly Buy Signal
Verifies the Weekly Price > 10 WMA > 20 WMA (Weighted Moving Averages).
4. Universe Breadth (StockBee/McClellan): Summation Uptrend
We aggregate Nasdaq + NYSE data to create a "Total Universe" McClellan Summation Index.
Check: Is the Summation Index rising? (Indicates long-term money flow entering the system).
5. Short-Term Thrust: Oscillator Positive
Uses the "Total Universe" McClellan Oscillator.
Check: Is the Oscillator > 0? (Indicates immediate buying pressure is dominant).
6. Leadership: Net Highs/Lows
Check: Are Net New Highs (Highs minus Lows) trending positive?
7. Performance Filter (Manual): Traction Check
A psychological guardrail. If you toggle this off in settings (indicating you are losing money/getting stopped out), the checklist forces a "WAIT" signal, protecting you from overtrading during choppy conditions.
Settings & Customization
Data Feeds: The script is pre-configured with USI (United States Indices) and INDEX tickers to ensure accurate breadth data, but these can be customized in the settings.
Main Ticker: Defaults to QQQE.
Disclaimer: This tool is for educational purposes and market analysis only. It does not constitute financial advice. Past performance is not indicative of future results.
Universe Breadth Engine & Trend Scorecard [StockBee Style]Description
Concept & Methodology Traders are often misled by market-cap weighted indices (like SPY or QQQ). When a handful of mega-cap stocks rally, the index may look healthy even if the majority of stocks are selling off. This is called a "Hollow Rally."
This script is designed to look "under the hood" of the US Stock Market. It aggregates data from the entire investable universe (combining both NASDAQ and NYSE internals) to determine the true strength of market participation. It draws heavy inspiration from the StockBee Market Monitor methodology, using breadth and moving average geometry to define "Safe" vs. "Unsafe" trading environments.
How It Works (The Math)
This indicator combines three distinct layers of market analysis into a single pane:
1. The "Universe" McClellan Oscillator Most breadth indicators only look at one exchange. This script aggregates data to create a "Total US Market" view:
Data aggregation: We sum Advancing Issues (USI:ADVN.NQ + USI:ADVN.NY) and subtract Declining Issues (USI:DECL.NQ + USI:DECL.NY).
The Calculation: We apply the standard McClellan Oscillator formula to this aggregated net number: (19-period EMA of Net Issues) - (39-period EMA of Net Issues).
The Signal Line: A 5-period Simple Moving Average (SMA) of the Oscillator.
Green Line: Breadth momentum is rising (5SMA > Previous 5SMA).
Red Line: Breadth momentum is falling.
2. The Market Monitor Filter (Background Color) To determine the long-term "Health" of the market, the script queries the Wilshire 5000 index breadth (INDEX:MMTH), which represents the total US stock universe.
Logic: It measures the percentage of stocks currently above their 50-Day Moving Average.
Green Background: The percentage is rising (Current % > 10-Day SMA of %). This indicates an expanding environment.
Red Background: The percentage is falling. This indicates a contracting environment.
3. The "Traffic Light" Ribbon (Bottom Line) A thick ribbon at the bottom of the pane visualizes the trend of the QQQ (Nasdaq 100 Equal Weighted).
Green Ribbon: Price is above both the 10-day and 20-day SMAs.
Gray Ribbon: Price has lost the short-term moving average structure.
4. The Breadth Scorecard (Table) The table on the right provides a statistical summary of "Winning Days" (Positive Breadth) vs "Losing Days" (Negative Breadth) over multiple timeframes:
7 Days & 30 Days: For short-term momentum checks.
3 Month, 6 Month, 1 Year: For secular trend analysis.
YTD: Year-to-Date performance.
How to Use This Tool
The "All Clear" Signal: When the Background is Green (Market Monitor rising), the Ribbon is Green (Price Trend), and the Oscillator Bars cross above the Signal Line. This suggests high-probability conditions for long swing trades.
Divergence Warning: If the QQQ is making new highs, but the Oscillator is making lower highs (or staying red), it indicates that the rally is not supported by the broader market.
The Turnaround: A crossover of the Oscillator above the Signal Line while deep in negative territory often marks a short-term sold-out low.
Settings & Customization
Fully Configurable Table: You can change the position, size, and colors of the Scorecard table to fit your chart layout.
Data Sources: The script uses USI and INDEX tickers by default. These can be adjusted in the settings if you use different data providers.
Disclaimer: This tool is for educational market analysis only and does not constitute financial advice.
HARRISH DADE//@version=5
strategy("Nifty 15m ORB + 20 EMA + Volume - Signals Fixed", overlay=true,
initial_capital=100000, default_qty_type=strategy.percent_of_equity, default_qty_value=25,
process_orders_on_close=true)
// 15-minute timeframe check
if timeframe.period != "15"
runtime.error("Use this strategy on 15 minute timeframe only")
// ORB 9:15–9:30 High/Low
var float orbHigh = na
var float orbLow = na
newDay = ta.change(time("D")) != 0
if newDay
orbHigh := na
orbLow := na
sessStart = 0915
sessEnd = 0930
hhmm = hour * 100 + minute
inORB = hhmm >= sessStart and hhmm < sessEnd
if inORB
orbHigh := na(orbHigh) ? high : math.max(orbHigh, high)
orbLow := na(orbLow) ? low : math.min(orbLow, low)
// Plot ORB levels
plot(orbHigh, "ORB High", color=color.new(color.green, 0), linewidth=2)
plot(orbLow, "ORB Low", color=color.new(color.red, 0), linewidth=2)
// Trend filter - 20 EMA
emaLen = input.int(20, "EMA Length", minval=1)
ema20 = ta.ema(close, emaLen)
upTrend = close > ema20
dnTrend = close < ema20
plot(ema20, "EMA 20", color=color.orange, linewidth=2)
// Volume filter - Adaptive
volLen = input.int(20, "Volume MA Length", minval=1)
avgVol = ta.sma(volume, volLen)
volMult = input.float(1.5, "Volume Multiplier", step=0.1)
enoughVol = volume >= (avgVol * volMult)
// ORB complete check
orbLocked = not na(orbHigh) and not na(orbLow) and not inORB
// Entry conditions (for strategy)
longCond = orbLocked and ta.crossover(close, orbHigh) and upTrend and enoughVol
shortCond = orbLocked and ta.crossunder(close, orbLow) and dnTrend and enoughVol
// Risk Management
targetPts = input.float(40.0, "Target Points", step=1.0)
slPts = input.float(25.0, "Stoploss Points", step=1.0)
// STRATEGY ENTRIES
if longCond and strategy.position_size == 0
strategy.entry("LONG", strategy.long)
if shortCond and strategy.position_size == 0
strategy.entry("SHORT", strategy.short)
// STRATEGY EXITS
if strategy.position_size > 0
strategy.exit("LONG EXIT", from_entry="LONG",
limit=strategy.position_avg_price + targetPts,
stop=strategy.position_avg_price - slPts)
if strategy.position_size < 0
strategy.exit("SHORT EXIT", from_entry="SHORT",
limit=strategy.position_avg_price - targetPts,
stop=strategy.position_avg_price + slPts)
// **FIXED BUY/SELL SIGNALS** - No barstate.isconfirmed, direct conditions
plotshape(longCond, title="BUY", style=shape.triangleup, location=location.belowbar,
color=color.new(color.lime, 0), size=size.large, text="BUY", textcolor=color.white)
plotshape(shortCond, title="SELL", style=shape.triangledown, location=location.abovebar,
color=color.new(color.red, 0), size=size.large, text="SELL", textcolor=color.white)
// Debug table - shows if conditions met
if barstate.islast
var table debugTable = table.new(position.top_right, 2, 6, bgcolor=color.white, border_width=1)
table.cell(debugTable, 0, 0, "Condition", text_color=color.black, bgcolor=color.gray)
table.cell(debugTable, 1, 0, "Status", text_color=color.black, bgcolor=color.gray)
table.cell(debugTable, 0, 1, "ORB Locked", text_color=color.black)
table.cell(debugTable, 1, 1, str.tostring(orbLocked), text_color=orbLocked ? color.green : color.red)
table.cell(debugTable, 0, 2, "UpTrend", text_color=color.black)
table.cell(debugTable, 1, 2, str.tostring(upTrend), text_color=upTrend ? color.green : color.red)
table.cell(debugTable, 0, 3, "Enough Vol", text_color=color.black)
table.cell(debugTable, 1, 3, str.tostring(enoughVol), text_color=enoughVol ? color.green : color.red)
市场微观转变确认指标Logic: Signals only appear when Cloud Trend aligns with Structural Breakouts.
Visuals: Grey bars indicate noise/chop; colored bars indicate valid resonance.
Best for: 15m timeframe fast-paced trading.
"High-speed scalping indicator fusing Volatility Clouds and Market Structure for noise-filtered, double-confirmed entries."
SPX Cumulative AD Line IndicatorThe Other ADLines online are trash. Use this one.
This indicator, written in Pine Script version 6, is designed to track market breadth for the S&P 500 by constructing and analyzing a cumulative Advance-Decline (AD) Line. It begins by allowing the user to set two parameters: a smoothing length for the AD line itself and a moving-average length (defaulted to 50 weeks) that will later be applied to the smoothed line. These inputs let traders tailor the sensitivity of the indicator to their preferred timeframe and trading style.
To build the AD line, the script pulls real-time S&P 500 index prices as well as the number of advancing and declining stocks using dedicated market breadth tickers. It calculates the daily AD difference by subtracting declines from advances, a classic method for measuring participation across the index. This difference is fed into a cumulative calculation, which produces a running total that tracks whether market participation is strengthening or weakening over time.
The cumulative AD line is then smoothed with a simple moving average based on the user’s specified smoothing length. At the same time, the script dynamically converts the 50-week moving-average period into an equivalent value for whatever chart timeframe is being used—intraday, daily, weekly, or monthly. This ensures that the moving average of the AD line reflects a consistent long-term trend regardless of the chart’s resolution.
Next, the smoothed AD line is compared to its converted 50-week moving average to determine the market’s directional bias. When the AD line rises above its long-term average, the script labels the environment as bullish; when it falls below, it flags a bearish environment. It also detects crossovers between the two lines, generating discrete buy signals when the AD line crosses upward and sell signals when it crosses downward.
Finally, the indicator visualizes all elements on the chart: the smoothed AD line, its long-term moving average, a zero reference line, and the buy/sell markers. It also colors the line and background to reflect bullish or bearish conditions, making shifts in market breadth easy to spot at a glance. This provides traders with a comprehensive breadth-based tool for identifying trend strength and potential reversals in the S&P 500.






















