MaayaBullishPRODstrategy based on moving averages strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
Chỉ báo và chiến lược
Pythia v0.5.5 Lite Pythia — v0.5.5 Full / Lite
Saël Lab | AI-assisted market structure & divergence system
This description refers to the Full version (v0.5.5) of Pythia — the complete system for detecting divergence, momentum decay, and reversal energy zones in real time.
The Lite version includes the same core logic but with certain limitations and simplified visualization.
🔹 Core features:
— Smart divergence detection (hidden & regular)
— Early warning markers (color triangles)
— Forecast zones of possible reversal (E-zones)
— Integrated impulse/mass logic
— Optimized for all assets and timeframes
📘 Variable reference / documentation:
EN drive.google.com
RU drive.google.com
Pythia — Examples of Work
Visual guide to Pythia’s market vision system.
This document showcases real market examples of how Pythia detects divergence, impulse exhaustion, and reversal energy zones — often long before classical indicators react.
Each case highlights the system’s key elements: early triangular markers, divergence confirmation, and forecast zones of trend reversal.
EN drive.google.com
RU drive.google.com
Saël Lab — Created through the dialogue of analysis and intelligence.
Safety Lines by CoinMetrikaSafety lines by CoinMetrika is an indicator of two or five MA's that demonstrate the potential for volatility within a trend.
You can select the Trade or Hodl mode in the settings. This will determine the number of sliding numbers displayed.:
- For the Trade mode, the chart shows 5 safety lines, which often serve as support or resistance lines.
- For Hodl mode, only 2 safety lines are displayed, which display the corridor in which the instrument is moving.
Volume + EMA(20) Overlay | Absorption & Exhaustion Detector🧠 Overview
This indicator combines Volume analysis with a 20-period Exponential Moving Average (EMA) applied directly to the volume histogram, allowing traders to easily detect absorption and exhaustion in market behavior.
It’s inspired by order-flow and smart money concepts, helping scalpers and day traders (especially on assets like Gold / XAUUSD, indices, or crypto**) spot areas where large participants are entering or exiting positions.
⚙️ How It Works
The indicator plots:
Red/Green Volume Bars:
Green = Bullish candle (close ≥ open)
Red = Bearish candle (close < open)
Grey EMA(20) Line:
Smooths the volume to show the “normal effort” threshold.
Blue Triangle (Absorption):
When volume is unusually high but candle size is small — shows strong absorption (buyers or sellers getting absorbed).
Yellow Triangle (Exhaustion):
When volume is low but candle size is large — shows weakening momentum (trend exhaustion).
🎯 Trading Logic
Behavior Meaning Possible Setup
🔵 Absorption (High Vol + Small Candle)
Meaning: Institutional absorption, potential reversal.
Possible Setup: Wait for confirmation candle in opposite direction
🟡 Exhaustion (Low Vol + Large Candle)
Meaning: Trend losing steam, fake breakout likely
Possible Setup: Prepare for retracement or exit partials
🕒 Best Timeframes
Works across all assets and timeframes, but performs best for:
Scalping or day trading: 1m – 15m
Swing confirmation: 1h – 4h
💡 Ideal Pairings
Combine with:
VWAP for directional bias
Cumulative Volume Delta (CVD) for confirmation
Fixed Range Volume Profile for confluence zones
ICT Killzones to trade only in high-liquidity sessions (London / New York)
🔧 Settings
EMA Length: 20
Bar Colors: Green/Red by candle direction
EMA Line Color: Grey
Absorption & Exhaustion Markers: Enabled by default (optional visual cues)
🧩 How to Read It
When volume rises above EMA(20) → strong effort from market participants.
When price moves a lot but volume stays below EMA(20) → fake move, trend losing power.
When high volume with no price progress → accumulation or distribution by large players.
🧰 Script Details
Language: Pine Script v6
Overlay: No (separate panel under chart)
Compatible: All symbols and brokers
⚠️ Disclaimer
This script is for educational purposes only and should not be considered financial advice. Always confirm setups with your own strategy and risk management rules.
Volatility Heat-Map, momentum ribbon and divergence detector ✅ Summary:
This is a comprehensive volatility + momentum + volume + ATR dashboard with table visualization, momentum ribbon, and divergence detection. It’s optimized for visual clarity with dynamic coloring and is suitable for both trend-following and mean-reversion traders.
Table shows:
Oscillator values with arrows and K/D status.
Current & Daily ATR with tops/bottoms.
Volume & % change, rising/falling indicator.
Volatility regime (Low/Normal/High) with color coding.
Momentum strength (strong/weak bullish/bearish).
Oscillator
stoch = hh != ll ? 100 * (src - ll) / (hh - ll) : 0
k = smooth(stoch, kSmoothing)
d = smooth(k, dSmoothing)
Standard stochastic normalization.
Smoothing based on selected type (SMA/EMA/WMA).
diff between K and D is normalized for the momentum ribbon color:
Greenish for bullish, red for bearish, silver for neutral.
Overbought / Oversold lines: 80/20, midline at 50.
4. BBWP Calculation
bbwp = f_bbwp(i_priceSrc, i_bbwpLen, i_bbwpLkbk, i_basisType)
bbwpSMA5 = f_maType(bbwp, 5, "SMA")
Heatmap Thresholds:
Low < 15%
High > 85%
Otherwise Normal.
Colors dynamically assigned for histogram and table background.
Plotted as columns if table
Bullish and Bearish divergence labels plotted, both regular and hidden.
Heikin Ashi EMA Strategy (MSB Gold)
### This is a Private, Invite-Only Strategy Script (XAUUSD H1)
You are viewing the backtest results of a highly profitable (3.6+ Profit Factor) trend-following strategy for Gold (XAUUSD) on the H1 timeframe.
This strategy is based on the popular Heikin Ashi + EMA Crossover video, combining an H1 setup with an H4 trend filter.
---
### HOW TO GET FREE ACCESS TO THIS INDICATOR
This is a premium script, but I am offering **100% FREE access** to all active subscribers of my official MQL5 Signal service: **"MSB Dynamic Gold Signal"**.
By subscribing to the MQL5 signal, your MT5 account will automatically copy all my trades. As a bonus, I will give you access to this TradingView script so you can see the exact same signals on your own charts!
**How to get access (2 Steps):**
1. **Subscribe** to our official MQL5 Signal here:
**https://www.mql5.com/en/signals/2341730**
2. **Send me a Private Message** here on TradingView. Include a screenshot of your active MQL5 subscription.
3. I will verify your subscription and grant your TradingView username access to this script.
Thank you,
MSB Gold Pro Team
Lot Size Calculator by MR1561Overview
Size your position on GOLD (XAU) directly from your risk in USD and the two lines you place on the chart (Entry & Stop). The script measures that price distance, calculates the lot size, draws clear Risk/Reward boxes, and shows a clean 2-column table with: Risk, Entry, Stop, Target (from R/R), Lots, and Pips.
How to use
Step 1: Add the indicator to an XAU chart (e.g., XAUUSD).
Step 2: In Inputs, set your Risk $.
Step 3: Place/adjust the Entry and Stop lines on the chart.
Step 4: Read "Lots" in the table and trade with consistent sizing.
Features
- GOLD-only display (detects XAU symbols)
- Lot sizing from Risk $ and price distance (Entry vs Stop)
- Auto Target from R/R, plus Risk/Reward boxes
- Compact on-chart table (toggle rows: Risk, Entry, Stop, Target, Lots, Pips)
- Fully customizable colors, opacity, table position, frame/border width
- Lightweight and fast; designed for clean overlays
Inputs
- Risk $: your dollar risk per trade
- Entry Price, Stop Loss: adjustable lines on chart
- R/R: target is auto-calculated from risk distance and ratio
- Appearance - Boxes: colors & opacity for Risk/Reward areas
- Appearance - Table: position (top/bottom, left/right), alternating row colors, frame/border width
- Table - Rows: show/hide each row
- Appearance - Layout: horizontal span (bars) for lines/boxes
حجم معامله روی طلا (XAU) را مستقیماً از «ریسک دلاری» و دو خطی که روی چارت میگذارید (Entry و Stop) محاسبه میکند. فاصلهٔ قیمتی را اندازه میگیرد، حجم (لات) را حساب میکند، باکسهای Risk/Reward را رسم میکند و یک جدول دو ستونه از مقادیر مهم نشان میدهد: Risk، Entry، Stop، Target (از R/R)، Lots و Pips.
روش استفاده
اندیکاتور را روی چارت XAU (مثل XAUUSD) اضافه کنید.
در تنظیمات مقدار Risk $ را تعیین کنید.
خطوط Entry و Stop را روی چارت جابهجا/تنظیم کنید.
مقدار Lots را در جدول بخوانید و با سایز یکپارچه معامله کنید.
ویژگیها
نمایش فقط روی نمادهای XAU
محاسبهٔ حجم از روی Risk $ و فاصلهٔ قیمتی (Entry تا Stop)
محاسبهٔ خودکار Target بر اساس R/R و رسم باکسهای ریسک/ریوارد
جدول جمعوجور با امکان روشن/خاموش کردن سطرها (Risk, Entry, Stop, Target, Lots, Pips)
شخصیسازی کامل رنگها، شفافیت، موقعیت جدول و ضخامت قاب/بوردر
سبک و سریع؛ مناسب برای نمایش تمیز روی چارت
ورودیها
Risk $ (ریسک دلاری هر معامله)
Entry Price و Stop Loss (قابل تنظیم روی چارت)
R/R (تارگت بر اساس نسبت ریسک به ریوارد محاسبه میشود)
ظاهر – باکسها، ظاهر – جدول، جدول – ردیفها، ظاهر – چیدمان
Changelog
v1.0 - Initial public release (core lot sizing, risk/reward boxes, compact table, styling options)
Credits
Created by MohammadReza.
M2 Global by CoinMetrikaThe M2 Global Money supply chart from CoinMetrika contains many additional settings.
The indicator is used on the BTC 1D chart on any exchange.
A shift by any number of bars is available. For example, the BTC and M2 correlation index from Coinbase uses a 110-day shift. You can use the same shift or an arbitrary one.
M2 graph smoothing is also available to eliminate noise.
In addition, the composition of the M2 Global by CoinMetrika index is configurable. You can disable the continent or state in the settings so that the index is built without taking it into account.
Simple Sector/MarketCapSimple Sector & Market Cap
A lightweight overlay that instantly shows Sector, Industry, and Market Cap classification for any ticker — right on your chart.
Features
Auto-detects sector and industry from TradingView data.
Calculates real-time market capitalization.
Categorizes stocks into Mega / Large / Mid / Small / Micro Cap groups.
Customizable colors for table background, text, and cap tiers.
Choose between vertical or horizontal layout and adjustable text size.
Purpose
Quick context without clutter — see what kind of company you’re trading and how it fits into the market hierarchy. Ideal for traders who like fast reference to fundamentals while scanning charts.
Notes
No external data sources are required. Values are derived from TradingView’s internal financial dataset.
1DALSbello gagliardo su tutti i time frame, funziona bene provalo e commentami. sono felice di spiegarti .Nice and strong on all time frames, it works well, try it and let me know. I'm happy to explain.
Lot Size Calculator by MohammadRezaOverview:
Size your position from your risk in USD and the two lines you place on the chart (Entry & Stop). The script measures that price distance, draws Risk/Reward boxes, and shows a compact table with Risk, Entry, Stop, Target (from R/R), Lots, and Pips—so you instantly know what lot size to use.
How to use:
1. Add the indicator to an XAU chart.
2. Set “Risk $” in Inputs.
3. Place/adjust the Entry and Stop lines on the chart.
4. Read “Lots” in the table and trade with consistent sizing.
Inputs:
* Risk $ (your dollar risk per trade)
* Entry Price and Stop Loss (can be adjusted on chart)
* R/R (auto-calculates Target)
* Appearance options for risk/reward boxes, table position/colors, and layout
Notes:
* Gold-only display (XAU).
* Table rows can be toggled (Risk, Entry, Stop, Target, Lots, Pips).
* Fully customizable colors and widths.
* Educational tool; verify contract specs with your broker.
PA + Volatility + Volume Confluence (3/3) — v5A non-repainting confluence indicator that flags high-quality long/short opportunities only when price action (structure), volatility/momentum, and volume all agree (3/3). It can also show “heads-up” 2/3 setups and a mini dashboard of the three pillars.
Volatility Contraction PatternThe Volatility Contraction Pattern (VCP), popularized by Mark Minervini, is a price-action formation that reflects supply drying up and institutional accumulation before a breakout. A proper VCP demonstrates a prior uptrend, constructive base development, sequential declines in downside volatility, and evidence of institutional accumulation.
This indicator identifies and tracks VCP behavior by mapping successive contraction legs (up to five), verifying that each pullback forms a higher low with diminishing depth, and highlighting when the final contraction tightens sufficiently relative to earlier legs. A dynamic pivot line highlights the key breakout level, and a confirmation trigger signals when price breaks above that pivot.
A classic VCP typically includes:
A strong prior uptrend into the base
2–5 tightening pullbacks (contractions) with higher lows
Decreasing volatility and often reduced volume
A clear pivot level (last swing high)
Breakout through the pivot as demand overwhelms supply
The psychology: early sellers are absorbed, weak holders exit, and stronger hands take control — setting up for a powerful upside move.
How This Indicator Identifies VCPs
This script automatically tracks price swings to detect VCP-style contraction sequences. It:
Anchors to an initial swing high and low
Identifies each subsequent contraction when price pulls back and then moves back up
Ensures each contraction is higher-low + shallower than the prior
Verifies a minimum contraction bar count to avoid noise
Tracks up to five contractions (C1 → C5)
Confirms a valid VCP when the final contraction tightens within a user-defined threshold
Marks the pivot (last contraction high)
Triggers a breakout signal when price exceeds that pivot
Indicator Settings & Features
Contraction Display
Plots each contraction leg and base structure
Supports curved or straight visual style
Optionally labels each contraction with its depth (% decline)
This helps quickly evaluate whether volatility is truly contracting.
Contraction Depth Controls
Maximum Depth — filters out patterns with overly deep first-leg pullbacks
Final Contraction Depth — requires the last pullback to be especially tight, as Minervini describes
This ensures the base tightens toward the right side — a key VCP principle.
Breakout Logic
Breakout confirms when price exceeds the pivot high
Triangle marker plots at breakout candle
Reset & Threshold Logic
A small threshold buffer prevents false pattern resets when price slightly exceeds highs
Auto-reset after excessive depth or extended time to avoid stale patterns
Alerts
VCP Forming when a qualifying contraction sequence completes
VCP Breakout when price clears the pivot
True Opens (TDO/TWO/NYAM etc.)+ First FVG - Milana TradesThis indicator combines multiple "True Open" levels with the visualization of the first Fair Value Gap (FVG) following key market opens.
Key Features:
True Opens (TDO, TWO, TAO, TLO, NYAM, TNY):
TDO (True Day Open): Displays the start of the trading day (00:00 NY time) with customizable line style, color, and label.
TWO (True Weekly Open): Marks the start of the week (Monday 18:00 NY time) with visual lines and optional labels.
TAO (True Asian Open): Highlights the opening of the Asian session (19:30 NY time), allowing traders to track early Asian session activity.
TLO (True London Open): Marks London session open (01:30 NY time), providing insight into the first European market activity.
NYAM (New York AM Open): Marks 09:30 NY time, often a key liquidity spike period.
TNY (True New York Open): Highlights the full New York session open (07:30 NY time), useful for pre-market and early NY session trading.
All lines are fully customizable in color, style, width, and label visibility. Lines can also be extended to the right for better visual tracking.
First FVG After Open:
Automatically detects the first Fair Value Gap (FVG) following each session open.
Supports both bullish and bearish FVGs, displayed with distinct colors and transparency.
Mitigation detection highlights gaps that have already been touched or partially filled, using a softer color for clarity.
Why the first FVG matters:
The first gap after an open often indicates the initial imbalance of the session.
These gaps can act as high-probability zones for retracement or continuation trades, providing early-session trade opportunities.
Daily & Weekly Initial Range Boxes:
Visualize daily (00:00–01:00 NY) and weekly (Monday 18:00–19:00 NY) initial ranges.
Boxes update dynamically with price movement during the session.
Optional range info in pips to quantify volatility and potential targets.
Customizable Appearance:
Choose colors for bullish, bearish, and mitigated FVGs.
Adjust line styles (solid, dashed, dotted), widths, labels, and extensions for all opens.
Transparency settings for IB boxes allow clear chart readability without clutter.
Historical Options:
Enable prior day/week visualization to analyze session behavior and recurring patterns.
Why Traders Use This Indicator:
Early session clarity: Knowing the true session opens and first FVGs helps traders spot high-liquidity zones and potential reversals.
Structure-based trading: Combines session open levels with FVGs, aligning with professional market structure strategies.
Candlestick Pattern DectectorCandle Pattern Detector is a price action tool that scans every candle in real time and tags the major reversal and continuation patterns for you. Instead of guessing what you are seeing on the chart, this script reads the structure of each candle, compares it to recent volatility, and then prints a clear trade bias: Long, Short, or Neutral.
The script measures body size, total range, and wick length over a customizable lookback period so it can filter out tiny, meaningless candles and focus on decisive moves. From there it automatically detects:
Doji (neutral, potential reversal zones)
Hammer and Hanging Man
Inverted Hammer and Shooting Star
Bullish and Bearish Engulfing
Morning Star and Evening Star
Piercing Line and Dark Cloud Cover
Three White Soldiers and Three Black Crows
When a valid pattern forms, the indicator prints a color-coded label on the chart that includes both the pattern name and the suggested signal. Green labels and triangle-up markers highlight Long setups. Red labels and triangle-down markers highlight Short setups. Doji and other neutral reads are shown as informational only so you can pay attention to possible turning points.
Alerts are built in so you do not have to stare at the screen. Turn on alerts once, choose Long and/or Short, and the script will notify you when a new pattern and signal are printed at bar close. The lookback period, alerts, and labels can all be toggled in the inputs to fit your style, whether you are scalping intraday or swing trading higher time frames.
Use Candle Pattern Detector as a decision support tool: line it up with your own key levels, higher time frame trend, and risk management plan. It will handle the pattern recognition work so you can stay focused on execution.
Reddington SOL/ETH Scalp Reddington Sol/Eth Scalp
Type: Indicator (manual trading helper, Pine v5)
Markets: Crypto futures (recommended: SOLUSDT Perp, ETHUSDT Perp)
Timeframes: 3–5 minutes
Style: Minimalist visual (triangles only) + static table with all levels
What it does
A clean intraday signal tool that locates VWAP pullback entries aligned with higher-timeframe trend and micro-trend quality.
On chart, it draws only entry triangles on the signal bar:
LONG: green triangle at high + 1×ATR
SHORT: red triangle at low − 1×ATR
All actionable numbers live in a static table (top-right):
Signal (LONG/SHORT)
Entry (TVH)
SL
TP1 (optional)
TP2 (main target)
RR (live while in trade; after exit shows last realized RR)
Signals/day (daily signal count)
When no position is open, cells are blank (except Signals/day and the last RR).
Signal logic (high level)
HTF Trend Agreement
EMA200 (1h) and EMA50 (15m) via request.security w/ lookahead_off.
Local Trigger
Price crosses VWAP in trend direction + EMA(5) vs EMA(9) confirmation.
Quality Filters
ATR/volatility band, Volume (SMA20), ADX threshold (micro-trend strength).
Sessions
EU + US windows enabled by default (UTC; configurable).
Anti-Overtrading
Cooldown after SL, daily caps for losers and total signals.
Default behavior: signals are confirmed on bar close (recommended). You may toggle intrabar confirmation in inputs, but use with caution.
How to trade it (manual process)
Timeframe: 3–5m
Symbols: SOL/ETH perpetuals (or other liquid pairs after tuning)
Wait for the triangle on the signal bar.
Read the table’s Entry (TVH): that’s your reference entry (default = close of the signal bar; or VWAP if VWAP-limit is enabled).
SL/TP levels in the table update automatically:
SL = Entry ± ATR × multiplier
TP2 = Entry ± ATR × multiplier
TP1 = 0.5 × TP2 (optional)
Manage risk per your plan (fixed % risk per trade recommended).
Use the RR line to assess reward vs risk; after exit, table keeps the last realized RR.
Respect cooldown and daily caps to avoid revenge trades.
Inputs (key settings)
Mode: Conservative / Balanced / Aggressive (presets for ADX, ATR multipliers, cooldown, daily caps)
Manual Override: customize any parameter on top of the preset
Sessions (UTC): EU window, US window toggles
ADX: period, min threshold
ATR: period; multipliers for SL and TP2; TP1 = 0.5×TP2 toggle
Anti-Overtrading: cooldown bars after SL; max losers/day; max signals/day
Execution:
Confirm on bar close (recommended ON)
VWAP-limit entry (maker idea; reduces slippage but fewer fills)
Alerts: enable + choose “only on bar close” if desired
Alerts (alertcondition)
This indicator provides alert conditions for:
ENTRY LONG
ENTRY SHORT
TP1
TP2
SL
Tip: Run alerts on bar close to avoid intrabar noise. Use your preferred routing to bots/notifications.
Recommended presets (Balanced mode, 3–5m)
SOL (SOLUSDT Perp)
3m
ADX: period 14, min 18–20
ATR: period 14 → SL = ATR × 0.70, TP2 = ATR × 0.90, TP1 = 0.5×TP2 (on)
Sessions: EU 08:00–16:00, US 13:30–20:30 (on)
Anti-overtrading: cooldown 3 bars; max losers/day 2; max signals/day 6
Execution: confirm on close = on; VWAP-limit = on
5m
ADX min ≈ 18, SL = ×0.75, TP2 = ×0.95
ETH (ETHUSDT Perp)
3m
ADX: period 14, min 18–20 (18 often enough on ETH)
ATR: period 14 → SL = ×0.65–0.70, TP2 = ×0.95–1.10 (start at 1.00; go 1.10 in strong trends)
TP1: optional (can be off for faster scalps)
Sessions: EU 08:00–16:00, US 13:30–20:30 (on)
Anti-overtrading: cooldown 3 bars; max losers/day 2; max signals/day 6
Execution: confirm on close = on; VWAP-limit = on
5m
SL = ×0.70, TP2 = ×1.00, ADX min ≈ 18
Day-to-day tweaks
High volatility: raise SL (SOL 0.80 / ETH 0.75), trim TP2 by ~0.05–0.10
Strong trends: increase TP2 by +0.10; keep VWAP-limit on
Flat market: raise ADX min by +2; reduce max signals/day
Pre-session checklist
3m/5m + Balanced preset
EU+US sessions on
SL×ATR / TP2×ATR / ADX min match current volatility
Confirm on close ON; VWAP-limit ON if you prefer maker entries
Cooldown & daily caps set
Repainting/behavior notes
Uses request.security(..., lookahead_off) and bar-close confirmation by default.
No repainting after bar close. If you disable “confirm on close,” intrabar triangles may appear/disappear—use with caution.
This is an indicator, not a strategy; it does not model fills/fees/leverage.
Limitations
Designed for manual trading; not an auto-execution system.
Filters may skip long flat/noisy periods — this is intended to preserve quality.
Performance depends on instrument behavior and your execution/risk rules.
Always forward-test on replay/paper before going live.
Disclaimer (for TradingView publication)
Educational tool only — not financial advice.
Futures and margin trading carry a high level of risk and may not be suitable for all investors. You can lose more than your initial investment. Past performance does not guarantee future results. The author and this script do not provide investment, legal, tax, or financial advice and shall not be liable for any loss or damage arising from the use of this indicator or reliance on the information provided. By using this script, you acknowledge that you are solely responsible for your trading decisions. Always do your own research and test on replay/paper before live trading.
XAutoTrade Alert BuilderAutomate 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)
Documentation & Support
Full setup guide and API reference available at:
www.xautotrade.com
License: Mozilla Public License 2.0
---
Note: This strategy is designed for use with the XAutoTrade automation service. A valid XAutoTrade
subscription and NinjaTrader setup is required for live trading functionality.
TPAmacd — Free MACD with Divergence (by TPA OG)💎 TPAMACD — Free by TPA OG
The most powerful MACD divergence indicator on TradingView — designed for traders who demand clarity, precision, and results.
🎯 What Makes TPAMACD Different
TPAMACD automatically detects bullish & bearish divergences, adapts to any timeframe, and alerts you the moment momentum shifts — all in one clean visual package.
🔹 Auto-detected Bullish / Bearish Divergences
🔹 Multi-Timeframe MACD Confirmation
🔹 Alerts for Histogram Reversals
🔹 Fully Customizable Colors & MA Types (EMA / SMA)
⚡ Combine TPAMACD + TPA OG = Pro Level Accuracy
Used together with the original TPA OG – Trend & Price Action Pro, traders gain next-level signal confirmation and trend precision — achieving up to 92 % accuracy in trending markets.
🔥 Join the TPA OG ecosystem — advanced tools built for serious traders who want consistency, control, and clarity across Forex, Crypto, and Stocks.
📬 Follow TPA OG on TradingView to get more free indicators, updates & trading insights, and join the official telegram channel t.me
#TPAMACD #TPAOG #MACD #Divergence #MultiTimeframe #Trading #Forex #Crypto #Stocks #Scalping #SwingTrading #TrendFollowing #TechnicalAnalysis #TradingView #FreeIndicator
Check-listThis Entry Checklist helps you stay objective in your trades. If you enter a position, it’s because you’ve checked off the boxes of your different confluences.
If you haven’t checked them, the checklist will immediately show you that.
📊 ORB 30-Min Breakout📊 ORB 30-Min Breakout (NQ 3-Min)
This script automates one of the most classic and popular day trading strategies: the Opening Range Breakout (ORB).
The entire philosophy is based on the idea that the first 30 minutes of the US market open (9:30 - 10:00 AM CT for futures) establishes the day's initial high and low. The first breakout of this range often dictates the primary direction for the rest of the session.
This indicator is designed to find this one high-probability trade per day and filter out all the noise.
⭐ Core Features
Automatic Range Plotting: Automatically detects and draws the Range High (green), Range Low (red), and Midpoint (dashed) from your 30-minute opening window.
"Anti-Fakeout" Entry Logic: This is not a simple "price crossed a line" script. By default, it requires two things for a valid signal:
Candle Close Confirmation: The breakout candle must CLOSE outside the range, not just wick through it. This is your primary filter against "stop hunts" and "fakeouts."
Volume Surge Confirmation: The breakout candle must have a surge in volume (default 1.5x the average). This confirms conviction behind the move.
"One-and-Done" Logic: This system is built to take only the first valid breakout of the day (either long or short). If a LONG signal appears, the script will not look for any SHORT signals afterward, and vice-versa. This prevents over-trading and getting chopped up in "whipsaw" conditions.
Full Trade Plan on Every Signal: Every valid signal arrow (▲/▼) prints a label with the entire trade plan:
Entry Price (close of the signal candle)
Stop Price (the opposite side of the range)
Target Price (based on your Risk:Reward settings)
Range Size (in points)
Status HUD: A clean on-screen display shows the current status (BUILDING RANGE..., 🎯 READY, ✅ POSITION TAKEN), the key price levels, and which (if any) trade has been taken for the day.
Alerts Ready: You can create alerts for "ORB LONG" and "ORB SHORT" to get notified of new signals.
📈 How to Trade This Strategy (The Rules)
This is designed to be a systematic, non-discretionary strategy.
1. The Setup (9:30 - 10:00 AM CT)
DO NOTHING. During this period, the chart background will be yellow.
The script is "Building the Range" by logging the highest high and lowest low.
At 10:00 AM CT, the Range High (green line) and Range Low (red line) will appear and extend across your chart.
2. The Trading Window (After 10:00 AM CT)
The chart background will turn blue. This means the script is "Ready" and is now actively hunting for a breakout.
Your only job is to wait for the first valid signal.
3. Taking a LONG Trade
Entry: Wait for a LONG (▲) arrow and label to appear.
What this means: A candle has closed above the Range High (green line) and it did so with a Volume Surge (if enabled).
Stop Loss: Your stop loss is the Range Low (red line).
Take Profit: The label provides a target based on your R:R setting (default 2:1). For example, if the range is 30 points, your risk is 30 points, and your target will be 60 points from your entry.
4. Taking a SHORT Trade
Entry: Wait for a SHORT (▼) arrow and label to appear.
What this means: A candle has closed below the Range Low (red line) and it did so with a Volume Surge (if enabled).
Stop Loss: Your stop loss is the Range High (green line).
Take Profit: The label provides the target price.
5. Key Management Rules
ONE AND DONE: This is the most important rule. The script will only give you one signal per day (the first one that triggers). If you get a LONG signal at 10:15 AM, you are done for the day. You do not take a SHORT signal that may appear at 11:30 AM.
NO TRADE IS A TRADE: On some days, the price will never break out. It may chop around inside the opening range all day. On these days, no signal will appear. This is a feature, not a bug—it has kept you out of a non-trending, "chop" market.
❓ Frequently Asked Questions (FAQ)
Q: This is the MOST important setting: What is the Timezone Offset? A: The script is built for futures, which operate on CT (Chicago Time). The 9:30-10:00 AM window is in CT. You MUST set this offset if your chart is in a different timezone.
If your TradingView chart is set to New York (EST/EDT): Set Timezone Offset to +1.
If your TradingView chart is set to Los Angeles (PST/PDT): Set Timezone Offset to -2.
If your chart is set to Chicago (CST/CDT): Set Timezone Offset to 0.
Q: Price broke the line, but no signal printed! Why? A: This is almost always your filters working correctly! The 4 most common reasons are:
No Close: The Require Close Outside Range filter is ON, and the price only wicked through the line before closing back inside. This is a "fakeout," and the script successfully filtered it.
No Volume: The Require Volume Surge filter is ON, and the breakout candle had weak, unconvincing volume. The script ignored it.
Trade Already Taken: A signal already happened earlier in the day. The "One-and-Done" logic is active, and the HUD will say "POSITION TAKEN."
Outside Trading Window: The breakout happened after your "Stop Trading After (CT)" time (default 15:00 / 3 PM CT).
Q: What is the best timeframe and asset? A: This script was built and optimized specifically for the NQ (Nasdaq 100 Futures) 3-minute chart. It can also be effective on the ES (S&P 500 Futures) 3-min or 5-min chart.
Q: What if the Opening Range is huge (e.g., >80 points on NQ)? A: This is a point of professional discretion. A very large range means your stop loss (the opposite side of the range) will be very wide, representing a large amount of risk. On extremely volatile days, many traders will either skip the ORB trade or trade with a much smaller position size.
Q: Can I turn off the confirmation filters? A: Yes. In the settings, you can uncheck Require Volume Surge and Require Close Outside Range. This will make the script much more aggressive and will result in many more signals, but also many more "fakeouts." It is not recommended until you are an advanced user of this strategy.
UltimateFlow by Kate V0.1 [ultimateflow]Ultimate Flow Script: Tracks market structure breaks, buy/sell entries (CE/SE), and trends with a Zero Lag SMA. Highlights Bullish & Bearish Order Blocks (OB, BB, MM) with dynamic boxes and tiny labels. Zigzag swings visualize market structure for smart entries. Play with the various settings to suit your trading style. Alerts available for MSB changes and price in OB zones.
Disclaimer: This script is for educational and informational purposes only. It should be used in line with your own trading strategy, risk management, and discretion. Past performance is not indicative of future results.
This script is designed for price action, market structure, and order block analysis on TradingView. It includes:
Buy & Sell Signals (CE/SE) – Highlights potential entries based on market structure breaks and trend changes. Mini triangles or markers indicate possible reversals.
Zero Lag SMA (ZSMA) – Smooths price action for trend confirmation without delay. Helps identify trend direction and support/resistance areas.
Order Blocks (OBs) – Highlights key Bullish (Bu-OB) and Bearish (Be-OB) order blocks on the chart. Boxes dynamically extend as price evolves and include tiny labels (Bu-OB, Be-BB, MM, etc.) for clarity.
Zigzag Market Structure – Draws swing highs and lows to visualize market structure breaks (MSB).
How it works:
OB boxes extend automatically and change when price breaks them.
CE/SE markers help identify high-probability trade entries.
ZSMA confirms trend direction.
Alerts can be set for MSB changes or when price enters an OB zone.
UltimateFlow by Kate V0.1 [ultimateflow]Ultimate Flow Trading Script
This script is designed for price action, market structure, and order block analysis on TradingView. It includes:
Buy & Sell Signals (CE/SE) – Highlights potential entries based on market structure breaks and trend changes. Mini triangles or markers indicate possible reversals.
Zero Lag SMA (ZSMA) – Smooths price action for trend confirmation without delay. Helps identify trend direction and support/resistance areas.
Order Blocks (OBs) – Highlights key Bullish (Bu-OB) and Bearish (Be-OB) order blocks on the chart. Boxes dynamically extend as price evolves and include tiny labels (Bu-OB, Be-BB, MM, etc.) for clarity.
Zigzag Market Structure – Draws swing highs and lows to visualize market structure breaks (MSB).
How it works:
OB boxes extend automatically and change when price breaks them.
CE/SE markers help identify high-probability trade entries.
ZSMA confirms trend direction.
Alerts can be set for MSB changes or when price enters an OB zone.
Momentum Master v1Momentum Master v1 - Multi-Strategy Trading System
This script implements a trading system that integrates standard indicators (EMA, RSI, MACD, Bollinger Bands):
1. ADAPTIVE CONFIDENCE-BASED POSITION SIZING: Each signal receives a real-time confidence score (0-100%) calculated using a proprietary weighted algorithm. This confidence score dynamically adjusts stop loss distance (80%+ confidence = 1.2x stops, <60% = 0.9x stops), creating intelligent position sizing based on signal quality. This is NOT found in any standard indicator combination.
2. MULTI-LEVEL TP ANALYTICS WITH INDEPENDENT WIN RATE TRACKING: Each take profit level (TP1-TP6) maintains separate win rate statistics, enabling data-driven optimization. Traders can disable underperforming TP levels and focus on high-performers based on actual market data. This is NOT just multiple exit levels - it's a performance optimization system.
3. UNIVERSAL FILTER INTEGRATION: All filters (RSI, ADX, Volume, Divergence, Order Blocks) work identically across all 6 strategies using unified logic, creating a modular testing environment. This allows traders to test filter combinations on any strategy - a capability not found in standard scripts.
WHY THIS IS WORTH PAYING FOR (Despite Using Standard Indicators)
While this script uses standard indicators (EMA, RSI, MACD, BB), the value lies in the ORIGINAL INTEGRATION and PROPRIETARY SYSTEMS listed above. Standard indicators are used as INPUTS to these original systems, not as the core value. The proprietary confidence scoring algorithm, adaptive position sizing, and multi-level TP analytics are original innovations that cannot be found in free scripts or standard indicator combinations.
---
CORE INNOVATION: UNIFIED ARCHITECTURE
This script implements a TRUE UNIFIED SYSTEM where 6 independent trading strategies share:
- The SAME risk management system (not separate systems per strategy)
- The SAME universal filters (not strategy-specific filters)
- The SAME performance analytics (not separate tracking per strategy)
This unified architecture allows traders to:
- Switch between strategies without reconfiguring risk management
- Test filter combinations universally across all strategies
- Compare strategy performance using identical metrics
This is fundamentally different from scripts that simply display multiple indicators together. This is a unified system where components integrate to create intelligent trading decisions.
---
DETAILED METHODOLOGY (Specific Algorithms Used)
SIGNAL CONFIDENCE CALCULATION ALGORITHM
The proprietary confidence scoring system uses the following weighted algorithm:
Confidence Score = Base Strategy Signal (50 points)
+ Volume Confirmation Bonus (20 points if volume > threshold)
+ Volume Trend Bonus (10 points if volume increasing over 3 bars)
+ RSI Confirmation Bonus (10 points if RSI in neutral zone 30-70)
This creates a score from 0-100%. The score is then used to adjust stop loss distance:
IF confidence >= 80%: Stop Distance = ATR × Multiplier × 1.2
IF confidence >= 70%: Stop Distance = ATR × Multiplier × 1.1
IF confidence >= 60%: Stop Distance = ATR × Multiplier × 1.0
IF confidence < 60%: Stop Distance = ATR × Multiplier × 0.9
This adaptive system recognizes that high-confidence setups can withstand wider stops, while low-confidence setups need tighter risk control.
MULTI-LEVEL TAKE PROFIT SYSTEM WITH INDEPENDENT TRACKING
The script implements 6 progressive take profit levels (TP1-TP6) with the following risk/reward ratios:
- TP1: Entry ± (Stop Distance × 2.0) = 1:2 R/R
- TP2: Entry ± (Stop Distance × 4.0) = 1:4 R/R
- TP3: Entry ± (Stop Distance × 6.0) = 1:6 R/R
- TP4: Entry ± (Stop Distance × 8.0) = 1:8 R/R
- TP5: Entry ± (Stop Distance × 10.0) = 1:10 R/R
- TP6: Entry ± (Stop Distance × 12.0) = 1:12 R/R
ORIGINAL FEATURE: Each TP level maintains an independent array tracking wins and losses. The Performance Stats Table calculates separate win rates for:
- TP1 hits: Wins that reached TP1 / Total trades
- TP2 hits: Wins that reached TP2 (from trades that didn't stop at TP1) / Trades that reached TP2
- TP3 hits: Wins that reached TP3 (from trades that reached TP2) / Trades that reached TP3
- And so on for TP4-TP6
This allows traders to optimize which TP levels to enable based on actual market behavior. Example: If TP1 shows 65% win rate but TP2 shows 45%, disable TP2+ and focus on TP1 exits.
UNIVERSAL FILTER SYSTEM (Proprietary Integration)
All filters use identical logic across all 6 strategies:
RSI Filter Algorithm:
- Long entries: Only allowed when RSI < (Overbought Threshold - 5)
- Short entries: Only allowed when RSI > (Oversold Threshold + 5)
- This prevents entries at momentum extremes for ALL strategies
ADX Filter Algorithm:
- Checks if ADX > threshold (default 20) using Pine Script's built-in ADX calculation
- If enabled, ALL strategies (trend-following AND mean reversion) require ADX > threshold
- This ensures trades occur in trending markets, not choppy conditions
Volume Confirmation Algorithm:
- Requires volume > (Simple Moving Average of volume over 20 bars × multiplier)
- Applied identically to all strategies
- Ensures institutional participation
Divergence Filter Algorithm:
- Uses pivot detection (ta.pivotlow/pivothigh with 2-bar lookback)
- Compares price pivots to RSI/MFI pivots
- Requires minimum thresholds: RSI divergence >= 1.5, Price divergence >= 0.05
- Waits for divergence confirmation within lookback period (default 100 bars)
Order Block Filter Algorithm:
- Identifies last strong candle (body > 50% of range) before directional move
- Tracks direction: Bullish OB = strong bullish candle before upward move
- Filter: Only allows trades in direction of most recent Order Block
- This ensures alignment with institutional positioning
---
STRATEGY DETAILS (Specific Methods Used)
1. EMA CROSSOVER STRATEGY
Method: Exponential Moving Average Crossover with RSI Boundary Filtering
Algorithm:
- Fast EMA: Exponential Moving Average (close, period = 9 or custom)
- Slow EMA: Exponential Moving Average (close, period = 21 or custom)
- Entry Condition: Fast EMA crosses above Slow EMA (for longs)
- RSI Boundary Check: Entry only allowed if RSI < 70 (prevents overbought entries)
- Exit Condition: Fast EMA crosses below Slow EMA OR stop loss hit
Why This Method: Standard EMA crossovers generate false signals during choppy markets. The RSI boundary check (RSI < 70 for longs) prevents entries when momentum is already overextended, improving win rate by filtering out weak setups.
2. RSI MEAN REVERSION STRATEGY
Method: RSI Extreme Reversion with Candlestick Pattern Confirmation
Algorithm:
- RSI Calculation: Relative Strength Index (close, period = 14)
- Oversold Condition: RSI < 30 (default, configurable)
- Overbought Condition: RSI > 70 (default, configurable)
- Candlestick Filter: Requires bullish candle (close > open) for longs
- Volume Confirmation: Requires volume > (average × multiplier)
- Optional Price Level Filter: Requires price in bottom/top quartile of 10-bar range
Why This Method: Mean reversion works best when price is at true extremes AND showing reversal candles with volume. The optional filters add confluence, significantly improving win rate.
3. BREAKOUT STRATEGY
Method: Price Breakout with Volume Confirmation
Algorithm:
- Lookback Period: 20 bars (configurable)
- Breakout Condition: Close > highest high of last N bars (for longs)
- Volume Confirmation: Volume > Simple Moving Average of volume over 20 bars
- Entry: Triggers when price breaks recent high/low with volume
Why This Method: Breakouts signal momentum continuation. Volume confirmation ensures institutional participation, filtering false breakouts.
4. MACD CROSSOVER STRATEGY
Method: MACD Signal Crossover with Oversold/Overbought Entry Filter
Algorithm:
- MACD Calculation: Using Pine Script's ta.macd() with default periods (12, 26, 9)
- Entry Condition: MACD line crosses above signal line (for longs)
- Oversold Filter: Entry only when MACD < 0 (catches reversals, not late entries)
- Exit Condition: MACD crosses below signal line OR stop loss hit
Why This Method: Standard MACD crossovers can enter late in trends. Entering only when MACD is oversold (< 0) catches reversals rather than late trend entries, improving risk/reward.
5. BOLLINGER BANDS STRATEGY
Method: Bollinger Band Mean Reversion with RSI Confirmation
Algorithm:
- BB Calculation: Using Pine Script's ta.bb() with period 20, standard deviation 2.0
- Entry Condition: Price hits lower band (for longs)
- RSI Confirmation: Requires RSI < 40 (not extreme 30)
- Candlestick Filter: Requires bullish candle (close > open)
Why This Method: BB mean reversion works best with RSI confirmation. Using RSI 40/60 (not extreme 30/70) allows earlier entries while still confirming mean reversion.
6. VOLUME BREAKOUT STRATEGY
Method: Volume Surge with Price Strength Confirmation
Algorithm:
- Volume Surge: Volume > (average × 2.0 multiplier)
- Price Strength: |Close - Open| > (ATR × 0.5 multiplier)
- Direction: Bullish candle (close > open) for longs
- RSI Boundary: RSI < 70 (prevents overbought entries)
Why This Method: Institutional moves require both volume AND price movement. The ATR-based price strength filter ensures the move has momentum, not just volume noise.
---
ADVANCED MARKET ANALYSIS TOOLS (Integration Details)
FAIR VALUE GAPS (FVG)
Detection Algorithm: Identifies gaps between 3-candle sequences
- Bullish FVG: Low > High (gap between current low and high 2 bars ago)
- Bearish FVG: High < Low (gap between current high and low 2 bars ago)
- Size Filter: FVGs smaller than (ATR × 0.8 multiplier) are filtered out
- Integration: FVG boxes display on chart, but are NOT used in entry logic (display only)
ORDER BLOCKS
Detection Algorithm: Identifies last strong candle before directional move
- Strong Candle: Body > 50% of total range
- Bullish OB: Red candle followed by green candle with higher close
- Bearish OB: Green candle followed by red candle with lower close
- Integration: Order Block Filter aligns trade direction with most recent OB direction
LIQUIDITY ZONES
Detection Algorithm: Identifies swing highs/lows using pivot detection
- Buy-Side Liquidity: Swing highs (ta.pivothigh with configurable lookback)
- Sell-Side Liquidity: Swing lows (ta.pivotlow with configurable lookback)
- Integration: Display only - not used in entry logic
POINT OF CONTROL (POC) LEVELS
Calculation Methods:
1. Volume POC: Price level with highest volume in lookback period (recalculated every 5 bars)
2. Session POC: (High + Low + Close) / 3 of previous session
3. Daily POC: (High + Low + Close) / 3 of previous day
4. Weekly POC: (High + Low + Close) / 3 of previous week
- Integration: Display only - not used in entry logic
FIBONACCI EXTENSIONS
Calculation Method: 3-point swing-based extension
- Detects swing points using pivot detection (ta.pivothigh/pivotlow)
- Calculates extensions: 123.6%, 138.2%, 161.8%, 261.8%, etc.
- Golden Zone: Highlights 61.8%-78.6% retracement zone
- Integration: Display only - not used in entry logic
DIVERGENCE DETECTION
Algorithm: Pivot-based divergence detection
- RSI Divergence: Compares price pivots to RSI pivots using ta.pivotlow/pivothigh
- MFI Divergence: Same logic using Money Flow Index
- Thresholds: RSI divergence >= 1.5, Price divergence >= 0.05
- Integration: Divergence Filter waits for confirmation within lookback period
GANN FAN ANALYSIS
Algorithm: 9-angle fan with auto-adjustment
- Angles: 1x1, 1x2, 1x3, 2x1, 3x1, 4x1, 8x1, 1x4, 1x8
- Auto Timeframe Detection: Adjusts lookback (2D=120, 3D=150, 4D=160, 5D=180 bars)
- Auto Market Type Detection: Adjusts angle steepness (Crypto=15.0, Stock=10.0, etc.)
- Integration: Display only - not used in entry logic
---
PERFORMANCE ANALYTICS (Original System)
Three integrated display tables provide real-time analytics:
1. PERFORMANCE STATS TABLE
- Displays win rates for each TP level (TP1-TP6)
- Shows win count, loss count, and win rate percentage for each level
- Enables data-driven optimization of TP levels
2. SIGNAL OVERVIEW TABLE
- Real-time technical snapshot: RSI value, ATR, ADX, volume status
- Displays signal confidence score (0-100%)
- Shows volume trend direction
3. RISK MANAGEMENT TABLE
- Current trade direction (Long/Short/None)
- Consecutive losses counter
- Overall win rate
- Last 20 trade outcomes (visual W/L history)
All tables work identically regardless of which strategy is active, providing consistent analytics.
---
USAGE INSTRUCTIONS
Quick Start:
1. Select strategy from "Strategy Mode" dropdown
2. Configure risk (ATR length, SL multiplier)
3. Enable desired TP levels (TP1-TP3 recommended for beginners)
4. Add optional filters to reduce false signals
5. Configure display elements
Recommended Settings:
- Scalping (1m-5m): EMA Fast mode, RSI+ADX filters, TP1-3, SL 0.8-1.0x
- Swing (15m-4H): EMA Standard/Breakout, all filters, TP1-6, SL 1.0-1.5x
- Trend (Daily+): EMA Slow/MACD, ADX filter, TP4-6, SL 1.5-2.0x
---
TECHNICAL IMPLEMENTATION
Pine Script v6
Max Bars Back: 5000
Max Labels: 500
Data Structures:
- Arrays for trade tracking (entry, SL, TP1-6, direction, active status)
- Arrays for visual elements (lines, labels, boxes)
- State variables for signal processing
Performance Optimizations:
- Volume POC recalculated every 5 bars (not every bar)
- FVG/Order Block arrays limited to recent items
- Line extension system prevents excessive line creation
---
CONCLUSION
This script implements a unified trading system with three original innovations:
1. Adaptive confidence-based position sizing
2. Multi-level TP analytics with independent win rate tracking
3. Universal filter integration across all strategies
While standard indicators are used as inputs, the value lies in the proprietary integration and original systems that create intelligent position sizing and data-driven optimization capabilities not found in standard scripts.
---
For questions or access requests, visit the script page on TradingView.






















