Session SFPThis script is a powerful, multi-timeframe tool designed to identify high-probability Swing Failure Patterns (SFPs) at key historical levels.
Instead of looking for traditional "pivots" (like a 3-bar swing), this indicator finds the actual high and low of a previous higher-timeframe (HTF) bar (e.g., the previous weekly high/low) and waits for a lower-timeframe (LTF) candle to sweep that level and fail.
This allows you to spot liquidity sweeps and potential reversals at significant, structural price points.
How It Works
The indicator's logic is based on a simple, two-timeframe process:
Level Detection: First, it finds the high and low of the previous bar on your chosen "Level Timeframe" (e.g., W for Weekly, D for Daily). It plots these as small 'x' markers on your chart.
SFP Identification: Second, it watches price action on a lower "SFP Timeframe" (e.g., 240 for 4H). A potential SFP is identified when a candle's wick sweeps above a key high or below a key low.
Confirmation: The SFP is only confirmed after the SFP candle closes back below the high (for a bearish SFP) or above the low (for a bullish SFP). It then waits for a set number of "Confirmation Bars" to pass. If price does not close back over the level during this window, the signal is locked in, and a label is printed.
How to Use (Key Settings)
Level Timeframe (Most Important): This is the timeframe for the levels you want to trade. Set this to W to find SFPs of the previous weekly high/low. Set it to D to find SFPs of the previous daily high/low.
SFP Timeframe: This is the timeframe you want to use to find the SFP candle itself. This should be lower than your Level Timeframe (e.g., 240 or 60).
Level Lookback: This controls how many old levels the script will track. A value of 10 on a W Level Timeframe will track the highs and lows of the last 10 weeks.
Confirmation Bars: This is your "patience" filter. It's the number of SFP Timeframe bars that must close without reclaiming the level after the SFP. A value of 0 will confirm the SFP immediately on the candle's close.
Enable Wick % Filter: A quality filter. If checked, this ensures the SFP candle's rejection wick is a significant percentage of the candle's total range.
Chart Visuals
'x' Markers: These are the historical highs and lows from your "Level Timeframe". You can turn these on or off in the settings.
SFP Label: When an SFP is fully confirmed, a label (Bearish SFP or Bullish SFP) will appear, detailing the level that was swept and the timeframes used.
SFP Line: A solid horizontal line is drawn from the 'x' marker to the SFP candle to highlight the sweep.
Colored Boxes (Optional): If you are viewing a chart timeframe lower than your "SFP Timeframe", you can enable background boxes to highlight the exact SFP candle and its confirmation bars.
รูปแบบชาร์ต
ORB LACORB breakout strategy based on the opening range and Fibonacci-style extensions.
Builds the ORB (5/15/30m or custom).
Uses ORB High/Low, mid 0.5 (stop), 1.1185 trigger and 1.5 target.
First break of 1.1185 above = LONG (SL mid, TP 1.5).
First break of 1.1185 below = SHORT (SL mid, TP 1.5).
Only one trade per day, intraday timeframes recommended.
For research & backtesting purposes only. Not financial advice.
XAutoTrade Alert Builder v1.1Automate Your NinjaTrader Trading with TradingView Alerts
The XAutoTrade Alert Builder is a flexible Pine Script strategy that bridges TradingView alerts with
NinjaTrader automated trading. Design custom entry signals, configure exit strategies, and execute trades
automatically on your NinjaTrader account - all from TradingView charts.
Key Features
📊 Flexible Signal Logic
- Configure buy/sell signals independently
- Compare any two indicators or price sources using crossover, crossunder, greater than, or less than
logic
- Visual buy/sell markers on chart for easy signal verification
🎯 Multiple Exit Methods
1. ATM Strategy - Leverage your existing NinjaTrader ATM templates for advanced order management
2. Source Signals - Exit positions based on opposite entry signals
3. Fixed Levels - Set stop loss and profit targets using ticks or percentage
⚙️ NinjaTrader Integration
- Direct webhook integration with XAutoTrade backend service
- Multi-account support (trade multiple accounts simultaneously)
- Position sizing and max position limits
- Market or limit order types with configurable offset
- Time-in-force options (DAY/GTC)
- Active hours filter (US ET timezone) to control when alerts execute
🔐 Secure & Reliable
- Webhook secret authentication
- Symbol override capability
- Real-time status indicator showing configuration readiness
How It Works
1. Configure Entry Signals - Choose your buy/sell logic by comparing any two data sources (price,
indicators, etc.)
2. Set Exit Strategy - Select ATM templates, signal-based exits, or fixed stop/profit levels
3. Connect to NinjaTrader - Enter your XAutoTrade webhook secret and account details
4. Create Alert - Use the strategy's alert system to send formatted JSON payloads to your XAutoTrade
webhook
5. Trade Futures & Stocks Automatically - TradingView alerts trigger real trades in your NinjaTrader account
Perfect For
- Traders wanting to automate TradingView strategies in NinjaTrader
- Users with existing ATM templates who want TradingView signal automation
- Multi-account traders managing several NinjaTrader accounts
- Anyone seeking a no-code bridge between TradingView and NinjaTrader
Requirements
- Active XAutoTrade account and subscription
- NinjaTrader 8 with XAutoTrade AddOn installed
- TradingView Premium/Pro account (for webhook alerts)
3HH/3LL → Next Bar Inside = Signal (Neon)Detects 3 consecutive Higher Highs or 3 consecutive Lower Lows.
Signals only when the very next candle is an Inside Bar.
Uses your Neon Lime (HH case) and Neon Pink (LL case) colors.
NEXT GEN INSPIRED BY OLIVER VELEZDYOR NFA
1. Initial Setup & Application
Load the Strategy to your desired chart (e.g., EURUSD M5, as suggested by the script's backtest).
Overlay: Ensure the script is set to overlay=true (which it is) so the signals and Moving Averages plot directly on the price chart.
Equity Management: Review the initial strategy settings for capital and position sizing:
Initial Capital: Defaults to 10,000.
Default Qty Type: Set to strategy.percent_of_equity (22%), meaning 22% of your available equity is used per trade. Adjust this percentage based on your personal risk tolerance.
2. Reviewing Key Indicator Inputs
The script uses default values that are optimized, but you can adjust them in the settings panel:
Fast EMA: Defaults to 9 (e.g., a 9-period Exponential Moving Average).
Slow EMA: Defaults to 21 (e.g., a 21-period Exponential Moving Average). These EMAs define the short-term trend.
ATR: Defaults to 14 (Average True Range). Used to dynamically calculate volatility for SL/TP distances.
Final R:R: Defaults to 4.5 (minimum R:R required for a signal). This is the core of the strategy's high reward goal.
3. Interpreting Entry Signals
A trade signal is generated only when all conditions—EMA trend, "Elephant Logic" momentum, and non-ranging market—are met.
Long Signal: Appears as a green triangle (▲) below the bar, labeled "COMBO".
Short Signal: Appears as a red triangle (▼) above the bar, labeled "COMBO".
Live Plan: Upon signal, a detailed label is immediately plotted on the chart showing the FULL BATTLE PLAN:
SL: Calculated Stop Loss price.
TP: Calculated Take Profit price (based on the Final R:R).
Risk/Reward Pips: The calculated pips for the trade's risk and reward.
R:R = 1:4.5: The exact Risk-to-Reward ratio.
4. Understanding Market Conditions & Visuals
The script provides visuals to help you understand the current market state:
Trend EMAs: The 9 EMA (green) and 21 EMA (purple/magenta) are plotted to show the underlying trend.
Long trades only fire when Price > 9 EMA > 21 EMA.
Short trades only fire when Price < 9 EMA < 21 EMA.
Ranging Market (Rejection): Bars turn a light gray/silver when the proprietary "Reject Ranging" logic is active, indicating a low-volatility period. No new trades will be taken during these bars.
Momentum Bar: Bars turn a gold/yellow color when the "Elephant Logic" (high-momentum, large-body candles over 2-3 periods) is detected, highlighting powerful price movement.
5. Execution and Exit Logic
The strategy handles entry, scaling, and exit automatically:
Entry: A market order is placed (strategy.entry) immediately upon the bar where the longSetup or shortSetup condition is met.
Scaling Out (+1R): If the trade moves favorably by an amount equal to the initial risk (1R), the script closes a portion of the position (strategy.close with comment "+1R"). This partial exit locks in profit equivalent to the initial risk.
Re-entry (Pyramiding): After the +1R exit, the strategy attempts a re-entry (LONG RE/SHORT RE diamond plot) if the price meets certain criteria near the 9 EMA, trying to capitalize on further trend continuation.
Final Exits:
Take Profit: A limit order is set at the calculated TP level (stopDist * minRR).
Stop Loss: A stop order is set at the calculated SL level (stopDist * 1.3), slightly wider than the initial SL distance, likely to account for spread/slippage, ensuring the maximum loss is defined.
Trailing Stop: A trailing stop is applied to the re-entry positions (LONG RE/SHORT RE) to protect profits as the market moves further in the direction of the trade.
WaleedGhuman SMT/MSS/OF/ModelsAt the core of the WaleedGhuman SMT/MSS/OF/Models indicator lies a sophisticated Smart Money Technique (SMT) Divergence Engine that operates across specific distinct timeframes simultaneously. The result is a comprehensive market analysis tool that bridges the gap between macro market structure and micro price action, delivering institutional-grade divergence analysis in an accessible, visually intuitive format.
ORB - Openning Range BreakoutORB - Opening Range Breakout (Indicator)
This indicator visualizes the Opening Range Breakout (ORB) for the New York market session (9:30 AM – 4:00 PM NY), highlighting the High and Low of the first 5 minutes of the session.
Key Features:
Automatically calculates the High and Low of the 9:30 AM candle and updates if subsequent candles expand the range within the first 5 minutes.
Plots invisible lines representing the High and Low of the opening range throughout the session.
Fills the area between High and Low with a semi-transparent background, clearly showing the opening range zone.
Works on any intraday timeframe and adapts automatically to the NY session.
Perfect for breakout strategies, visually marking early support and resistance zones.
How to Use:
The shaded area between High and Low indicates the opening range.
Traders can watch for breakouts above the High or breakdowns below the Low for potential entry signals.
Can be combined with trend or volume indicators for confirmation.
Notes:
The session is automatically calculated using New York time.
Background transparency can be adjusted to your preference.
GC Scalping Plan - No Stop LossLevels for Gold...........................................................................................................................................................
BRS STC Schaff Trend CycleSTC with custom settings for 2min charts; Buy/Sell signals are close, but works very well with other indicators for validation; Borrowed from everget and another;
MACD Volume VWAP Scalping (2min) by Obiii📘 Strategy Description (for TradingView)
MACD Volume VWAP Scalping Strategy (2-Minute Intraday Momentum)
This strategy is designed for scalpers and short-term intraday traders who focus on capturing small, high-probability moves during the most active hours of the trading session — typically between 9:45 AM and 11:30 AM (New York time).
The system combines three key momentum confirmations:
MACD crossovers to detect short-term trend shifts,
Volume spikes to validate real market participation, and
VWAP / EMA alignment to filter trades in the direction of the prevailing intraday trend.
🔹 Entry Logic
Long Entry:
MACD line crosses above the signal line
Both MACD and Signal are above zero
Current volume > average of the last 10 candles
Price is above VWAP and (optionally) above EMA 9 and EMA 20
Short Entry:
MACD line crosses below the signal line
Both MACD and Signal are below zero
Current volume > average of the last 10 candles
Price is below VWAP and (optionally) below EMA 9 and EMA 20
🎯 Exit Logic
Fixed Take Profit: +0.25%
Fixed Stop Loss: -0.15% to -0.20%
Optionally, switch to the 5-minute chart after entry to monitor momentum and manage exits more smoothly.
⚙️ Recommended Settings
Timeframe: 2 minutes (entries), 5 minutes (monitoring)
Market Session: 9:45 AM – 11:30 AM EST
Assets: Highly liquid instruments such as SPY, QQQ, NVDA, TSLA, AAPL, or large-cap momentum stocks.
💡 Notes
This is a momentum-based scalping strategy — precision and discipline are key.
It performs best in high-volume environments where clear direction emerges after the morning volatility settles.
The system can be fine-tuned for different profit targets, MACD settings, or volume thresholds depending on volatility.
Price Action IndicatorThis indicator is based on Price Action
Trend bar would be filled with Red/Green
Reversal bar would be tagged
Stockbee 8% 4% 9M + MA CrossoversThis is another version of my Stockbee 9% 4% 9M script, now enhanced with moving average crossovers to highlight trend shifts more effectively.
The crossovers are displayed in the same visual style as the 9 million volume indicator from the original script but use different shapes and forms for better distinction.
All crossover visuals can be customized to your liking—you can adjust their appearance to fit your charting style or preference.
neeson vol proCrypto Exchange Volume Analyzer - Technical Indicator Documentation
Overview
The Crypto Exchange Volume Analyzer is a sophisticated trading indicator designed to monitor and analyze trading volume across major cryptocurrency exchanges in real-time. This tool provides comprehensive market insights by aggregating volume data from multiple sources and detecting abnormal trading activity.
Key Features
Multi-Exchange Data Integration
Real-time volume monitoring from Binance, Coinbase, and Kraken
Combined BTC and ETH trading volume analysis across all supported exchanges
Total trading value calculation in USD equivalents
Market Share Analysis
Dynamic market share calculation for each exchange
Visual representation of exchange dominance
Comparative analysis of trading activity across platforms
Advanced Signal Detection
Statistical anomaly detection using standard deviation methodology
Customizable volume threshold settings (1.0-5.0 std dev)
Color-coded visual alerts for abnormal volume conditions
Comprehensive Data Display
Interactive data table showing volume, value, and market share percentages
Individual cryptocurrency tracking (BTC, ETH, BNB, XRP, ADA, SOL)
Customizable display settings for different trading preferences
Technical Specifications
Input Parameters
Show Volume: Toggle volume column display
Show Data Table: Toggle comprehensive data table
Show Volume Signals: Enable/disable anomaly detection alerts
Volume Threshold: Adjust sensitivity (1.0-5.0 standard deviations)
Time Period: Select analysis timeframe (default: 1D)
Data Sources
Binance: BTCUSDT, ETHUSDT, BNBUSDT, XRPUSDT, ADAUSDT, SOLUSDT
Coinbase: BTCUSD, ETHUSD
Kraken: BTCUSD
Risk Disclaimer
Important Notice
This technical indicator is provided for educational and informational purposes only. Cryptocurrency trading involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results.
Risk Factors to Consider
High volatility in cryptocurrency markets
Potential for significant financial losses
Technical limitations and data latency
Market manipulation risks
Regulatory uncertainties
User Responsibility
Users should:
Conduct their own research before trading
Consult with licensed financial advisors
Understand all risks involved
Only risk capital they can afford to lose
Monitor positions continuously
Copyright and Attribution
Developer Information
Created by: neeson2025
X (Twitter): @neeson1987
Usage Rights
This indicator is provided as educational technology. Commercial use, redistribution, or modification without explicit permission is prohibited. Users acknowledge that the developer bears no responsibility for trading decisions made using this tool.
CME Close PriceThis script adds the closing price of another asset on your chart, such as the BTC1! Futures Price on your BTC Spot Chart for example.
Level LinesThis indicator displays levels in close proximity to the current price, enabling users to identify psychological levels on charts that serve as support/resistance zones or key reference points for price action.
In the settings, you can customize the number of lines shown above and below the current price, along with the interval size for rendering them.
As the price moves higher or lower, the lines dynamically adjust to reflect the most relevant levels.
In settings you can fully customize the style of lines (color, width, style) with separate settings available for lines above & below the current price.
Recent Swing High/Low Lines With Stats TableSwing-Based Volatility
This indicator measures volatility using the distance between recent swing highs and swing lows rather than fixed averages like ATR. Each swing captures a meaningful shift in market control, making this a structure-aware view of volatility.
The tool calculates and plots the average swing range over time, highlighting when the market is expanding (wide swings, high volatility) or contracting (tight swings, low volatility). These phases can help traders identify breakout potential, adjust stop-loss or profit targets, and align position sizing with current market conditions.
🚀 DocBrown PRO Edition V14++(Institutional Level - Open Source - 1 month Development - Live Testing)
🚀 DocBrown PRO Edition V14++
Author: Jesús Nicolás Astorga
Telegram: @jesus_nicolas_astorga
Origin: Junín – Mendoza – Argentina
DocBrown PRO Edition V14++ is an institutional-level, adaptive trend-following strategy designed for precision and stability across crypto, forex, and index markets. It was developed with a scientific and systematic approach, merging volatility modeling, risk control, and market structure detection into one unified algorithm. The result is a robust system capable of adapting to any market condition while maintaining discipline and safety.
This version represents the evolution of the SuperTrader Pro framework, built to detect strong directional moves, avoid range traps, and manage trades with intelligent automation. It is optimized for high-quality entries, precise exits, and adaptive protection that minimizes drawdowns while allowing full trend exploitation.
The strategy integrates several cooperative subsystems that work together in real time:
Adaptive Regime Filter: Detects trending versus ranging conditions using ADX, Bollinger Band Width, and EMA slope normalized by ATR.
Dynamic Support and Resistance System: Identifies real-time S/R levels and automatically adjusts take-profit targets or triggers trailing after confirmed breakouts.
Derivative Anti-Loss Engine: Calculates multi-level price derivatives to identify adverse momentum and micro-reversals before they expand.
Volatility Adaptive Trailing Stop (VATS): A fully automatic volatility-based stop-loss that reacts dynamically to expansion and contraction phases.
ATR Dynamic Stop System: A classic trailing ATR layer, giving additional flexibility and control for long-term trade management.
Counter-Trend Logic: Detects exhaustion phases and closes positions when the trend shows weakening momentum, using derivative and volatility confirmation.
Drawdown Rescue Mechanism: Follows retracement bounces inside losing trades, exiting only when recovery strength is lost.
Bracket Protection System: Provides exchange-level safety by placing hard stop and limit orders to prevent liquidation events.
Technically, the strategy uses multiple EMA packs (5/13/21, 8/21/50, or 13/34/89), derivative and hysteresis control with ATR gating, dual stop systems (VATS + ATR), and a dynamic S/R-based take profit model. It includes anti-range logic that filters out weak ADX zones, breakeven-plus logic to secure early profits, consecutive-bar and volume-spike exits, and a real-time information panel showing metrics such as net profit, win rate, MFE, and derivative signal strength. It also includes multiple alert conditions for entries, exits, and stop-loss events.
Philosophically, DocBrown PRO Edition was designed with institutional discipline but remains accessible to all traders. Every mechanism was engineered to protect capital and maximize opportunity. It adapts to volatility, avoids noise, and seeks clean, directional movement. When markets sleep, it stands aside. When they awaken, it rides the wave with precision.
Recommended use:
Markets: Crypto Futures, Spot, Indices, or Forex
Timeframes: 5m to 1h (optimized for 10m)
Leverage: Up to 5x tested. Higher leverage requires tight safety brackets.
Risk Model: Approximately 1 USDT risk per trade (≈75 USDT notional at 5x isolated margin)
This system is the result of extensive testing, iteration, and refinement. It embodies a clear philosophy: control risk first, then capture trend momentum efficiently.
Every variable, condition, and exit trigger has been tuned to serve this principle.
If this strategy helps you in your trading journey — whether by improving your discipline, understanding market structure, or enhancing your performance — I invite you to follow my work and give this strategy a Boost on TradingView. Your support encourages further open research and helps develop even more advanced versions for the community.
— Jesús Nicolás Astorga
SuperTrader Pro Lab – Junín, Mendoza, Argentina
Bitcoin Macro Oscillator (Cuga)Bitcoin Macro Oscillator (BMO) — WooCharts-Style Composite Indicator
A single-number macro health check for Bitcoin, combining 4 key signals into one oscillator:
══════════════════════════════════════════════
HOW IT'S CALCULATED
══════════════════════════════════════════════
1. MVRV Z-Score
• Data: On-chain MVRV Ratio (INTOTHEBLOCK:BTC_MVRV)
• Z = (MVRV - μ_4yr) / σ_4yr
• Measures over/undervaluation vs. realized cost basis
2. VWAP Ratio Z-Score
• VWAP = Cumulative (Price × Volume) / Cumulative Volume
• Ratio = (Price / VWAP) - 1
• Z = (Ratio - μ_4yr) / σ_4yr
• Tracks deviation from volume-weighted fair value
3. CVDD Ratio Z-Score (Approximated)
• CVDD Proxy = 200-week SMA (long-term holder cost)
• Ratio = (Price / CVDD) - 1
• Z = (Ratio - μ_4yr) / σ_4yr
• Captures coin-age destruction & HODL cost basis
4. Sharpe Ratio Z-Score
• 90-day rolling Sharpe = (Daily Return) / σ_daily
• Z = (Sharpe - μ_4yr) / σ_4yr
• Measures risk-adjusted momentum quality
══════════════════════════════════════════════
FINAL BMO FORMULA
══════════════════════════════════════════════
BMO = 0.25 × (Z_MVRV + Z_VWAP + Z_CVDD + Z_Sharpe)
• Lookback: 1,460 days (~4 years) for mean & std dev
• Equal weighting → BMO oscillates ~ –2.5 to +2.5
• Optional 1-period SMA smoothing
══════════════════════════════════════════════
SIGNAL LEVELS
══════════════════════════════════════════════
< –1.5 → Deep Oversold (Macro Buy)
–1.5 to –0.8 → Oversold
–0.8 to +0.8 → Neutral
+0.8 to +1.5 → Overbought
> +1.5 → Deep Overbought (Macro Sell)
26 EMA Reversal LogicThis indicator identifies two distinct price behaviours on the daily charts of SPY, SPX, QQQ, or IXIC, using the 26-period EMA as a reference. It plots one signal per downtrend — either a yellow circle (bearish continuation) or a green circle (bullish reversal) — and locks further signals until price closes above the 26 EMA.
The yellow circles are when we close below the 26-day EMA and the next day we make a lower low.
The green circles are when we close below the 26-day EMA and the next day we actually open higher and that low is never revisited.
Symbol Restriction
Only works on: SPY, SPX, QQQ, IXIC
On any other symbol, the script will display an error and stop.
Timeframe Restriction
DAILY chart only — will show an error on any other timeframe.
Core Logic: Two-Candle Pattern Detection
Both signals start with the same Day 1 condition:
Day 1: The candle closes below the 26 EMA
From there, Day 2 determines the signal:
Yellow Circle (Bearish Continuation)
Plotted BELOW the Day 2 candle
Conditions:
Day 1 closed below the 26 EMA
Day 2 makes a lower low than Day 1’s low → low < low Interpretation:
Price is weakening — pushing to new lows below the EMA.
Confirms downward momentum.
Green Circle (Bullish Reversal / Failed Breakdown)
Plotted ABOVE the Day 2 candle
Conditions:
Day 1 closed below the 26 EMA
Day 2 opens higher than Day 1’s close → open > close
Day 2’s low never revisits Day 1’s low → low >= low Interpretation:
Buyers defend the prior low with a higher open — classic false breakdown.
Suggests a potential reversal higher.
One Signal Per Downtrend (Lock & Reset)
After either a yellow or green circle is plotted, no more circles appear
Prevents clutter — focuses on first meaningful reaction
Reset Rule:
Lock is released only when price closes above the 26 EMA
Best Used On
Daily timeframe
SPY, SPX, QQQ, IXIC only
With trend, volume, or broader market context
Fractional + Heikin-Ashi Candlestick – CF / ABNew model of Candlestick, Tis model constructed on Fractional Calculus mathematical, use two kernel - Caputo-Fabrizio and Atangana-Baleanu.
Always In by Swing BreakIndicator: Always-In by Swing Break
Purpose:
This indicator tracks when the market transitions from one directional phase to another — the moment when it stops doing what it was doing and starts doing something new. It follows an “Always-In” logic inspired by Al Brooks’ price-action framework.
Always-In by Swing Break
Tracks directional shifts based on confirmed swing-high and swing-low breaks using ATR buffers. Highlights trend flips with yellow borders, paints directional bias (green/red), plots a customizable dashed “must-hold” line, and marks breakout failures (FS/FL).
Includes RTH/ETH bar numbering with OB/OS awareness and a live stats panel showing ATR, bar range, and RSI.
How to Use:
Follow the colored borders to stay aligned with the Always-In direction — green for long bias, red for short. A yellow border marks a possible trend flip when price breaks a confirmed swing level by the ATR buffer. Use the dashed flip-line as the “must-hold” level: if price closes back beyond it within the failure window, it signals a potential reversal (Failed short (FS) / Failed long (FL) marker). Watch RTH bar numbers and the RSI panel for context — when bar counts and RSI show overbought or oversold conditions the bar numbers change color, tighten profit targets or wait for a new swing break setup.
Bring the indicator to the front-
On the chart, hover over the indicator’s name in the top-left.
Click the three dots (⋯) menu.
Choose visual order “Move to” → “Bring to front”
XAUUSD 4H Candle Close Vertical Lines + Labels (debug)//@version=5
indicator("XAUUSD 4H Candle Close Vertical Lines + Labels (debug)", overlay=true)
// Detect when a new 4H candle closes
new_4h_candle = ta.change(time("240"))
// Debug: show tiny shape when detection happens (remove later if not needed)
plotshape(new_4h_candle, title="4H close detected", style=shape.triangleup, location=location.belowbar, size=size.tiny)
// When a new 4H candle closes, draw a vertical dotted blue line and a label
if new_4h_candle
// vertical line at current bar_index
line.new(
x1=bar_index,
y1=na,
x2=bar_index,
y2=na,
xloc=xloc.bar_index,
extend=extend.both,
color=color.new(color.blue, 0),
style=line.style_dotted,
width=1)
// label at the low of the bar (adjust y if you want it elsewhere)
label.new(
x=bar_index,
y=low,
text="4H Close " + str.format("{0,time,HH:mm}", time),
xloc=xloc.bar_index,
style=label.style_label_down,
color=color.new(color.blue, 85),
textcolor=color.white,
size=size.tiny)
EMA Crossover with RSI Signals( Khalid)This script includes:
Key Features:
Strong Buy Signal: Green upward triangle below the bar when:
9 EMA crosses above 21 EMA
RSI is above 55
Strong Sell Signal: Red downward triangle above the bar when:
9 EMA crosses below 21 EMA
RSI is below 45
Visual Elements:
Yellow 9 EMA line
Orange 21 EMA line
Purple RSI line in a separate window
Clear buy/sell signals with labels
Background coloring when RSI is in buy/sell zones
Information table showing current RSI and EMA9 values
Customization:
You can adjust all parameters in the settings:
EMA lengths
RSI length
RSI buy/sell levels
How to use:
Copy this code into TradingView's Pine Editor
Add it to your chart
The signals will appear as triangles with "STRONG BUY" or "STRONG SELL" labels
Alerts will trigger when signals occur
The script also includes background coloring to help visualize when RSI is in favorable conditions for potential trades.






















