Disaster SL & TP by refhowto set disaster stoploss according to asr, also eases position sizing to your depo level
Wskaźniki i strategie
Triple Confirmation with Alerts//@version=5
indicator("Triple Confirmation with Alerts", overlay=true)
// Confirmation 1: ADX Trend Strength
adxlen = input(14, "ADX Length")
dilen = input(14, "DI Length")
= ta.dmi(dilen, adxlen)
trendStrong = adx > 25
uptrend = diplus > diminus and trendStrong
downtrend = diminus > diplus and trendStrong
// Confirmation 2: Stochastic
k = ta.sma(ta.stoch(close, high, low, 14), 3)
d = ta.sma(k, 3)
stochBullish = k > d and k <= d and k < 80
stochBearish = k < d and k >= d and k > 20
// Confirmation 3: Bollinger Bands
bbLength = input(20, "BB Length")
bbMult = input(2.0, "BB Multiplier")
basis = ta.sma(close, bbLength)
dev = bbMult * ta.stdev(close, bbLength)
upper = basis + dev
lower = basis - dev
bbBullish = close > lower and close <= lower
bbBearish = close < upper and close >= upper
// Generate Signals
buySignal = uptrend and stochBullish and bbBullish
sellSignal = downtrend and stochBearish and bbBearish
// Plot
plotshape(buySignal, "Buy", shape.triangleup, location.belowbar, color.green, size=size.small)
plotshape(sellSignal, "Sell", shape.triangledown, location.abovebar, color.red, size=size.small)
// Alerts
alertcondition(buySignal, "Triple Confirmation Buy", "Buy signal generated")
alertcondition(sellSignal, "Triple Confirmation Sell", "Sell signal generated")
KCP RSI + EMA Trend [Dr. K. C. Prakash]KCP RSI + EMA Trend
A professional, low-noise momentum indicator built on Volume-Weighted RSI and EMA trend confirmation, designed to filter false signals and capture high-probability trend moves.
Key Highlights (in simple terms):
Volume-Weighted RSI (VWRSI): Gives more importance to high-volume price moves, reducing weak signals.
EMA-14 on RSI: Confirms momentum direction and avoids premature entries.
HTF RSI Filter (Auto): Aligns trades with higher-timeframe trend (5m→15m, 15m→1H).
Strong Anti-False Filters: Uses RSI slope, range detection, and volume strength.
Clear Zones: Only 20 / 80 extreme levels for clean overbought–oversold structure.
Signals:
BUY: RSI crosses above 50 with volume + HTF trend confirmation
SELL: RSI crosses below 50 with volume + HTF trend confirmation
Best Use:
✔ Intraday & scalping (5m / 15m)
✔ Trend-following entries
✔ Avoiding sideways market traps
Ideal for: Traders who want clean, disciplined signals without over-trading.
TraderSpace Previous CloseThis indicator is to simply draw the previous close in the timeframe you are working on.
EMA Slope + Pullback Pro IndicatorEMA Slope + Pullback Pro Indicator
Core: EMA trend analysis with automated pullback detection.
Key Features:
3-EMA Slope System (9,20,50) with trend signals
Smart Pullback Monitor with visual alerts
Complete Data Table showing all metrics
Multi-Filter System (timeframe + volume)
What It Does:
Shows EMA trends and strength
Detects price pullbacks to EMA levels
Gives entry signals at EMA support/resistance
Filters signals with higher timeframe trend
Visual:
EMA lines on chart
Pullback zones (colored)
Entry arrows
Data table with live metrics
For: Trend + pullback traders wanting automated EMA analysis.
ULTIMATE SMC FUSION 💎 ULTIMATE SMC FUSION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A premier Smart Money Concepts (SMC) indicator that masterfully combines multi-dimensional structure analysis with precision momentum filtering. This edition is optimized for manual SMC traders looking for clarity and performance.
🚀 KEY FEATURES:
• FULL SMC SUITE: Automated Break of Structure (BOS) and Change of Character (CHoCH) detection.
• HTF ADAPTIVITY: Fine-tuned logic specifically for $30m$, $1h$, and $4h$ charts to catch the major institutional moves.
• PRECISION REVERSAL ENGINE: Advanced detection for Pinbar and Engulfing patterns at key liquidity zones.
• SMART SCORING SYSTEM: Integrated analysis of ADX (Trend Strength), RSI (Momentum), and Volume.
• ZERO-API ARCHITECTURE: Streamlined for maximum efficiency on your local TradingView terminal.
• 2026 V2026 VISUALS: Modern, premium interface with glassmorphic stats and high-contrast signals.
BEST FOR: SMC Traders, Prop Firm Challenges, and High-Precision Analysis.
Feel free to adjust the settings to your own needs.
Do not put your full confidence into a script, make your own decisions allways.
Trade at your own risk.
Free cash flow yield (Quarterly)Indicator: Free Cash Flow Yield (Quarterly) — Technical Description
Purpose
This indicator plots Free Cash Flow Yield (FCF Yield) using quarterly fundamentals and optionally adjusts it for dilution. It also computes trailing averages over multiple horizons (in quarters) to give a long-term valuation context.
Data Sources
All fundamentals are pulled from TradingView’s financial dataset using:
request.financial(syminfo.tickerid, , "FQ", barmerge.gaps_on)
Where:
"FQ" = Quarterly frequency
barmerge.gaps_on = keeps values as step-like series (updates only when new quarterly data is available)
Financial fields used:
FREE_CASH_FLOW (FCF)
ENTERPRISE_VALUE (EV)
TOTAL_SHARES_OUTSTANDING
DILUTED_SHARES_OUTSTANDING
Market cap is derived (not pulled directly in this version):
marketCap = totalSharesOutstanding * close
(Only used as a reference in the script; the yield itself is based on EV.)
Core Calculation
1) FCF Yield (Net)
The base yield is:
FCF Yield
(
%
)
=
FCF
Enterprise Value
×
100
FCF Yield(%)=
Enterprise Value
FCF
×100
Implementation detail:
If FCF is na or EV is na or EV == 0, the result is set to na to avoid division errors.
Dilution Adjustment (Optional Series)
2) Dilution Ratio
The script estimates dilution impact using:
dilutionRatio
=
Total Shares Outstanding
Diluted Shares Outstanding
dilutionRatio=
Diluted Shares Outstanding
Total Shares Outstanding
Notes:
If dilutedSharesOutstanding is missing or zero, the ratio becomes na.
3) Diluted FCF Yield
If the ratio indicates dilution (<= 1), yield is scaled down:
FCF Yield Diluted
=
FCF Yield
×
dilutionRatio
FCF Yield Diluted=FCF Yield×dilutionRatio
Else (ratio > 1 or na), the script defaults to the net yield:
FCF Yield Diluted
=
FCF Yield
FCF Yield Diluted=FCF Yield
Practical interpretation:
More dilution → lower ratio → lower diluted yield.
If dilution fields are not reliable for a ticker, the script falls back to the base yield.
Plotting
Two series are shown:
FCF Yield Net: plotted as columns (bars)
FCF Yield Diluted: plotted as an area overlay
This makes it easy to see:
Step changes when new quarter data arrives
Whether dilution meaningfully reduces the yield
Labels (Per-bar)
When fcfYieldDiluted > 0, the script prints the value as a percentage label at the yield level.
Important technical point:
Since fcfYieldDiluted is computed as a number like 8.5 for 8.5%, labels convert to percent format by dividing by 100 before formatting:
str.tostring(fcfYieldDiluted / 100, format.percent)
Rolling History & Averages
1) Rolling storage
The script maintains a rolling array of the most recent 40 quarterly values:
40 quarters ≈ 10 years
Each time a non-NA quarterly yield appears:
It pushes it into the array
If array length exceeds 40, it removes the oldest value
2) Trailing averages (quarter windows)
Averages are computed over the most recent N quarters:
1Q (latest quarter value)
4Q ≈ 1 year
8Q ≈ 2 years
20Q ≈ 5 years
40Q ≈ 10 years
If fewer than N values exist, that average is na.
End-of-chart Summary Label
On the last bar (barstate.islast), the script draws a summary label containing the trailing averages listed above.
Placement logic
The label is positioned slightly to the right of the current bar:
Uses frequencyUnit (estimated number of chart bars per quarter) to offset the label into the future.
frequencyUnit is computed as:
frequencyUnit
≈
Seconds in 12 months
Seconds per chart bar
÷
4
frequencyUnit≈
Seconds per chart bar
Seconds in 12 months
÷4
This is only for visual spacing, not calculation correctness.
Limitations / Notes
The yield series is “step-like” and updates only when new quarterly fundamentals are available.
For some tickers, TradingView fundamentals (especially diluted shares) can be missing or inconsistent; the script protects against this by returning na or falling back to the net yield.
EV-based yield can differ from market-cap-based yield; EV includes debt and cash effects, so it’s closer to an “all-capital” valuation measure.
Crash Prevention OpenSource by exp3rtsOpen Source Version - no updates!
Crash Prevention OpenSource by exp3rts – Automated Exit Strategy for TradingView
This indicator allows you to automatically close positions based on dynamic price levels derived from the previous candle with a configurable offset. Perfect for risk management and automated “hard stop” exits.
Key Features:
Flexible Exit Directions: Choose to trigger exits for Long, Short, or Both directions.
Dynamic Exit Levels: Lines are automatically calculated above/below the previous candle plus/minus a user-defined offset in points.
Visual Cues: Clear arrows indicate the exact bar where price touched the exit line.
Session-Independent: Works on any chart and timeframe without manual adjustments.
Webhook Alerts: Sends JSON alerts on touch, enabling integration with external systems or bots.
Auto-Close Logic: Ensures positions are closed immediately when the threshold is breached, keeping trades in check.
How it works:
For Long exits, the line is drawn below the previous bar’s low minus the offset.
For Short exits, the line is drawn above the previous bar’s high plus the offset.
When price crosses the line, the position is closed, an arrow is plotted on the chart, and an alert is fired.
Ideal for traders who want strict stop management or automated exit conditions while keeping visual clarity on the chart.
156D EMA 5 Crossover ScanWhen the price crosses and closes above the 5 EMA on a 156-day time frame, it indicates a bullish turnaround. A buy can be initiated at the closing price of the bullish turnaround candle, with a stop-loss set at the low of the entry candle on a closing basis within the same 156-day time frame. This indicator signals a long-term bullish trend and is best suited for positional trades and investments with a minimum time horizon of 3–5 years.
EDUVEST QQE Grade System - S/A/B/C Signal ClassificationEDUVEST QQE Grade System - S/A/B/C Signal Classification
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ ORIGINALITY
This indicator introduces a unique grading system (S/A/B/C) for QQE signals, combining traditional QQE analysis with SMC (Smart Money Concepts) price zones and trading session filters. Unlike standard QQE indicators that show all signals equally, this version classifies signals by quality to help traders focus on the highest probability setups.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ WHAT IT DOES
- Generates BUY/SELL signals with S/A/B/C grade classification
- Automatically detects asset type and applies optimized QQE factors
- Integrates SMC price zones (support/resistance) for grade enhancement
- Filters signals by trading session time
- Displays real-time session and market status
Grade Hierarchy:
- S (Gold/Orange): Signal near SMC zone + active trading hours - Highest quality
- A (Green/Red): Score 70+ during trading hours - High quality
- B (Darker): Score 50-69 during trading hours - Medium quality
- C (Gray, small): Outside trading hours or weak signal - Low quality
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ HOW IT WORKS
【QQE Core Calculation】
The QQE (Quantitative Qualitative Estimation) is calculated as:
1. RSI with configurable period (default: 14)
2. EMA smoothing of RSI (Smoothing Factor: 5)
3. Dynamic bands using Wilder's smoothing: RSI ± (ATR of RSI × QQE Factor)
QQE Factor is auto-adjusted per asset:
- USD/JPY: 4.238
- EUR/USD: 3.8
- Gold (XAU/USD): 8.0
- NASDAQ/US100: 9.0
【Signal Generation】
- BUY: QQE line crosses above its trailing stop (QQExlong == 1)
- SELL: QQE line crosses below its trailing stop (QQExshort == 1)
【Internal Scoring System】
Score components (0-100):
- Signal Base: +25 points when signal occurs
- QQE Strength: +10 to +20 based on RSI distance from 50
- Volatility: +15 (optimal ATR ratio 1.1-2.0), -10 (low volatility)
- Volume Confirmation: +10 (high volume), -5 (low volume)
- Session Bonus: +5 during London/NY sessions
- Base: +20 points
【Grade Assignment】
- Grade S: Signal near user-defined SMC price zone (within tolerance %) AND during trading hours
- Grade A: Internal score >= 70 AND during trading hours
- Grade B: Internal score >= 50 AND during trading hours
- Grade C: Outside trading hours OR score < 50
【SMC Price Zone Integration】
Users can set support/resistance levels for each asset. When price is within the tolerance percentage of these levels, signals are upgraded to S-grade, indicating confluence with institutional price levels.
【Trading Session Filter】
Configurable active trading hours (JST timezone):
- Default: 15:00 - 01:00 JST (London + NY overlap)
- Signals outside this window receive C-grade
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ HOW TO USE
【Recommended Settings】
- Timeframe: 15M, 1H, 4H
- Best on: USD/JPY, EUR/USD, Gold, NASDAQ
- Focus on: S and A grade signals
【Trading Strategy】
- S-Grade (Gold/Orange): Highest conviction - consider larger position
- A-Grade (Green/Red): Strong signal - standard position
- B-Grade: Valid but use additional confirmation
- C-Grade: Avoid or use minimal size
【Setting Up SMC Zones】
1. Identify key support/resistance on higher timeframe
2. Input prices in SMC Price Settings
3. Adjust tolerance % (default: 0.15%)
4. S-grade appears when signal occurs near these levels
【Info Panel】
Top-right panel shows:
- Asset name and detection mode (Auto/Manual)
- Current session (Tokyo/London/NY)
- Trading hours status
- SMC zone proximity
【Alert Setup】
1. Enable alerts in settings
2. Create alert with "Any alert() function call"
3. Alerts include grade, price, and session info
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ SETTINGS
Basic Settings:
- Enable Alerts: Turn on/off notifications
- Time Filter: Activate trading hour filter
- Start/End Hour: Define active trading window (JST)
QQE Settings:
- RSI Period: RSI calculation period
- RSI Smoothing: EMA smoothing factor
- Auto QQE Factor: Auto-detect optimal factor per asset
- Manual QQE Factor: Override when auto is disabled
SMC Price Settings:
- Support/Resistance levels for each asset
- Tolerance %: How close to SMC line for S-grade
Display Settings:
- Grade Only: Hide QQE lines, show only signals
- Show SMC Lines: Display support/resistance on chart
- Show Debug: Display asset detection info
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ CREDITS
QQE concept originally developed by John Ehlers.
SMC (Smart Money Concepts) integration and grading system by EduVest.
License: Mozilla Public License 2.0
Trading Sessions - BluePipsWhat the indicator does
A TradingView Pine Script indicator that overlays trading sessions on intraday charts and tracks session highs/lows.
Main features
Three trading sessions (all times in CST/CDT):
Asian Session: 7:00 PM - 12:00 AM (19:00-00:00)
London Session: 1:00 AM - 6:00 AM (01:00-06:00)
New York Session: 7:00 AM - 1:00 PM (07:00-13:00)
Visual elements (toggleable):
Colored boxes: highlight each active session
Session labels: show session name, price range, and average price
Open/Close lines: dashed lines at session open and close prices
Average price line: dotted line showing the average price during the session
High/Low lines: solid lines showing the session high and low
High/Low labels: "AH" (Asian High), "AL" (Asian Low), "LH" (London High), "LL" (London Low), "NH" (New York High), "NL" (New York Low)
Behavior:
During a session: box expands, lines extend, high/low update in real time
After a session ends: box and open/close lines are removed; high/low lines remain visible as reference levels
Daily reset: all elements are cleaned up at the start of each new day
Use cases
Identify session boundaries and overlaps
Track session highs/lows as support/resistance
Analyze price action during specific trading hours
Monitor session ranges and averages
Technical details
Works only on intraday timeframes (errors on daily/weekly/monthly)
Handles daylight saving time automatically via IANA timezones
Properly cleans up visual elements to prevent memory leaks
All times are in Central Standard Time (CST/CDT)
Useful for traders who want to see session-based price levels and ranges directly on their charts.
EMA 8/20 CrossoverModeled with 10k buying power
risking 5% account value per trade
take profit when 8 day EMA crosses below 20 day EMA
take long position when 8 day EMA crosses above 20 day EMA
VDUB Bands - MTF WMA+ATR Volatility Lanes (6 Alerts)VDUB Bands draws volatility-scaled “trend lanes” around a Weighted Moving Average (WMA) using ATR (or a WMA of True Range). It can display up to four tiers (L1–L4), with higher tiers sourced from higher timeframes to show local structure → higher-timeframe structure on a single chart.
────────────────────────────────────────
1. What it does (plain English)
────────────────────────────────────────
Think of each tier as a lane system around the trend:
• Inner rails = “normal volatility lane” around the WMA
• Outer rails = “extension / extreme zone” for that tier
• Higher tiers (L3/L4) show bigger structure
• Lower tiers (L1/L2) show active lane behavior
Typical interpretation:
• Price inside inner rails → normal variance around the trend lane
• Between inner and outer → stretched, but not extreme
• Outside outer rails → extended vs that tier’s volatility band
────────────────────────────────────────
2) Why it’s useful (and why it’s not a mashup)
────────────────────────────────────────
This is not a bundle of unrelated indicators. Everything serves one cohesive purpose:
• Visualize trend + volatility lanes across multiple time horizons
• Keep rails consistent and readable (levels, fills, outlines)
• Optional multi-timeframe aggregation for structure context
• A compact 6-alert set to catch key transitions without alert spam
────────────────────────────────────────
3) What you see on the chart
────────────────────────────────────────
For each level (L1–L4), you can show:
• Upper/Lower Inner rails
• Upper/Lower Outer rails
• Optional center fill (between outer rails) = operating range
• Optional MA line per tier (off by default to reduce clutter)
• Base WMA line (L1 MA) if enabled
Suggested workflow:
• Start with L1 + L2 only
• Add L3/L4 once you like the structure view
• Use Dynamic Opacity if the chart feels crowded
────────────────────────────────────────
4) How it works (transparent formula)
────────────────────────────────────────
For each tier:
• MA = WMA(source, baseLen × levelMultiplier)
• ATR_like = Wilder ATR (default)
OR WMA(TrueRange, atrLen × levelMultiplier)
Inner rails:
• upperInner = MA + ATR_like × innerMult
• lowerInner = MA - ATR_like × innerMult
Outer rails:
• upperOuter = MA + ATR_like × outerMult
• lowerOuter = MA - ATR_like × outerMult
Tier behavior:
• L1 uses the chart timeframe
• L2–L4 can use user-selected HTFs (defaults: 4H / D / W)
or optional auto-selection
────────────────────────────────────────
5) Multi-timeframe behavior + interpolation
────────────────────────────────────────
• L2–L4 use request.security() with lookahead OFF (no future data).
• HTF bands naturally “step” when the HTF candle confirms.
• Interpolate HTF Bands (optional): visually blends from the prior confirmed HTF value to the current confirmed HTF value to reduce stepping. This is display smoothing, not prediction.
Repaint note:
• If Live Interp (Repaints) is enabled, the HTF lines can update intrabar and may repaint. Keep it OFF for strict non-repainting behavior.
────────────────────────────────────────
6) Auto-select L2/L3/L4 (optional)
────────────────────────────────────────
Two modes:
A) Ladder (deterministic)
• Picks “bigger” timeframes relative to the chart (simple and fast).
B) Score (data-driven)
• Tests candidate timeframes and scores them using:
• Coverage: % of closes inside the OUTER band over Score Lookback
• Width: average outer-band width as a fraction of MA
• Targets: Target Coverage + Target Width
• Weights: Coverage Weight + Width Weight
Performance notes:
• Score mode is heavier (many candidates).
• “Lock auto-select after first pick” is recommended to reduce load and avoid platform limits.
────────────────────────────────────────
7) Alerts (6 total, aggregated across L1–L4)
────────────────────────────────────────
Alerts trigger if ANY tier meets the condition:
• Cross ABOVE an OUTER band
• Cross BELOW an OUTER band
• Cross ABOVE an INNER band
• Cross BELOW an INNER band
• Price is OUTSIDE ABOVE an OUTER band
• Price is OUTSIDE BELOW an OUTER band
These are intentionally aggregated to keep the alert count small while catching meaningful transitions.
────────────────────────────────────────
8) Limitations & transparency
────────────────────────────────────────
• Indicator only (not a strategy). No performance claims.
• MTF values update when the higher timeframe candle confirms.
• Interpolation is visual smoothing; it does not forecast.
• Non-standard chart types (Heikin Ashi/Renko/etc) may behave differently from standard candles.
• If you enable repainting options, signals/levels may change intrabar.
────────────────────────────────────────
9) Credits/reuse disclosure
────────────────────────────────────────
• Conceptual inspiration: VDUB and the community “VDUB_BINARY_PRO_3_V2” idea of WMA ± TR/ATR × multipliers.
• This version is a reimplementation + extension, adding:
o Multi-tier architecture (L1–L4)
o Higher-timeframe sourcing + optional interpolation
o Optional scoring-based timeframe selection
o Dynamic opacity + streamlined plotting
o Aggregated 6-alert set
No code was copied directly from the older script; this is a rewritten implementation with additional features and different structure.
www.tradingview.com
DTG Open Range Breakout
Description:
Overview The Open Range Breakout (ORB) is one of the most statistically significant strategies for day traders, particularly in Futures (ES/NQ) and Forex markets. This indicator automates the process of identifying the "Opening Range" (e.g., the first 30 minutes of the New York session) and visualizing the key High/Low levels that define the day's bias.
Unlike standard indicators that clutter the chart, this tool focuses on Price Action context. It highlights the critical volatility window and alerts you only when price makes a definitive move outside of this established range.
Key Features
Fully Customizable Session: Defaults to 09:30–10:00 (ET), but can be adjusted for any market (London Open, Tokyo Open, etc.).
Visual "No-Trade" Zone: Draws a shaded box representing the range formation period. This helps traders avoid "choppy" price action during the initial volatility.
Auto-Reset: The script automatically detects a new trading day and resets the range, keeping your chart clean without manual intervention.
Dynamic Support/Resistance: Once the range is closed, the High and Low lines extend forward, acting as key support or resistance levels for the rest of the session.
Smart Alerts: Alerts are programmed to trigger only after the range has fully formed, preventing false signals during the volatility establishment phase.
Reversals: If price breaks out but immediately fails and re-enters the box, consider this a "Fakeout" and look for a move to the opposite side.
Settings
Open Range Session: The specific time window to measure (Format: HHMM-HHMM).
Range Box Color: Visual preference for the shaded area.
Extend High/Low Lines: Toggle the dashed projection lines on/off.
DON.TRADES.GOLD@GMAIL.COM
Disclaimer This script is for educational and analytical purposes only. Past performance of a breakout strategy does not guarantee future results. Always manage risk.
EMA 50 / EMA 200 Crossoversimple indicator to use with the others. this one gives a signal when ema 50 crosses 200. you can set an alert and snipe the best entry!
ETH Trap Short v2 (HTF Filter) 5mETH 5-minute trap short strategy with higher-timeframe (1H EMA200 slope) regime filter.
Includes session filter and fixed SL/TP.
For testing and development only.
ATR Table (Top Right) - Multi Rangejust your friendly atr table to multiple ranges and for the sense of what is brewing






















