Indicadores de Banda
Small Cap Momentum Entry System✅ Features Included:
Momentum entry detection
Trailing stop overlay
Alert for entry and exit
Pre-market high line (optional display toggle)
IconicTradersSweepsThe indicater marks out the session high and low, so u can see if a session get sweept. IconicTradersSweeps. D.D.
Premium Lux AlgoCombining multiple indicators to receive buy and sell signals and create support and resistance levels and cloud space
Custom Opening Range Breakout (IST, Fixed)This script is designed to:
Calculate and visualize the Opening Range (OR) for any session using Indian Standard Time (IST)
Automatically plot breakout levels (A and C) based on a user-defined percentage buffer
Draw persistent horizontal lines from the OR candle to the end of the trading day
Reset daily, drawing a fresh set of levels for each new session
Merged: Range Filter & Smart Envelope//@version=5
indicator("Merged: Range Filter & Smart Envelope", overlay=true, max_lines_count=500, max_labels_count=500)
// ==================== Range Filter Settings ====================
// Color variables
upColor = color.white
midColor = #90bff9
downColor = color.blue
// Source
src = input(defval=close, title="Source")
// Sampling Period
per = input.int(defval=100, minval=1, title="Sampling Period")
// Range Multiplier
mult = input.float(defval=3.0, minval=0.1, title="Range Multiplier")
// Smooth Average Range
smoothrng(x, t, m) =>
wper = t * 2 - 1
avrng = ta.ema(math.abs(x - x ), t)
smoothrng = ta.ema(avrng, wper) * m
smoothrng
smrng = smoothrng(src, per, mult)
// Range Filter
rngfilt(x, r) =>
rngfilt = x
rngfilt := x > nz(rngfilt ) ? x - r < nz(rngfilt ) ? nz(rngfilt ) : x - r :
x + r > nz(rngfilt ) ? nz(rngfilt ) : x + r
rngfilt
filt = rngfilt(src, smrng)
// Filter Direction
upward = 0.0
upward := filt > filt ? nz(upward ) + 1 : filt < filt ? 0 : nz(upward )
downward = 0.0
downward := filt < filt ? nz(downward ) + 1 : filt > filt ? 0 : nz(downward )
// Target Bands
hband = filt + smrng
lband = filt - smrng
// Colors
filtcolor = upward > 0 ? upColor : downward > 0 ? downColor : midColor
barcolor = src > filt and src > src and upward > 0 ? upColor :
src > filt and src < src and upward > 0 ? upColor :
src < filt and src < src and downward > 0 ? downColor :
src < filt and src > src and downward > 0 ? downColor : midColor
filtplot = plot(filt, color=filtcolor, linewidth=2, title="Range Filter")
// Target
hbandplot = plot(hband, color=color.new(upColor, 70), title="High Target")
lbandplot = plot(lband, color=color.new(downColor, 70), title="Low Target")
// Fills
fill(hbandplot, filtplot, color=color.new(upColor, 90), title="High Target Range")
fill(lbandplot, filtplot, color=color.new(downColor, 90), title="Low Target Range")
// Bar Color
barcolor(barcolor)
// Break Outs
longCond = bool(na)
shortCond = bool(na)
longCond := src > filt and src > src and upward > 0 or
src > filt and src < src and upward > 0
shortCond := src < filt and src < src and downward > 0 or
src < filt and src > src and downward > 0
CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni
longCondition = longCond and CondIni == -1
shortCondition = shortCond and CondIni == 1
// ==================== Smart Envelope with Stochastic RSI ====================
h_env = input.float(8., 'Bandwidth', minval = 0)
mult_env = input.float(3., minval = 0)
repaint = input(true, 'Repainting Smoothing')
// Stochastic RSI Settings
smoothK = input.int(3, "K", minval=1)
smoothD = input.int(3, "D", minval=1)
lengthRSI = input.int(14, "RSI Length", minval=1)
lengthStoch = input.int(14, "Stochastic Length", minval=1)
rsi1 = ta.rsi(src, lengthRSI)
k = ta.sma(ta.stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = ta.sma(k, smoothD)
// Nadaraya-Watson Envelope Functions
gauss(x, h) => math.exp(-(math.pow(x, 2)/(h * h * 2)))
var coefs = array.new_float(0)
var den = 0.
if barstate.isfirst and not repaint
for i = 0 to 499
w = gauss(i, h_env)
coefs.push(w)
den := coefs.sum()
out = 0.
if not repaint
for i = 0 to 499
out += src * coefs.get(i)
out /= den
mae = ta.sma(math.abs(src - out), 499) * mult_env
upper_env = out + mae
lower_env = out - mae
// Compute and display NWE
n = bar_index
var float y2 = na
var float y1 = na
nwe = array.new(0)
if barstate.islast and repaint
sae = 0.
for i = 0 to math.min(499,n - 1)
sum = 0.
sumw = 0.
for j = 0 to math.min(499,n - 1)
w = gauss(i - j, h_env)
sum += src * w
sumw += w
y2 := sum / sumw
sae += math.abs(src - y2)
nwe.push(y2)
sae := sae / math.min(499,n - 1) * mult_env
for i = 0 to math.min(499,n - 1)
if i % 2
line.new(n-i+1, y1 + sae, n-i, nwe.get(i) + sae, color=color.teal)
line.new(n-i+1, y1 - sae, n-i, nwe.get(i) - sae, color=color.red)
y1 := nwe.get(i)
// Plot Nadaraya-Watson Envelope
plot(repaint ? na : out + mae, 'Upper Envelope', color=color.teal)
plot(repaint ? na : out - mae, 'Lower Envelope', color=color.red)
// Stochastic RSI Plot
plot(k, "Stochastic RSI K", color=color.blue)
plot(d, "Stochastic RSI D", color=color.orange)
h0 = hline(80, "Upper Band", color=color.gray)
hline(50, "Middle Band", color=color.new(color.gray, 50))
h1 = hline(20, "Lower Band", color=color.gray)
fill(h0, h1, color=color.rgb(33, 150, 243, 90), title="Stochastic RSI Background")
// ==================== Combined Signal Logic ====================
// Enhanced Signal Confirmation
ma_length = input.int(20, "Filter Moving Average Length", minval=1)
ma = ta.sma(close, ma_length)
// Combined Buy Signal: Range Filter + Stochastic RSI + Envelope
combined_buy = (longCondition or (ta.crossover(k, d) and close > upper_env)) and close > ma
combined_sell = (shortCondition or (ta.crossunder(k, d) and close < lower_env)) and close < ma
// Plot combined signals with higher priority
plotshape(combined_buy, "Combined Buy", shape.labelup, location.belowbar, color=color.green, size=size.normal, text="STRONG BUY")
plotshape(combined_sell, "Combined Sell", shape.labeldown, location.abovebar, color=color.red, size=size.normal, text="STRONG SELL")
// Original signals (lower priority)
plotshape(longCondition and not combined_buy, "Buy Signal", shape.labelup, location.belowbar, color=color.lime, size=size.small, text="BUY")
plotshape(shortCondition and not combined_sell, "Sell Signal", shape.labeldown, location.abovebar, color=color.maroon, size=size.small, text="SELL")
// Plot the moving average filter line
plot(ma, "Filter MA", color=color.purple, linewidth=2)
// Alerts
alertcondition(combined_buy, title="Strong Buy Alert", message="Strong Buy Signal")
alertcondition(combined_sell, title="Strong Sell Alert", message="Strong Sell Signal")
Market Breadth Ratios OverlayThis overlay indicator displays the up/down volume breadth ratio for both the NYSE and NASDAQ directly on your chart.
Ratios are calculated using volume data from:
USI:UVOL, USI:DVOL (NYSE)
USI:UVOLQ, USI:DVOLQ (NASDAQ)
A green label indicates more up volume than down volume (bullish breadth).
A red label indicates more down volume than up volume (bearish breadth).
Labels update every 10 bars and are anchored to the candle’s high (NYSE) and low (NASDAQ).
Negative ratios are inverted and displayed as -D:U to maintain a consistent “X:1” format.
Use this tool to assess whether institutional buying pressure is broad-based across exchanges — a valuable layer of confirmation for directional bias.
Dskyz (DAFE) Aurora Divergence – Quant Master Dskyz (DAFE) Aurora Divergence – Quant Master
Introducing the Dskyz (DAFE) Aurora Divergence – Quant Master , a strategy that’s your secret weapon for mastering futures markets like MNQ, NQ, MES, and ES. Born from the legendary Aurora Divergence indicator, this fully automated system transforms raw divergence signals into a quant-grade trading machine, blending precision, risk management, and cyberpunk DAFE visuals that make your charts glow like a neon skyline. Crafted with care and driven by community passion, this strategy stands out in a sea of generic scripts, offering traders a unique edge to outsmart institutional traps and navigate volatile markets.
The Aurora Divergence indicator was a cult favorite for spotting price-OBV divergences with its aqua and fuchsia orbs, but traders craved a system to act on those signals with discipline and automation. This strategy delivers, layering advanced filters (z-score, ATR, multi-timeframe, session), dynamic risk controls (kill switches, adaptive stops/TPs), and a real-time dashboard to turn insights into profits. Whether you’re a newbie dipping into futures or a pro hunting reversals, this strat’s got your back with a beginner guide, alerts, and visuals that make trading feel like a sci-fi mission. Let’s dive into every detail and see why this original DAFE creation is a must-have.
Why Traders Need This Strategy
Futures markets are a battlefield—fast-paced, volatile, and riddled with institutional games that can wipe out undisciplined traders. From the April 28, 2025 NQ 1k-point drop to sneaky ES slippage, the stakes are high. Meanwhile, platforms are flooded with unoriginal, low-effort scripts that promise the moon but deliver noise. The Aurora Divergence – Quant Master rises above, offering:
Unmatched Originality: A bespoke system built from the ground up, with custom divergence logic, DAFE visuals, and quant filters that set it apart from copycat clutter.
Automation with Precision: Executes trades on divergence signals, eliminating emotional slip-ups and ensuring consistency, even in chaotic sessions.
Quant-Grade Filters: Z-score, ATR, multi-timeframe, and session checks filter out noise, targeting high-probability reversals.
Robust Risk Management: Daily loss and rolling drawdown kill switches, plus ATR-based stops/TPs, protect your capital like a fortress.
Stunning DAFE Visuals: Aqua/fuchsia orbs, aurora bands, and a glowing dashboard make signals intuitive and charts a work of art.
Community-Driven: Evolved from trader feedback, this strat’s a labor of love, not a recycled knockoff.
Traders need this because it’s a complete, original system that blends accessibility, sophistication, and style. It’s your edge to trade smarter, not harder, in a market full of traps and imitators.
1. Divergence Detection (Core Signal Logic)
The strategy’s core is its ability to detect bullish and bearish divergences between price and On-Balance Volume (OBV), pinpointing reversals with surgical accuracy.
How It Works:
Price Slope: Uses linear regression over a lookback (default: 9 bars) to measure price momentum (priceSlope).
OBV Slope: OBV tracks volume flow (+volume if price rises, -volume if falls), with its slope calculated similarly (obvSlope).
Bullish Divergence: Price slope negative (falling), OBV slope positive (rising), and price above 50-bar SMA (trend_ma).
Bearish Divergence: Price slope positive (rising), OBV slope negative (falling), and price below 50-bar SMA.
Smoothing: Requires two consecutive divergence bars (bullDiv2, bearDiv2) to confirm signals, reducing false positives.
Strength: Divergence intensity (divStrength = |priceSlope * obvSlope| * sensitivity) is normalized (0–1, divStrengthNorm) for visuals.
Why It’s Brilliant:
- Divergences catch hidden momentum shifts, often exploited by institutions, giving you an edge on reversals.
- The 50-bar SMA filter aligns signals with the broader trend, avoiding choppy markets.
- Adjustable lookback (min: 3) and sensitivity (default: 1.0) let you tune for different instruments or timeframes.
2. Filters for Precision
Four advanced filters ensure signals are high-probability and market-aligned, cutting through the noise of volatile futures.
Z-Score Filter:
Logic: Calculates z-score ((close - SMA) / stdev) over a lookback (default: 50 bars). Blocks entries if |z-score| > threshold (default: 1.5) unless disabled (useZFilter = false).
Impact: Avoids trades during extreme price moves (e.g., blow-off tops), keeping you in statistically safe zones.
ATR Percentile Volatility Filter:
Logic: Tracks 14-bar ATR in a 100-bar window (default). Requires current ATR > 80th percentile (percATR) to trade (tradeOk).
Impact: Ensures sufficient volatility for meaningful moves, filtering out low-volume chop.
Multi-Timeframe (HTF) Trend Filter:
Logic: Uses a 50-bar SMA on a higher timeframe (default: 60min). Longs require price > HTF MA (bullTrendOK), shorts < HTF MA (bearTrendOK).
Impact: Aligns trades with the bigger trend, reducing counter-trend losses.
US Session Filter:
Logic: Restricts trading to 9:30am–4:00pm ET (default: enabled, useSession = true) using America/New_York timezone.
Impact: Focuses on high-liquidity hours, avoiding overnight spreads and erratic moves.
Evolution:
- These filters create a robust signal pipeline, ensuring trades are timed for optimal conditions.
- Customizable inputs (e.g., zThreshold, atrPercentile) let traders adapt to their style without compromising quality.
3. Risk Management
The strategy’s risk controls are a masterclass in balancing aggression and safety, protecting capital in volatile markets.
Daily Loss Kill Switch:
Logic: Tracks daily loss (dayStartEquity - strategy.equity). Halts trading if loss ≥ $300 (default) and enabled (killSwitch = true, killSwitchActive).
Impact: Caps daily downside, crucial during events like April 27, 2025 ES slippage.
Rolling Drawdown Kill Switch:
Logic: Monitors drawdown (rollingPeak - strategy.equity) over 100 bars (default). Stops trading if > $1000 (rollingKill).
Impact: Prevents prolonged losing streaks, preserving capital for better setups.
Dynamic Stop-Loss and Take-Profit:
Logic: Stops = entry ± ATR * multiplier (default: 1.0x, stopDist). TPs = entry ± ATR * 1.5x (profitDist). Longs: stop below, TP above; shorts: vice versa.
Impact: Adapts to volatility, keeping stops tight but realistic, with TPs targeting 1.5:1 reward/risk.
Max Bars in Trade:
Logic: Closes trades after 8 bars (default) if not already exited.
Impact: Frees capital from stagnant trades, maintaining efficiency.
Kill Switch Buffer Dashboard:
Logic: Shows smallest buffer ($300 - daily loss or $1000 - rolling DD). Displays 0 (red) if kill switch active, else buffer (green).
Impact: Real-time risk visibility, letting traders adjust dynamically.
Why It’s Brilliant:
- Kill switches and ATR-based exits create a safety net, rare in generic scripts.
- Customizable risk inputs (maxDailyLoss, dynamicStopMult) suit different account sizes.
- Buffer metric empowers disciplined trading, a DAFE signature.
4. Trade Entry and Exit Logic
The entry/exit rules are precise, filtered, and adaptive, ensuring trades are deliberate and profitable.
Entry Conditions:
Long Entry: bullDiv2, cooldown passed (canSignal), ATR filter passed (tradeOk), in US session (inSession), no kill switches (not killSwitchActive, not rollingKill), z-score OK (zOk), HTF trend bullish (bullTrendOK), no existing long (lastDirection != 1, position_size <= 0). Closes shorts first.
Short Entry: Same, but for bearDiv2, bearTrendOK, no long (lastDirection != -1, position_size >= 0). Closes longs first.
Adaptive Cooldown: Default 2 bars (cooldownBars). Doubles (up to 10) after a losing trade, resets after wins (dynamicCooldown).
Exit Conditions:
Stop-Loss/Take-Profit: Set per trade (ATR-based). Exits on stop/TP hits.
Other Exits: Closes if maxBarsInTrade reached, ATR filter fails, or kill switch activates.
Position Management: Ensures no conflicting positions, closing opposites before new entries.
Built To Be Reliable and Consistent:
- Multi-filtered entries minimize false signals, a stark contrast to basic scripts.
- Adaptive cooldown prevents overtrading, especially after losses.
- Clean position handling ensures smooth execution, even in fast markets.
5. DAFE Visuals
The visuals are a DAFE hallmark, blending function with clean flair to make signals intuitive and charts stunning.
Aurora Bands:
Display: Bands around price during divergences (bullish: below low, bearish: above high), sized by ATR * bandwidth (default: 0.5).
Colors: Aqua (bullish), fuchsia (bearish), with transparency tied to divStrengthNorm.
Purpose: Highlights divergence zones with a glowing, futuristic vibe.
Divergence Orbs:
Display: Large/small circles (aqua below for bullish, fuchsia above for bearish) when bullDiv2/bearDiv2 and canSignal. Labels show strength (0–1).
Purpose: Pinpoints entries with eye-catching clarity.
Gradient Background:
Display: Green (bullish), red (bearish), or gray (neutral), 90–95% transparent.
Purpose: Sets the market mood without clutter.
Strategy Plots:
- Stop/TP Lines: Red (stops), green (TPs) for active trades.
- HTF MA: Yellow line for trend context.
- Z-Score: Blue step-line (if enabled).
- Kill Switch Warning: Red background flash when active.
What Makes This Next-Level?:
- Visuals make complex signals (divergences, filters) instantly clear, even for beginners.
- DAFE’s unique aesthetic (orbs, bands) sets it apart from generic scripts, reinforcing originality.
- Functional plots (stops, TPs) enhance trade management.
6. Metrics Dashboard
The top-right dashboard (2x8 table) is your command center, delivering real-time insights.
Metrics:
Daily Loss ($): Current loss vs. day’s start, red if > $300.
Rolling DD ($): Drawdown vs. 100-bar peak, red if > $1000.
ATR Threshold: Current percATR, green if ATR exceeds, red if not.
Z-Score: Current value, green if within threshold, red if not.
Signal: “Bullish Div” (aqua), “Bearish Div” (fuchsia), or “None” (gray).
Action: “Consider Buying”/“Consider Selling” (signal color) or “Wait” (gray).
Kill Switch Buffer ($): Smallest buffer to kill switch, green if > 0, red if 0.
Why This Is Important?:
- Consolidates critical data, making decisions effortless.
- Color-coded metrics guide beginners (e.g., green action = go).
- Buffer metric adds transparency, rare in off-the-shelf scripts.
7. Beginner Guide
Beginner Guide: Middle-right table (shown once on chart load), explains aqua orbs (bullish, buy) and fuchsia orbs (bearish, sell).
Key Features:
Futures-Optimized: Tailored for MNQ, NQ, MES, ES with point-value adjustments.
Highly Customizable: Inputs for lookback, sensitivity, filters, and risk settings.
Real-Time Insights: Dashboard and visuals update every bar.
Backtest-Ready: Fixed qty and tick calc for accurate historical testing.
User-Friendly: Guide, visuals, and dashboard make it accessible yet powerful.
Original Design: DAFE’s unique logic and visuals stand out from generic scripts.
How to Use
Add to Chart: Load on a 5min MNQ/ES chart in TradingView.
Configure Inputs: Adjust instrument, filters, or risk (defaults optimized for MNQ).
Monitor Dashboard: Watch signals, actions, and risk metrics (top-right).
Backtest: Run in strategy tester to evaluate performance.
Live Trade: Connect to a broker (e.g., Tradovate) for automation. Watch for slippage (e.g., April 27, 2025 ES issues).
Replay Test: Use bar replay (e.g., April 28, 2025 NQ drop) to test volatility handling.
Disclaimer
Trading futures involves significant risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Backtest results may not reflect live trading due to slippage, fees, or market conditions. Use this strategy at your own risk, and consult a financial advisor before trading. Dskyz (DAFE) Trading Systems is not responsible for any losses incurred.
Backtesting:
Frame: 2023-09-20 - 2025-04-29
Fee Typical Range (per side, per contract)
CME Exchange $1.14 – $1.20
Clearing $0.10 – $0.30
NFA Regulatory $0.02
Firm/Broker Commis. $0.25 – $0.80 (retail prop)
TOTAL $1.60 – $2.30 per side
Round Turn: (enter+exit) = $3.20 – $4.60 per contract
Final Notes
The Dskyz (DAFE) Aurora Divergence – Quant Master isn’t just a strategy—it’s a movement. Crafted with originality and driven by community passion, it rises above the flood of generic scripts to deliver a system that’s as powerful as it is beautiful. With its quant-grade logic, DAFE visuals, and robust risk controls, it empowers traders to tackle futures with confidence and style. Join the DAFE crew, light up your charts, and let’s outsmart the markets together!
(This publishing will most likely be taken down do to some miscellaneous rule about properly displaying charting symbols, or whatever. Once I've identified what part of the publishing they want to pick on, I'll adjust and repost.)
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
Created by Dskyz, powered by DAFE Trading Systems. Trade fast, trade bold.
SMA 8-18 Angle Measurement - Color, Size, and Alerts//@version=5
indicator("SMA 8-18 Angle Measurement - Color, Size, and Alerts", overlay=true)
// --- Calculate short-term (SMA 8) and mid-term (SMA 18) simple moving averages ---
// These two SMAs will be used to detect trend crossovers.
sma8 = ta.sma(close, 8)
sma18 = ta.sma(close, 18)
// --- Plot SMA 8 and SMA 18 on the chart for visual trend analysis ---
plot(sma8, title="SMA 8", color=color.blue)
plot(sma18, title="SMA 18", color=color.orange)
// --- Calculate the slope (momentum) of each SMA ---
// Measures how steeply each moving average is moving.
slope_sma8 = sma8 - sma8
slope_sma18 = sma18 - sma18
// --- Find the difference between the slopes of SMA 8 and SMA 18 ---
// This helps to measure the relative speed of trend changes between short and mid-term averages.
slope_difference = slope_sma8 - slope_sma18
// --- Convert slope difference into an angle in degrees ---
// Using arctangent to calculate the angle of divergence between the two SMAs.
angle_rad = math.atan(slope_difference)
angle_deg = angle_rad * (180 / math.pi)
// --- User settings for customization ---
// Allow users to enable color change and size change of labels based on angle behavior.
change_color = input.bool(true, title="Change Label Color Based on Angle Direction")
change_size = input.bool(true, title="Change Label Size Based on Angle Magnitude")
// --- Dynamic label color based on angle direction ---
// Positive angles = blue (bullish slope), Negative angles = red (bearish slope).
label_color = color.white
if change_color
label_color := angle_deg >= 0 ? color.blue : color.red
// --- Dynamic label size based on angle strength ---
// Small angles = smaller label, stronger angles = larger label.
label_size = size.normal
if change_size
if math.abs(angle_deg) < 10
label_size := size.small
else if math.abs(angle_deg) < 30
label_size := size.normal
else
label_size := size.large
// --- Detect crossover events between SMA 8 and SMA 18 ---
// Bullish crossover: SMA 8 crosses above SMA 18
// Bearish crossunder: SMA 8 crosses below SMA 18
bull_cross = ta.crossover(sma8, sma18)
bear_cross = ta.crossunder(sma8, sma18)
// --- Display only the latest crossover angle as a label on the chart ---
// Old labels are deleted to keep the chart clean and focused on the last event.
var label last_cross_label = na
if (bull_cross or bear_cross)
if not na(last_cross_label)
label.delete(last_cross_label)
last_cross_label := label.new(bar_index, high + 10, "Angle: " + str.tostring(angle_deg, format.mintick) + "°", color=color.new(color.purple, 0), style=label.style_label_down, textcolor=label_color, size=label_size)
// --- Define movement strength conditions for alerts ---
// Different alert triggers based on angle magnitude (weak, strong, very strong crossover).
strong_movement = (angle_deg > 30) or (angle_deg < -30)
weak_movement = (math.abs(angle_deg) < 5)
very_strong_movement = (math.abs(angle_deg) > 45)
// --- Set up alert conditions ---
// These alerts help traders react to strong or weak trend changes.
alertcondition(strong_movement, title="Strong Cross", message="SMA 8-18 Strong Angle Cross Detected!")
alertcondition(weak_movement, title="Weak Cross", message="SMA 8-18 Weak Angle Cross Detected!")
alertcondition(very_strong_movement, title="Very Strong Cross", message="SMA 8-18 Very Strong Angle Cross Detected!")
3-Day Breakout Strategy with Trend Change Exit//@version=5
strategy("3-Day Breakout Strategy with Trend Change Exit", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// === Calculate 3-day high/low (excluding current bar) ===
high3 = ta.highest(high , 3)
low3 = ta.lowest(low , 3)
// === Entry conditions ===
longEntry = close > high3
shortEntry = close < low3
// === Track position state ===
isLong = strategy.position_size > 0
isShort = strategy.position_size < 0
wasLong = nz(strategy.position_size > 0)
wasShort = nz(strategy.position_size < 0)
// === Exit conditions ===
// Exit on trend reversal (new signal)
longExit = shortEntry // Exit long position when a short signal occurs
shortExit = longEntry // Exit short position when a long signal occurs
// === Execute entries ===
buySignal = longEntry and not isLong and not isShort
sellSignal = shortEntry and not isLong and not isShort
if (buySignal)
strategy.entry("Long", strategy.long)
if (sellSignal)
strategy.entry("Short", strategy.short)
// === Execute exits on opposite signal (trend change) ===
if (isLong and longExit)
strategy.close("Long")
if (isShort and shortExit)
strategy.close("Short")
// === Exit markers (on actual exit bar only) ===
exitLongSignal = wasLong and not isLong
exitShortSignal = wasShort and not isShort
// === Plot entry signals only on the entry bar ===
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// === Plot exit signals only on the exit bar ===
plotshape(exitLongSignal, title="Exit Long", location=location.abovebar, color=color.orange, style=shape.labeldown, text="EXIT")
plotshape(exitShortSignal, title="Exit Short", location=location.belowbar, color=color.orange, style=shape.labelup, text="EXIT")
SK System Buy/Sell Signals with TargetsCreated by Gamal Asela
will help you to find the buy and sell signals with targets .
Sk system have two alerts for buy and sell notifications
Liquidity Levels Clone - Smart Money v2Smart Money Liquidity Levels indicator, now live in your canvas.
💡 Features:
Detects equal highs/lows (stop clusters)
Plots dashed liquidity lines
Highlights sweeps (when price grabs that liquidity)
RSI + EMA + Stoch RSI ComboDescription:
This indicator combines three powerful momentum tools — RSI, EMA, and Stochastic RSI — to provide more refined entry and exit signals.
What it does:
• Calculates Relative Strength Index (RSI) and applies an Exponential Moving Average (EMA) to it for smoother trend confirmation.
• Adds Stochastic RSI (Stoch RSI) with adjustable %K and %D settings.
• Generates Buy signals when:
• Stoch RSI %K crosses above %D,
• %K is below 20,
• RSI is below 40,
• and RSI is above its EMA.
• Generates Sell signals when:
• %K crosses below %D,
• %K is above 80,
• RSI is above 60,
• and RSI is below its EMA.
• Visual elements include RSI EMA line, overbought/oversold levels, and Stoch RSI plots.
Use case:
Perfect for traders looking for a multi-indicator confirmation system. Best used on 1H or 4H timeframes, but works across all timeframes.
Alerts for Buy and Sell signals are included.
Feel free to tweak the parameters for your own strategy and market conditions!
Zweig Breadth ThrustZweig Breadth Thrust Detector
This indicator tracks one of the rarest and most powerful bullish signals in market history: the Zweig Breadth Thrust.
It calculates the 10-day moving average of NYSE advancing stocks divided by the sum of advancing and declining stocks. When the breadth reading surges from deeply oversold (<0.40) to explosively bullish (>0.615) within just 10 trading days, it signals a momentum reset so intense that it often marks the start of major new bull runs.
Zweig Thrusts are extremely rare — but when they occur, historical odds favor significant market gains over the next 6 to 12 months.
This tool doesn't just chase price — it measures raw internal strength across the entire market.
When the masses panic, and the army of stocks surges together — that's when legends are made.
BX - OPR & Initial BalanceOPR is the first 15minutes after the open
Initial Balance is the first hour.
There's alert when price break one of this levels.
Everything is customisable
RAZ G. MACD PRICE TRIGGER - LONG(!)
"First, we determine the desired price level for entry and wait for a MACD cross to confirm the signal.
We can customize both the entry time frame and a separate time frame for taking profit or closing the position
RAZ G. MACD PRICE TRIGGER - SHORT(!)
"First, we determine the desired price level for entry and wait for a MACD cross to confirm the signal.
We can customize both the entry time frame and a separate time frame for taking profit or closing the position
RAZ G. MACD PRICE TRIGGER - SHORT(!)
"First, we determine the desired price level for entry and wait for a MACD cross to confirm the signal.
We can customize both the entry time frame and a separate time frame for taking profit or closing the position
Tknkanlst..str..1.1.1viop valuation analysis was created with this script to make buy sell valuations on the bist30 futures index.
Relative Strength IndexRSI script that indicates whenever there is a crossover with RSI and the rsi ma
RSI Divergence pro with Bollinger Band Full ControlRSI Divergence with MA9 & WMA45
Description:
This indicator identifies both regular and hidden RSI divergences based on pivot highs and lows of the RSI. It plots:
The RSI line, along with two optional moving averages:
SMA (MA9): for smoothing short-term RSI movements.
WMA (WMA45): for broader RSI trend detection.
It visually marks divergence signals directly on the RSI pane:
Bullish Divergence → "Bull" label
Hidden Bullish Divergence → "H Bull" label
Bearish Divergence → "Bear" label
Hidden Bearish Divergence → "H Bear" label
The indicator includes the following features:
Adjustable RSI period, source, and divergence lookback settings.
Optional display of MA9 and WMA45 on the RSI.
Customizable colors for bullish, bearish, hidden divergence signals.
Overbought and oversold zones are shown at 70 and 30, with a background fill for easy visualization.
Built-in alert conditions trigger notifications when divergences are detected.
This script is useful for traders looking to anticipate trend reversals by spotting RSI divergences in combination with moving average smoothing.
XAUUSD Polished Pullback StrategyThis is a 20SMA pull back strategy. It will buy or sell when ever it touches the SMA and pulls back thereby creating sniper entries.
Stratégie de Renversement avec VWAP, EMA et MACDstrategie qui fonctionne tres bien en 5 min le meilleur time frame pour set strategie pour le btc