Quality-Controlled Trend StrategyOverview
This strategy demonstrates a clean, execution-aware trend framework with fully isolated risk management.
Entry conditions and risk logic are intentionally separated so risk parameters can be adjusted without altering signal behavior.
All calculations are evaluated on confirmed bars to ensure backtest behavior reflects real-time execution.
Design intent
Many scripts mix entries and exits in ways that make results fragile or misleading.
This strategy focuses on structural clarity by enforcing:
confirmed-bar logic only
fixed and transparent risk handling
consistent indicator calculations
one position at a time
It is intended as a baseline framework rather than an optimized system.
Trading logic (high level)
Trend context
EMA 50 vs EMA 200 defines directional bias
Entry
Price alignment with EMA 50
RSI used as a momentum confirmation, not as an overbought/oversold signal
Risk management
Stop-loss based on ATR
Fixed risk–reward structure
Risk logic is isolated from entry logic
Editing risk without affecting signals
All stop-loss and take-profit calculations are handled in a dedicated block.
Users can adjust:
ATR length
stop-loss multiplier
risk–reward ratio
without modifying entry conditions.
This allows controlled experimentation while preserving signal integrity.
Usage notes
Results vary by market, timeframe, and volatility conditions.
This script is provided for testing and educational purposes and should be validated across multiple symbols and forward-tested before use in live environments.
Strategy!
finarchist| Risk Management/Multi-Tiered Position Terminalfinarchist | Risk Management/Multi-Tiered Terminal
This script, titled "finarchist | Risk Management/Multi-Tiered Terminal," is a professional-grade trading dashboard designed to transform how you manage complex trade entries. Unlike standard calculators, this terminal acts as a "mission control" for multi-tier positions, allowing you to scale into trades while maintaining absolute control over your risk.
Here is an overview of its strengths, advantages, and core capabilities:
Core Strengths:
* Institutional-Grade Risk Control: It moves you away from "guessing" position sizes. By inputting your desired dollar ($) risk, the script mathematically calculates the exact units you need to trade based on your stop-loss distance.
* Multi-Tier Architecture: It supports up to 10 independent tiers. This is perfect for traders who use "laddered" entries (scaling in) rather than entering with a single "all-in" position.
* Dynamic Visual Intelligence: The script projects your weighted average entry, stop loss, and target levels directly onto the price chart, giving you a clear visual map of your trade's "health."
Key Capabilities:
1. Unified Position Dashboard
The terminal creates a high-fidelity table on your chart that displays:
* Real-Time Unrealized P/L: See exactly how much you are up or down across all tiers combined.
* Weighted Break-Even: It calculates your "Average Cost" automatically, accounting for different sizes in different tiers.
* Net Bias Tracker: It tells you if your overall exposure is Bullish or Bearish and shows the total units held.
2. Intelligent Target Engine
You can set your profit targets in two ways:
* Price Level: See your potential profit if the asset hits a specific price.
* Profit Amount ($): Input a dollar goal (e.g., $500), and the script will draw a line on the chart showing exactly where the price needs to go to reach that profit.
3. "Sentinel" Alert System
The script includes a built-in alarm that triggers the moment your global strategic target is met, ensuring you never miss a take-profit opportunity even if you aren't watching the screen.
Major Advantages for the User:
* Eliminates Emotional Math: Under pressure, traders often miscalculate risk. This terminal automates the math so you can focus on execution.
* Complex Scenario Planning: You can "pre-visualize" a trade by entering tiers before they are filled to see what your total risk and reward-to-risk (RR) ratio would look like.
* Symmetry Across Assets: Whether you are trading Crypto, Forex, or Stocks, the script uses a point_multiplier engine to ensure position sizing is accurate regardless of the asset's decimal precision.
* Clean UI/UX: The dashboard is fully customizable—you can change its size, position, and colors to fit your workspace without cluttering your price action analysis.
Summary Table:
Feature User Benefit
Automatic Sizing Ensures you never lose more than your "Max Risk" per trade.
Average Cost Line Shows you exactly where your "Line in the Sand" is for the whole trade.
RR Projection Tells you if a trade is mathematically worth taking before you enter.
Global Currency Support Works with any currency symbol ($, €, ₺, etc.) for personalized tracking.
finarchist| Personal Trade/Market Sentinel DashboardTrade/Market Sentinel Dashboard
About
1. It's Your Personal "Trade/Market Sentinel Dashboard"
As a trader, the fear of "missing out" on an opportunity in another chart is very real. This tool is like a silent market sentinel or a personal radar system constantly running in the corner of your screen. While you're intensely focused on your Bitcoin chart, this radar is quietly monitoring gold, silver, or all your tracked stocks in the background.
* What it means for the end-user: It eliminates the anxiety of "What's happening on other charts?" and brings clarity to your trading decisions.
2. Filters Out the "Noise" and Highlights What Matters
Traders often get caught up in the excitement of price movements and enter trades at the wrong times. This panel tells you precisely when the price has entered a zone that is actually important to your trading plan.
* What it means for the end-user: You simply watch the market until the panel flashes "Yellow" (Watch) or "Green" (Action). This discipline protects you from impulsive, emotional, and potentially costly trading mistakes.
3. Your Digital "To-Do List" for the Market
Before the market opens, you analyze charts and make your plans: "I'll buy stock X if it drops to $100." This panel acts as a digital ledger, remembering all those intentions for you.
* What it means for the end-user: No more scattered notes or phone reminders. Your entire market strategy is neatly organized and displayed directly on your trading screen.
4. Simplifies "Distance" at a Glance
Raw price numbers can sometimes be deceiving (e.g., the significance of the difference between $54.320 and $54.100 might not immediately register). The panel translates these into a clear percentage distance.
* What it means for the end-user: Instead of asking "How much further to my target?", you get a clear answer like "You're 99% there, prepare for action."
5. Cultivates a Professional Trading Mindset
Beyond its direct functions, this panel subtly instills discipline. The organized and structured presentation of data helps the trader adopt a more organized and professional approach to the market.
* What it means for the end-user: You transition from a casual, reactive trader to someone who approaches the market with the seriousness and structure of a professional on a trading desk.
In Summary: Why Should an End-User Choose This Tool?
* To Reduce Mental Fatigue: Remembering 20 different price levels is impossible; this radar does it for you.
* For Swift Decision-Making: Instantly see which assets are "ready for action" with a quick glance at the colors.
* To Prevent Costly Mistakes: It keeps you disciplined, ensuring you only engage with assets that meet your predefined entry criteria.
———————————
Trade/Market Sentinel Dashboard
Strategic Operations Guide
1. Executive Summary
The "Trade/Market Sentinel Dashboard" is a high-performance decision-support dashboard designed for professional traders. It centralizes market intelligence by monitoring up to 20 assets simultaneously, allowing you to execute complex trading plans with surgical precision and zero emotional bias.
2. Core Value Propositions
A. Multi-Asset Surveillance
Eliminate the inefficiency of switching between dozens of charts. The Radar provides a consolidated view of your entire watchlist, ensuring that no market movement goes unnoticed while you focus on your primary analysis.
B. Intelligent Status Engine
The system automatically prioritizes your watchlist into three actionable tiers:
* WAIT (Standard): Markets are being monitored but are currently outside of strategic interest.
* WATCH (Elevated): Price has entered your predefined "Proximity Zone." It is time to prepare for execution.
* EXECUTION (Immediate): Price has reached your exact entry coordinate. Immediate action is required.
C. Directional Precision
Whether you are deploying Long or Short strategies, the Radar dynamically adjusts its performance tracking. It calculates the exact percentage distance to your entry, providing instant feedback on your strategy's validity.
3. Operational Setup (Step-by-Step)
1. Deployment: Activate the indicator on your primary chart.
2. Asset Configuration: Open settings and input your target symbols (e.g., AAPL, BTCUSD, XAUUSD).
3. Define Entry Points (EP): Enter your calculated entry prices for each asset.
4. Set Bias: Toggle between "Long" or "Short" for each row.
5. Establish Proximity: Define your "Alert Distance" (e.g., 0.5%) to determine when the Radar should shift to WATCH status.
4. Interface Placement Strategy
To maintain a clean professional workspace, the Radar can be docked in four positions. Choose based on your specific visual workflow:
Position Strategic Use Case
*Bottom Left Recommended. Keeps the right-hand price scale and recent candles unobstructed.
*Top Right Best for traders who use bottom-mounted oscillators (like RSI or MACD).
*Bottom Right Useful if your left side is dedicated to drawing tools or social feeds.
*Top Left Ideal for "Price Action" traders who focus on the lower half of the chart.
Prismatic Liquidity Engine [JOAT]Prismatic Liquidity Engine v6 - SMC Structure, Liquidity & Confluence Suite
IMPORTANT NOTES (READ FIRST)
This is a strategy script with automated entry/exit logic for backtesting and forward-testing purposes. It does not place live trades without your broker integration.
This script is written in Pine Script® v6 and is intended to be used on standard candlestick charts (not Heikin Ashi, Renko, etc.).
Source code visibility: This script is published as Protected Source (closed-source) to prevent unauthorized copies and maintain versioning integrity. This description documents what the strategy does, how it works, and how to use it.
All backtesting results shown use the default settings documented below. Adjust parameters for your specific instrument and risk tolerance.
Protected Source / Closed-Source Clarification
Protected source means the internal implementation is not publicly viewable.
The operational behavior is documented here: what is detected, what each module does, what each input controls, and how to interpret the output.
If you see unauthorized copies elsewhere, report them via TradingView's plagiarism reporting system.
Overview
Prismatic Liquidity Engine v6 is a Smart Money Concepts (SMC) strategy that combines market structure analysis, liquidity zone detection, and price imbalance identification into a unified decision framework. The strategy identifies trading opportunities by analyzing:
Market structure shifts (Break of Structure / Change of Character)
Liquidity pools (equal highs/lows where stops accumulate)
Price imbalances (Fair Value Gaps created by aggressive institutional participation)
Order blocks (accumulation/distribution zones)
The strategy requires confluence across multiple factors before generating entries, filtering out noise and focusing on setups where structure, liquidity, and momentum align.
What Makes This Strategy Original (Originality & Usefulness)
This is not a simple mashup of standard indicators. The strategy implements a coordinated SMC workflow:
Structure defines the directional bias (BOS confirms trend, CHoCH signals potential reversal).
Liquidity zones identify where stop-hunts are likely to occur before major moves.
FVGs and Order Blocks provide objective entry zones with defined invalidation levels.
Session filtering restricts trading to high-liquidity periods (London/NY overlap).
ATR-based risk management adapts stop/target placement to current volatility.
Confluence scoring requires multiple conditions to align before entry.
The purpose is to systematize SMC concepts into a testable, repeatable framework rather than relying on discretionary interpretation.
1) Chart Visuals — What You See
A) Fair Value Gap (FVG) Zones
The strategy detects three-candle formations that create price imbalances:
Bullish FVGs : Gap between candle 1's high and candle 3's low after aggressive upward movement.
Bearish FVGs : Gap between candle 1's low and candle 3's high after aggressive downward movement.
Zones are drawn as boxes with size labels showing the gap in price terms.
Mitigation tracking marks zones as "used" when price trades back through them.
How to use:
FVGs represent areas where price moved too fast for balanced trading.
Price often returns to these zones before continuing in the original direction.
The strategy uses FVGs as potential entry zones when other confluence factors align.
B) Order Block (OB) Zones
Bullish OBs : Last down-candle before a strong upward move (institutional absorption).
Bearish OBs : Last up-candle before a strong downward move (institutional distribution).
Volume-weighted analysis distinguishes significant blocks from noise.
Breach detection invalidates spent order blocks.
C) Market Structure Labels
BOS (Break of Structure) : Price breaks beyond previous swing high/low, confirming trend continuation.
CHoCH (Change of Character) : Price breaks structure against the prevailing trend, signaling potential reversal.
Swing highs/lows are marked and connected for visual structure tracking.
D) Liquidity Zone Markers
Equal highs : Buy-side liquidity pools (stop losses from shorts).
Equal lows : Sell-side liquidity pools (stop losses from longs).
Sweep detection identifies when liquidity is taken.
E) Session Background Shading
Asian session: 0000-0900 UTC
London session: 0700-1600 UTC
New York session: 1300-2200 UTC
Background tint indicates active session for context.
F) Trend EMAs (Optional)
EMA 20 / 50 / 200 for trend direction context.
Used internally for trend alignment requirements.
2) Strategy Execution Logic (How Entries Work)
Long Entry Conditions (all must be true):
Market bias is bullish (confirmed by BOS or CHoCH analysis).
Price is within a valid bullish FVG or Order Block zone.
EMAs show bullish alignment or recovery.
Volume exceeds 20-period moving average (participation confirmation).
Trade window is active (session filter).
A BOS or CHoCH signal is present.
Short Entry Conditions (all must be true):
Market bias is bearish (confirmed by BOS or CHoCH analysis).
Price is within a valid bearish FVG or Order Block zone.
EMAs show bearish alignment or recovery.
Volume exceeds 20-period moving average.
Trade window is active.
A BOS or CHoCH signal is present.
Exit Logic:
Primary stop loss: ATR-based (default 1.5x ATR).
Fallback stop: Recent swing point if ATR stop is too wide.
Take profit: ATR-based (default 2.5x ATR).
Trailing stop available for locking in profits.
3) Strategy Properties & Backtesting Documentation
Default Strategy Properties (Properties Tab):
Initial Capital : $10,000 USD — realistic for average retail trader
Base Currency : USD
Order Size : 10% of equity per trade
Pyramiding : 1 order (no pyramiding for conservative risk)
Commission : 0.05% per order (realistic for CFD/forex brokers)
Slippage : 2 ticks per order (accounts for market impact)
Risk Per Trade:
With ATR Stop Multiplier at 1.5x and 10% position sizing, typical risk per trade is approximately 1-3% of equity depending on volatility. This is within the sustainable 5-10% maximum recommended by TradingView guidelines.
Published Backtest Results (GOLD 5m, Sep 28, 2025 – Jan 12, 2026):
Total Trades : 37
Profitable Trades : 56.76% (21 of 37)
Profit Factor : 2.067
Net Profit : +$40.90 USD (+0.04%)
Max Drawdown : $98.62 USD (0.10%)
Sample Size Justification:
This strategy intentionally generates fewer trades (37 in this sample) because it requires multi-factor confluence before entry:
Market structure confirmation (BOS or CHoCH)
EMA trend alignment
Valid SMC zone proximity when zone filter is enabled
The confluence requirement filters out low-probability setups, resulting in a positive profit factor (2.07) and controlled drawdown (0.10%) at the cost of trade frequency. This is a deliberate design choice — the strategy prioritizes quality over quantity .
To increase sample size for your own testing:
Test across multiple instruments (EURUSD, BTCUSD, indices)
Extend the historical date range
Reduce Swing Length parameter from 5 to 3
Strategy Input Defaults:
Swing Length : 5 bars
ATR Period : 14 bars
ATR Stop Multiplier : 1.5x ATR
ATR Take Profit Multiplier : 2.5x ATR (1.67:1 reward-to-risk)
Risk % of Equity : 1.0%
Trading Session : 0000-2359 (all sessions)
Require FVG/OB Zone Entry : OFF
Require Volume Confirmation : OFF
Require EMA Alignment : ON
Backtest Limitations & Realistic Expectations:
Backtesting assumes perfect fills at the close price — live execution will differ.
Commission and slippage significantly impact net results. Always test with your broker's actual fees.
Past performance does not guarantee future results.
Results vary across instruments, timeframes, and market regimes.
This strategy performs best in trending markets with clear structure — ranging/choppy conditions will produce more false signals.
Always forward-test on paper before risking real capital.
4) Real-Time Dashboard
The dashboard provides market context at a glance:
Market Bias : BULLISH / BEARISH / NEUTRAL based on structure.
Trend Strength : STRONG / WEAK based on EMA alignment.
ATR : Current volatility level with HIGH / MEDIUM / LOW classification.
Volume : Current volume ratio vs 20-period average (SPIKE / HIGH / NORMAL / LOW).
Session : Active trading session.
Key Levels : Dynamic resistance and support from recent structure.
Signal Count : Active SMC signals with strength indicator.
Trade Window : OPEN / CLOSED based on session filter.
5) Inputs & Settings Reference
Structure Detection
Swing Length : Lookback for swing high/low detection (default: 5). Lower = more signals, Higher = major structure only.
FVG Settings
Show FVGs : Toggle FVG box display.
FVG Extension : How long FVG boxes extend forward (default: 20 bars).
Order Block Settings
Show Order Blocks : Toggle OB display.
OB Extension : How long OB boxes extend forward (default: 20 bars).
Liquidity Settings
Liquidity Range % : ATR percentage for "equal high/low" classification (default: 0.5%).
Show Liquidity Zones : Toggle liquidity pool markers.
Strategy Controls
Enable Long Trades : Allow long entries (default: ON).
Enable Short Trades : Allow short entries (default: ON).
Risk % of Equity : Maximum risk per trade (default: 1.0%).
ATR Period : Length for ATR calculation (default: 14).
ATR Stop Multiplier : Stop distance in ATR units (default: 1.5).
ATR TP Multiplier : Take profit distance in ATR units (default: 2.5).
Trading Session Filter : Restrict entries to specific time windows (default: 0000-2359 = all day).
Require FVG/OB Zone Entry : When ON, price must be inside an FVG or OB zone. When OFF, trades trigger on structure signals alone (default: OFF).
Require Volume Confirmation : When ON, volume must exceed 20-period average (default: OFF).
Require EMA Alignment : When ON, price must be above/below EMAs for direction (default: ON).
Visual Settings
Show Dashboard : Toggle dashboard display.
Show Sessions : Toggle session background shading.
Show Fibonacci : Toggle Fibonacci level display.
Color Customization : Full control over all visual elements.
6) Recommended Workflow
Step 1 — Configure Risk Parameters
Set risk % appropriate for your account (1-2% recommended).
Adjust ATR multipliers based on your instrument's volatility.
Set commission/slippage to match your broker.
Step 2 — Select Appropriate Timeframe
M15-H1 : Best balance of signal frequency and reliability.
H4-D1 : Higher quality signals, fewer false positives.
M1-M5 : Scalping possible but requires tighter risk management.
Step 3 — Backtest on Your Instrument
Run strategy tester with realistic commission/slippage.
Review trade list for entry quality.
Adjust parameters if needed for your specific market.
Step 4 — Forward Test Before Live Trading
Paper trade or use small size to validate real-time behavior.
Monitor for any discrepancies between backtest and live conditions.
7) Suitable Markets
Forex majors (EURUSD, GBPUSD, USDJPY) — 24/5 liquidity, clear structure.
Major indices (SPX, NASDAQ, DAX) — trending behavior, respects levels.
Gold (XAUUSD) — respects structure and liquidity concepts.
Crypto (BTCUSD, ETHUSD) — high volatility, adjust ATR multipliers.
8) Limitations & Best-Use Guidance
This strategy is a decision-support and backtesting tool, not a guaranteed profit system.
Performance varies across market conditions (trending vs ranging).
Low liquidity periods may produce false signals.
News events can override technical analysis.
Overnight gaps may affect stop placement.
Always validate with forward testing before live capital.
9) Alerts
Bullish / Bearish Regime Start
FVG Formation (Bull / Bear)
Order Block Detection
BOS / CHoCH Structure Shift
Liquidity Sweep
High-Volume Confirmation
Recommended: Use "Once Per Bar Close" for most reliable alerts.
Disclaimer
This strategy is for educational and backtesting purposes only. It does not constitute financial advice. Trading involves substantial risk of loss. Past performance does not guarantee future results. Always test configurations on historical data and paper trading before applying them to live capital. You are solely responsible for your trading decisions and risk management.
-Made with passion by officialjackofalltrades
Alpha Hunter Integrated MACD & Oscillator [wjdtks255]Indicator Title: Alpha Hunter Integrated MACD & Oscillator Pro
Short Description
A high-precision hybrid oscillator that integrates MACD dynamics with a secondary-smoothed histogram to eliminate market noise and capture trend reversals with minimal lag.
Detailed Description
Overview
The Alpha Hunter Integrated MACD & Oscillator is designed to overcome the inherent lag of standard MACD indicators. By applying an exponential moving average (EMA) filter to the histogram itself and incorporating a momentum direction check, this tool identifies high-probability entry points while filtering out "whipsaws" commonly found in choppy markets.
Key Technical Pillars
Dual-Smoothed Histogram: Unlike standard oscillators, this script smooths the raw histogram values using a secondary filtering period. This reveals the true underlying momentum before price action fully shifts.
Momentum Directional Filter: Entry signals are only triggered when the MACD line’s slope aligns with the crossover, ensuring you don't enter against a stalling trend.
Dynamic Trend Clouds: The visual fill between the MACD and Signal lines acts as a "Trend Cloud," providing immediate visual feedback on the strength and duration of the current trend.
The Winning Trading Strategy (How to Use)
To maximize win rates, it is highly recommended to use this indicator as a Confirmation Oscillator alongside a Long-term Trend Filter (like a 200 EMA) on your main chart.
1. Long Setup (Buy)
Context: Price must be trading above the 200 EMA on the main chart.
Signal: A green "BUY" triangle and label appear on the oscillator.
Confirmation: The Histogram should be green and rising.
Exit: Exit at a pre-defined Take Profit (TP) box or when a bearish MACD crossunder occurs.
2. Short Setup (Sell)
Context: Price must be trading below the 200 EMA on the main chart.
Signal: A red "SELL" triangle and label appear on the oscillator.
Confirmation: The Histogram should be red and falling.
Exit: Exit at the designated Stop Loss (SL) or when a bullish MACD crossover occurs.
Input Parameters & Optimization
Fast/Slow/Signal: Default 12, 26, 9. (Standard for most markets).
Signal Smoothing: Set to 5 for a balance of speed and reliability. Increase to 8+ for swing trading on higher timeframes.
Recommended Timeframes: 15m, 1h, and 4h for the best signal-to-noise ratio.
Author's Note
This indicator is a "No-Repaint" script. Signals are confirmed at the close of the candle to ensure reliability during live trading. Always use proper risk management.
MarcoVieira - BB% Oscillator@marco1981
Instagram @marcovieira.oficial
This script creates a custom Bollinger Band % Oscillator (called MarcoVieira BB% Oscillator) for TradingView. It measures how far the price is from the Bollinger Band basis in percentage terms, adds a moving average for smoothing, and provides visual signals for potential reversals, trend strength, and buy/sell opportunities.
# Key Components
1. Inputs
- Bollinger Bands
- length: period for the bands (default 20).
- mult: multiplier for standard deviation (default 2.0).
- Oscillator
- lengthMA: moving average length (default 55).
- ma_type: type of MA (SMA, EMA, HMA, WMA, VWMA).
- Appearance
- Colors for uptrend/downtrend lines.
- Option to show shaded fills.
- Configurable circle size and colors for signals.
- Reference Lines
- Horizontal lines at +1, +0.5, 0, -0.5, -1 for context.
2. Oscillator Calculation
- Basis = SMA of price (src).
- Deviation = standard deviation of price.
- Oscillator (cctbbo) = (\mathrm{price}-\mathrm{basis})/(2\cdot \mathrm{deviation}).
- This normalizes price relative to Bollinger Bands.
- Oscillator MA (cctbbo_ma) = chosen moving average of the oscillator.
3. Plots & Visuals
- Reference Lines: horizontal guides at ±1, ±0.5, and 0.
- Oscillator Line: plotted with dynamic color (up_color if above MA, dn_color if below).
- Oscillator MA Line: plotted in red for trend smoothing.
- Shading:
- Between 0 and +1 (greenish fill).
- Between 0 and -1 (purple fill).
4. Signals
- Reversal Triangles:
- Down triangle at the top when oscillator crosses under +1 (potential long entry).
- Up triangle at the bottom when oscillator crosses over -1 (potential short entry).
- Circles (configurable size):
- Green circle when oscillator MA ≤ -0.5 (oversold zone).
- Orange circle when oscillator MA ≥ +0.5 (overbought zone).
- Candle Coloring:
- Blue candle when oscillator crosses under +1 (buy signal).
- Yellow candle when oscillator crosses over -1 (sell signal).
# Summary
This indicator is essentially a Bollinger Band % Oscillator with enhanced visuals and signals:
- It shows where price sits relative to Bollinger Bands.
- Adds a moving average for smoother trend detection.
- Provides visual cues (lines, fills, triangles, circles, and candle colors) to highlight potential buy/sell zones and reversals.
- Helps traders quickly spot overbought/oversold conditions and possible trend changes.
Pivot Master LITEPIVOT FORGE LITE – The Strategy Forge Ecosystem
I created my previous indicator (Multi-TF Fibonacci Pivot Points) to save myself time every day having to manually track and add pivots to my setups. I knew they worked from watching price action - but eyeballing something and proving it can be profitable are very different.
Before I waste weeks on a strategy, I want proof it works.
This is a proof-of-concept strategy tester to show that pivot trading strategies can be profitable.
*Optimized for 8H and lower timeframes. Daily pivots need intraday charts to generate enough entry signals. Won't work on Daily/Weekly charts
WHAT IT DOES:
→ Enters when price crosses Daily pivots (S1/R1, S2/R2, etc)
→ TP/SL at % you choose
→ Shows: Win rate, Profit Factor, trades, P&L
Includes all 3 pivot types: Fibonacci, Standard, Camarilla
REAL EXAMPLES (my crypto tests):
## 📊 Example Backtest Results
The following are real results from specific instruments and timeframes. Your results will vary—always conduct your own testing.
**BTC/USD, 2HR Chart** – BloFin Perps (Jan 2023 – Dec 2025)
*Settings: Long Only, Fibonacci Pivots, S2 Entry, 4% TP / 4.5% SL*
| Metric | Value |
|---------------------|------------- |
| Profit Factor | 1.352 |
| Win Rate | 60% |
| Net Profit | +5.72% |
| Total Trades | 90 |
| Max Drawdown | 2.41% |
S2 entry filters noise while 4% targets allow room for normal volatility.
**BTC/USD, 6HR Chart** – BloFin Perps (Jan 2023 – Dec 2025)
*Settings: Long Only, Fibonacci Pivots, S2 Entry, 7.5% TP / 2.5% SL*
| Metric | Value |
|---------------------|------------- |
| Profit Factor | 1.944 |
| Win Rate | 40.32% |
| Net Profit | +8.61% |
| Total Trades | 62 |
| Max Drawdown | 2.18% |
6HR timeframe gives pivots more room to develop.
**ETH/USD, 2HR Chart** – BloFin Perps (Jan 2023 – Dec 2025)
*Settings: Both Directions, Fibonacci Pivots, Long Entry S1, Short Entry R3, 3.5% TP / 2% SL*
| Metric | Value |
|---------------------|------------- |
| Profit Factor | 1.312 |
| Win Rate | 45.96% |
| Net Profit | +8.92% |
| Total Trades | 235 |
| Max Drawdown | 3.32% |
This is a proof-of-concept tool - not a production trading system.
Profitable results here = pivot strategies work on this instrument.
Want full automation? Strategy Forge Suite (coming soon) adds real execution, advanced filters, and multi-condition logic. See profile for details
PROFIT FACTOR (Primary Metric):
- Below 1.0 = Losing strategy (avoid)
- 1.0-1.5 = Marginal (break even to slight profit)
- 1.5-2.0 = Viable strategy (worth considering)
- Above 2.0 = Strong (verify it's not overfit)
WIN RATE (Context-dependent):
Win rate alone doesn't mean profitability. It depends on your TP/SL ratio:
- 40% WR with 3:1 R:R = Excellent (PF ~1.8)
- 50% WR with 2:1 R:R = Good (PF ~1.5)
- 60% WR with 1:1 R:R = Marginal (PF ~1.2)
- 70%+ WR = Check for overfitting
Always evaluate Profit Factor first, then assess if win rate makes sense for your risk/reward ratio.
PAIRS WITH:
• Multi-TF Fibonacci Pivot Points (find confluence across timeframes)
• Pitchfork Forge LITE (add pattern analysis - launching this week)
Part of The Strategy Forge Ecosystem
───────────────────────────────────────────────────
Educational tool for strategy validation. Always test before live trading.
Results vary by instrument, timeframe, and market conditions.
SMC Pro Max Ultra [ by josh]This indicator is a comprehensive hybrid trading system and market-structure assistant designed for **EDUCATIONAL PURPOSES ONLY**. It synergizes advanced Smart Money Concepts (SMC) with quantitative algorithmic filtering (Hybrid Logic) to help traders visualize market context, filter out noise, and identify high-probability areas of interest.
**What it shows**
* **Advanced Market Structure:** Visualizes dual-layer structure mapping (Swing vs. Internal) with automated labeling for BOS (Break of Structure), CHoCH (Change of Character), and MSS (Market Structure Shift), including Strong/Weak High & Low identification.
* **Smart Zones & Logic:** Automatically plots Order Blocks (OB), Breaker Blocks, Fair Value Gaps (FVG), and Supply/Demand zones. Includes a "Mitigation Filter" to auto-hide zones that have already been tested to keep the chart clean.
* **Liquidity & Traps:** Highlights structural liquidity pools (EQH/EQL), detects real-time Liquidity Sweeps (Stop Hunts), and identifies potential Bull/Bear Trap zones.
* **"Sniper" Signal Models:** Features multiple signal engines ranging from Classic RSI reversals (Sni 1) and Trend Following (Sni 2) to the strict "Sniper Protocol" (Sni 3/4) for precision entries.
* **Algorithmic Confluence (The Brain):** A sophisticated rule-based scoring system that weights Higher Timeframe (HTF) alignment, ADX Momentum, Volume Spikes, and Fibonacci "Golden Pocket" confluence.
* **Safety Protocols:** Includes a "Chop Filter" (based on Choppiness Index) to detect low-quality sideways markets and suppress signals during dangerous conditions.
* **Risk Management:** Visualizes simulated Entry, Stop Loss, and Take Profit lines based on customizable Risk:Reward ratios or structural invalidation points.
**About “AI” / Scoring**
The "AI" features in this script refer to **Algorithmic Intelligence**—a complex set of hard-coded conditional logic designed to process multiple data points simultaneously. It is **NOT** Machine Learning and does **NOT** predict the future. The "AI Score" displayed on the dashboard is a statistical evaluation of the current market conditions (Trend + Momentum + Volatility) to serve as a confirmation filter only.
**Important Disclaimer**
This indicator does **NOT** provide financial advice and does **NOT** guarantee profits. Trading involves significant risk, and you can lose money. Any signals, backtest simulations, or dashboard statistics are strictly informational and for research purposes only. Past performance shown in the simulation is not indicative of future results. Always perform your own analysis and manage risk responsibly.
**Recommended Use**
Use it as a systematic decision-support tool:
1. **Identify Context:** Use the structure mapping to determine the dominant trend bias.
2. **Wait for Zone Interaction:** Allow price to retrace into High-Probability zones (OB/FVG).
3. **Check the "Score":** Use the Dashboard to ensure the Market is not "Choppy" and the Confluence Score is high.
4. **Confirm Entry:** Execute only when a specific signal (e.g., Sniper 3 or Engulfing Pattern) aligns with your analysis.
**Automation Note**
This script includes alert functionality compatible with third-party bridges. However, if you choose to connect alerts to an external system for automated execution, you do so entirely at your own risk and responsibility. This script is primarily designed as a visual technical indicator, not a "set-and-forget" trading bot.
ML-Inspired Adaptive Momentum Strategy (TradingView v6)This strategy demonstrates an adaptive momentum approach using volatility-normalized trend strength. It is designed for educational and analytical purposes and uses deterministic, fully transparent logic compatible with Pine Script v6.
ML-Inspired Concept (Educational Context)
Pine Script cannot train or execute real machine-learning models.
Instead, this strategy demonstrates ML-style thinking by:
Converting price data into features
Normalizing features to account for volatility differences
Producing a bounded confidence score
Applying thresholds for decision making
This is not predictive AI and does not claim forecasting capability.
Strategy Logic
EMA is used to measure directional bias
EMA slope represents momentum change
ATR normalizes the slope (feature scaling)
A clamped score between −1 and +1 is generated
Trades trigger only when the score exceeds defined thresholds
Risk & Execution
Position size capped at 5% equity
Commission and slippage included for realistic testing
Signals are calculated on closed bars only
Purpose
This script is intended to help traders explore adaptive momentum concepts and understand how feature normalization can be applied in systematic trading strategies.
QSS v15.0 [Omni-Engine]# **QSS v15.0 | Institutional Quant System**
### **💎 The Only Indicator You Will Ever Need**
**QSS (Quantitative Signal System) v15.0** is an all-in-one algorithmic trading engine designed to solve the biggest problem in trading: **fragmentation.** Instead of cluttering your chart with 10 different indicators (RSI, MACD, Bollinger Bands, Order Blocks, SuperTrend, etc.), QSS synthesizes them all into a single, high-probability decision engine.
This is not just a "Buy/Sell" indicator. It is a complete **Institutional Trading Suite** that combines "Smart Money Concepts" (SMC) with quantitative trend analysis and dynamic risk management.
---
### **🚀 Key Features**
#### **1. Dual-Core Signal Engine**
Choose your weapon based on the asset class and volatility:
* **Engine A: SuperTrend (Classic):** The industry standard for capturing major trends. Best for Swing Trading and Stocks.
* **Engine B: OTT (Optimized Trend Tracker):** A faster, volatility-adaptive engine derived from VIDYA (Variable Index Dynamic Average). Best for Crypto and Scalping.
#### **2. Institutional Intelligence (SMC)**
* **Volumized Order Blocks (SMC):** Automatically detects Supply (Red Box) and Demand (Green Box) zones based on pivot volume.
* *Smart Filter:* The system will **BLOCK** Buy signals if price is running straight into a Bearish Order Block (Resistance).
* **Koncorde (Smart Money Flow):** Analyzes PVI (Positive Volume Index) vs. NVI (Negative Volume Index) to track "Sharks" (Institutions) vs. "Minnows" (Retail).
* *Smart Filter:* Signals are only generated if Institutional Money Flow supports the direction.
#### **3. The "Power 3" Confirmation Suite**
Includes optional filters for the classic trinity of technical analysis:
* **MACD:** Ensures momentum alignment.
* **Stochastic:** Prevents buying at overbought peaks.
* **Bollinger Bands:** Ensures trades only occur during volatility expansion (Squeeze breakout).
#### **4. Advanced Noise Filtering**
* **ADX Trend Strength:** Blocks signals during "dead" or choppy markets (ADX < 20).
* **Candle Stability Index:** Ignores "wicky" candles and indecision dojis, preventing fake-outs.
* **Trend Ribbon:** A dual-SMA cloud (21/34) that ensures you are always on the right side of the macro trend.
#### **5. Dynamic Risk Management (R:R)**
* Automatically calculates **Stop Loss** and **Take Profit** targets based on market volatility (ATR).
* **TP1 (1:1):** Secure profit / Move stops to breakeven.
* **TP2 (1:2):** Standard target.
* **TP3 (1:3):** Trend runner.
* *Visuals:* Draws clear entry, stop, and target lines on the chart when a trade is active.
#### **6. Pro Dashboard**
A dynamic panel that monitors:
* **Trend Status:** (Bullish/Bearish)
* **Market State:** (Trending/Parabolic/Ranging)
* **Smart Money:** (Accumulating/Distributing)
* **Live Trade Data:** Real-time entry price and targets when a position is open.
---
### **🛠️ Settings Guide**
**🔥 SIGNAL ENGINE**
* **Strategy Engine:** Toggle between `SuperTrend` (Safe) or `OTT` (Fast).
**🧱 ORDER BLOCK FILTER**
* **Respect Order Blocks:** If checked, the system will not Buy into Resistance or Sell into Support.
* **Show OB Zones:** Toggles the visible Red/Green boxes on the chart.
**📊 QUANT FILTERS**
* **Smart Money (Sharks):** Requires Volume data. Filters out "Retail Traps."
* **ADX (Trend Strength):** Set to `20` for standard filtering. Set to `15` for aggressive scalping.
* **Candle Stability:** Filters out candles with long wicks. Essential for volatile Altcoins.
**📈 CLASSIC INDICATORS**
* **MACD / Stoch / BB:** Enable these if you want strict confluence. (Note: Enabling all will result in fewer, but higher precision signals).
**🛡️ RISK MANAGEMENT**
* **ATR Length:** Sensitivity of the volatility calculation.
* **SL Multiplier:** Distance of Stop Loss (Default 2.0x ATR for Crypto).
* **TP Multipliers:** Adjust your Risk:Reward ratios here.
---
### **💡 How to Trade with QSS v15**
1. **The Setup:**
* Wait for a **"BUY"** or **"SELL"** label to appear.
* Ensure the **Trend Ribbon** (Cloud) matches the signal color.
* Check the **Dashboard**: Ensure "Smart Money" is in your favor (Accumulation for Buys).
2. **The Execution:**
* Enter at the **Entry Price** shown on the chart.
* Place your Stop Loss at the **Red Line**.
* Take partial profits at the **Blue Dotted Lines** (TP1/TP2).
3. **Troubleshooting (Debug Mode):**
* If you see the SuperTrend/OTT flip colors but **NO signal** appears, turn on **"🔧 Debug Mode"** in the settings.
* Grey labels will appear on the chart explaining exactly *why* the trade was rejected (e.g., "⛔ REJECTED: Hitting OB Resistance" or "⛔ REJECTED: Low ADX").
---
**Disclaimer:**
*This indicator is a tool for analysis, not financial advice. It combines multiple quantitative metrics to provide high-probability setups, but no system is 100% accurate. Always use proper risk management.*
**Credits:**
* OTT Logic based on Anıl Özekşi.
* Koncorde Logic based on Blai5.
* SMC Order Block logic adapted from FluxCharts concepts.
* Synthesized and Optimized by rayu8.
VIOP Scalping - OriginalVIOP Scalping – Original is a rule-based scalping strategy ported from an original C# logic set. It aims to trade only when trend direction, momentum, and trend strength align, then manages the position using fixed take-profit/stop-loss percentages with an optional trailing mechanism to protect gains during favorable moves.
This strategy is provided for educational and backtesting purposes only. It is not financial advice and does not guarantee profitability. Always test thoroughly before any live usage.
Core Concept
Follow the dominant WMA trend, confirm momentum with EMA separation, filter conditions with RSI + ADX, then exit using fixed TP/SL with trailing behavior after a defined profit threshold.
How the Strategy Works
Trend Direction is defined by WMA: above WMA = long bias, below WMA = short bias.
Momentum is measured via Fast EMA vs Slow EMA and the EMA difference.
Trend Strength is confirmed using ADX (must exceed a threshold).
RSI filters trades to avoid entering when momentum is likely overextended or weak.
A no-trade session blocks entries during a predefined time window (default 09:30–10:05).
Exit logic uses fixed percent TP/SL, with an optional trailing mechanism that activates after a profit threshold.
Inputs and Settings
Trend and Indicator Settings
Main Trend WMA: Determines directional bias (price above = long, price below = short).
Fast EMA / Slow EMA: Used to measure momentum and directional separation.
RSI Period: Filters entries based on RSI range constraints.
ADX Period: Measures trend strength (must exceed threshold to allow entries).
Threshold Settings
EMA Difference Threshold: Minimum EMA separation required to validate momentum.
ADX Threshold: Minimum ADX required to confirm trend strength.
RSI Long Ceiling: RSI must remain below this value for long entries.
RSI Short Floor: RSI must remain above this value for short entries.
Risk Management Settings
Take Profit %: Default TP distance in percent.
Strong Trend Take Profit %: Higher TP used when a “strong trend” condition is detected.
Stop Loss %: Fixed SL distance in percent.
Trailing Activation %: Profit threshold at which trailing starts.
Trailing Distance %: Trailing offset distance used once trailing is active.
Time Filter
No-Trade Hours: Default session is 09:30–10:05. During this window, the strategy does not open new trades.
Entry Logic
No-Trade Time Filter
If the current bar falls inside the no-trade session, entries are blocked.
Long Entry Conditions
Price is above the WMA trend line.
EMA difference is positive and greater than the EMA Difference Threshold.
EMA momentum is increasing (current EMA diff > previous EMA diff).
RSI is within the defined range (RSI > 48 and RSI < RSI Long Ceiling).
Close is higher than the previous close.
ADX is above the ADX Threshold.
Short Entry Conditions
Price is below the WMA trend line.
EMA difference is negative and lower than -EMA Difference Threshold.
Bearish momentum is increasing (current EMA diff < previous EMA diff).
RSI is within the defined range (RSI < 52 and RSI > RSI Short Floor).
Close is lower than the previous close.
ADX is above the ADX Threshold.
Strong Trend Logic (Dynamic TP Selection)
If price is far from the WMA (absolute distance > 20 points) AND EMA separation is strong (absolute EMA diff > 1.5 points), the strategy treats the environment as a strong trend.
In strong trend mode, the strategy uses “Strong Trend Take Profit %” instead of the default “Take Profit %”.
Exit Management (TP/SL + Trailing)
The strategy uses fixed percentage-based TP and SL levels.
Trailing logic is enabled via strategy.exit and activates only after price moves in profit by the defined Trailing Activation %.
Once activated, trailing follows price using the defined Trailing Distance % offset.
This is designed to secure partial gains during extended moves while still allowing room for continuation.
What You See on the Chart
WMA Trend Line (Main Trend Filter).
Fast EMA and Slow EMA (Momentum Confirmation).
Strategy entry/exit markers generated by TradingView.
Recommended Use
Scalping systems that rely on trend-following and momentum confirmation.
Markets where ADX filtering helps avoid choppy conditions.
Traders who want a simple, parameter-driven TP/SL system with trailing after confirmation.
Important Notes
The no-trade session depends on your chart/session settings. Ensure your symbol/session configuration matches your intended market hours.
Percent-based exits scale with price; results will vary across instruments and volatility regimes.
Always validate behavior using bar replay, forward testing, and realistic commission/slippage assumptions.
VIOP Scalping - ATR SNIPERVIOP Scalping – ATR SNIPER is a momentum-based scalping strategy designed to capture short, high-probability moves while keeping risk strictly defined using ATR-based stop-loss and fixed risk/reward targets. The strategy trades only when trend direction, momentum, and strength are aligned.
This script is provided for educational and testing purposes only. It does not guarantee profitability and must be used with proper risk management.
Core Idea
Trade in the direction of the dominant trend, confirm momentum acceleration, and manage risk using ATR-based dynamic stops and targets.
How the Strategy Works
The main trend is defined using a Weighted Moving Average (WMA).
Momentum is measured by the distance and direction between a fast EMA and a slow EMA.
Trend strength is confirmed using ADX.
RSI is used as a filter to avoid weak or overextended market conditions.
Entries are blocked during a predefined no-trade time window to avoid high-noise periods.
Long Entry Conditions
Fast EMA is above Slow EMA and the EMA difference is greater than the minimum threshold.
EMA momentum is increasing compared to the previous bar.
RSI is within the user-defined long range.
Current close is higher than the previous close.
ADX is above the minimum strength threshold.
Price is above the WMA trend line.
The current bar is not inside the no-trade session.
Short Entry Conditions
Fast EMA is below Slow EMA and the EMA difference is below the negative threshold.
Bearish EMA momentum is increasing.
RSI is within the user-defined short range.
Current close is lower than the previous close.
ADX is above the minimum strength threshold.
Price is below the WMA trend line.
The current bar is not inside the no-trade session.
Risk Management – ATR Sniper Logic
Stop-loss distance is calculated as ATR multiplied by the ATR Multiplier.
Take-profit distance is calculated using the defined Risk/Reward ratio.
Stop-loss and take-profit levels are dynamically calculated per trade.
Only one position can be open at any given time.
What You See on the Chart
Weighted Moving Average (WMA) trend line.
Fast EMA and Slow EMA lines.
Dynamic stop-loss line during active trades.
Dynamic take-profit line during active trades.
Recommended Use
Intraday scalping on VİOP instruments.
Momentum-based short-term trading.
Traders who prefer rule-based systems with strict risk control.
Always backtest and forward-test on your own instruments and timeframes before using this strategy in live markets.
Prism Band Dynamics [JOAT]Prism Band Dynamics - Bollinger-Style Bands with Force Detection
Introduction and Purpose
Prism Band Dynamics is an open-source overlay indicator that creates dynamic Bollinger-style bands with an innovative "force detection" system. The core problem this indicator solves is that standard Bollinger Bands show volatility but don't indicate directional momentum. When all three band components (upper, lower, basis) move in the same direction, it indicates strong directional force that standard bands don't highlight.
This indicator addresses that by detecting when all band components align directionally, providing a clear signal of market force.
Why Force Detection Matters
Standard Bollinger Bands expand and contract based on volatility, but they don't tell you about directional momentum. Force detection adds this dimension:
1. Bullish Force - Upper band, lower band, AND basis all moving up together. This indicates strong upward momentum where even the lower support level is rising.
2. Bearish Force - Upper band, lower band, AND basis all moving down together. This indicates strong downward momentum where even the upper resistance level is falling.
3. Neutral - Mixed movement indicates consolidation or uncertainty.
How Force Detection Works
bool upperUp = upper > upper
bool lowerUp = lower > lower
bool basisUp = basis > basis
int forceFull = if upperUp and lowerUp and basisUp
1 // Bullish force
else if upperDn and lowerDn and basisDn
-1 // Bearish force
else
0 // Neutral
Additional Features
Squeeze Detection - Identifies when band width contracts below threshold, often preceding large moves
Gradient Fills - Color intensity reflects force strength
Direction Change Arrows - Visual markers when force direction shifts
Dashboard Information
Force - Current force status (BULLISH/BEARISH/NEUTRAL)
Position - Price location within bands (Upper/Mid/Lower Zone)
Band Width - Current width percentage with expansion/contraction label
Volatility - Squeeze status (SQUEEZE/NORMAL)
Force Count - Bars since last force change
How to Use This Indicator
For Trend Following:
1. Enter long when force turns BULLISH
2. Enter short when force turns BEARISH
3. Exit or reduce when force turns NEUTRAL
For Squeeze Breakouts:
1. Watch for SQUEEZE status in dashboard
2. Prepare for breakout in either direction
3. Enter when force confirms direction after squeeze
For Mean Reversion:
1. Only trade mean-reversion when force is NEUTRAL
2. Avoid fading moves when force is active
3. Use band touches as entry points during neutral force
Input Parameters
Length (20) - Period for basis and standard deviation
Multiplier (2.0) - Standard deviation multiplier for bands
MA Type (SMA) - Basis calculation method
Squeeze Threshold (0.5) - Band width percentage for squeeze detection
Timeframe Recommendations
4H-Daily: Cleanest force signals
1H: Good balance of signals and reliability
15m: More signals but more noise
Limitations
Force detection can lag during rapid reversals
Squeeze breakouts can fail (false breakouts)
Works best in markets with clear trending/ranging phases
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Force detection does not guarantee trend continuation. Always use proper risk management.
- Made with passion by officialjackofalltrades
Pro Scalper MTF Elite Strategy v1.0.0
Pro Scalper MTF Elite Strategy v1.0.0
What is this script?
This is an advanced, institutional-grade multi-timeframe (MTF) scalping and swing trading strategy for TradingView. It integrates multiple professional trading concepts—including Smart Money Concepts (SMC/SMT), price action, trend, momentum, and volume analysis—into a single, easy-to-use tool. The script is designed for traders who want robust, rules-based entries and exits, with built-in risk management and dynamic position sizing.
Key Concepts Integrated
Smart Money Concepts (SMC/SMT): Includes liquidity sweeps, order blocks, fair value gaps (FVG), and market structure breaks (MSB).
Price Action: Detects swing highs/lows, candle patterns, and support/resistance zones.
Trend Analysis: Uses EMAs, VWAP, and higher timeframe trend confirmation.
Momentum: Incorporates MACD and RSI for momentum filtering.
Volume : Identifies volume spikes for additional confluence.
Multi-Factor Confluence: Signals are generated only when multiple factors align, increasing reliability and reducing false signals.
How does it work?
- The strategy continuously scans for confluence between SMC/SMT signals, price action, trend, momentum, and volume.
- Each factor is scored, and only high-confluence setups trigger trade signals.
- Risk management is fully automated: you set your risk per trade, and the script calculates stop loss, take profits, and position size.
- Advanced features include trailing stops, breakeven logic, dynamic targets, and adaptive filters for different market regimes.
How to use
1. Add the script to your chart.
2. Adjust settings in the Inputs panel:
- By default, liquidity zones and support/resistance are OFF for a clean chart. Enable “Show Liquidity Zones (By TF)” and “Show S/R Zones” in the Visuals section to see SMT/SMC features.
- Set your account size and risk % for proper position sizing.
- Choose your preferred risk management and signal filtering options.
3. **Look for BUY/SELL labels on the chart.**
- These indicate high-confluence trade entries.
- The script will plot stop loss and take profit levels.
4. **Use the built-in strategy tester to review historical performance.**
5. **Set up alerts:** See below for details.
Features & Settings Explained
- Risk Management : Fixed % risk per trade, dynamic position sizing, trailing stops, breakeven, and adaptive targets.
- Signal Logic: Multi-factor scoring, cluster confluence, aggressive mode, candle color filter, and high conviction options.
- Advanced Filters: Bias gate, ambiguity skip, cooldown, adaptive stop modes, dynamic regime adjustment.
- Session & Volatility : Session filter, volatility gate, and dynamic position sizing.
- Visuals: All major overlays (liquidity, S/R, order blocks, FVGs, etc.) are OFF by default for clarity. Enable as needed in the Visuals section.
- Dashboard (Debug Panel): Built-in dashboard displays key signal metrics, scores, cluster counts, regime status, and trigger states directly on the chart. Enable it in the Visuals section by setting “Debug Panel Mode” to “Lite” or “Extended” and choose its position with “Debug Panel Position.”
- **Performance Tweaks:** Light MTF mode, max boxes/labels, and more.
How to enable SMT/SMC features
- Enable “Show Liquidity Zones (By TF)” for liquidity zones (SMT/SMC).
- Enable “Show S/R Zones” for support/resistance.
- Enable “Show Order Blocks” and “Show FVG” for order block and fair value gap visualization.
How to set alerts (Strategy Script)
On TradingView, strategy scripts do not allow you to select specific conditions like “Entry Buy” or “Entry Sell” in the alert dialog. Instead, you can only set a single alert for the entire strategy. Here’s how to do it:
1. Add the strategy to your chart.
2. Click the “Add Alert” (clock) icon at the top of TradingView.
3. In the alert dialog, select the strategy name as the condition (you will not see separate options for Entry Buy or Entry Sell).
4. The alert will trigger whenever the script generates a new buy or sell signal (as defined by the alert() function in the script).
5. Set your preferred alert actions (popup, email, webhook, etc.) and click “Create”.
Note: If you want separate alerts for buy and sell signals, you would need to use a companion indicator version of the script.
What strategy is this? How does it help?
This is a multi-factor, multi-timeframe confluence strategy. It helps traders by:
- Automating complex SMC/SMT and price action analysis.
- Managing risk and position size for you.
- Providing clear, actionable trade signals only when multiple factors align.
- Adapting to changing market regimes (trend/chop/volatility).
- Reducing emotional trading and overtrading.
Timeframes
- Works best on 5m, 15m, 30m, and 1H charts.
- Can be used on higher timeframes for swing trading.
- Lower timeframes (1m, 3m) may be noisier.
Does it repaint?
- The script is designed to avoid repainting. Signals are generated using confirmed bar data.
- Optional “Repaint Audit” mode is available for testing.
- Visual overlays (zones, FVGs, etc.) may update as new bars form, but trade signals do not repaint.
How long do signals show?
- Signals remain on the chart as long as the trade is active or until the next signal.
- Visual zones fade after a set number of bars (configurable).
---
Supplemental Information
Author
- Script by lava_javaforum (Institutional Enhancement Strategy Variant).
- For support, contact via TradingView or the invite-only group.
Risk Management & Position Sizing
- All trades use fixed % risk per trade.
- Position size is calculated automatically.
- Dynamic sizing increases with higher conviction.
Track Record
- This is a strategy script with built-in backtesting.
- Past performance is shown in the TradingView strategy tester.
- No guarantee of future results; always forward-test before live trading.
Markets
- Designed for stocks, indices, futures, and options.
- Works on any liquid market and timeframe.
Leverage
- The script does not recommend or require leverage.
- Use leverage at your own risk.
Backtesting
- Fully backtestable in TradingView.
- Use the strategy tester to review historical performance.
Support
- Support is available for invite-only users.
- Contact the author for questions or troubleshooting.
Community
- You may contact other users in the invite-only group for feedback and tips.
Trial
- A trial period may be available for select users. Contact the author for details.
---
Disclaimer
This script is for educational and informational purposes only. It is NOT financial advice. Trading involves risk, and you should only trade with money you can afford to lose. Past performance does not guarantee future results. Always do your own research and consult a financial advisor if needed.
---
If you have any questions or need help with settings, contact the author directly. Happy trading!
End Of MooveINDICATOR: END OF MOOVE (EOM)
1. Overview
The EndOfMoove (EOM) is a specialized volatility analysis tool designed to detect market exhaustion and potential price reversals. By utilizing a modified Williams Vix Fix (WVF) logic, it identifies when fear or selling pressure has reached a statistical extreme relative to recent history.
---
2. Core Logic & Calculation
The script functions by measuring the "synthetic" volatility created during sharp price drops and momentum shifts.
* Williams Vix Fix (WVF) Logic: It calculates the distance between the current low and the highest close over a specific lookback period ( 20 bars by default ). This creates a volatility spike during market bottoms or rapid corrections.
* Dynamic Normalization: The indicator continuously tracks the Historical Maximum of this volatility over a long window ( 250 bars ).
* Statistical Thresholding: It sets a "Danger Zone" at a specific percentage ( 75% ) of that historical maximum to filter out noise and isolate significant exhaustion events.
---
3. Adaptive Intelligence (Detection & Smoothing)
The EOM adapts to different market conditions through its detection engine:
1. Spike Confirmation: To avoid premature entries, the script uses a confirmation window ( 3 bars ). A signal is only "confirmed" if the current volatility spike is the highest within this local window.
2. Variable Smoothing: Traders can apply an internal SMA smoothing to the raw volatility data to filter out erratic price action on lower timeframes.
---
4. Visual Anatomy
The interface uses a high-contrast design to highlight institutional exhaustion:
* The Histogram:
* Faded Gray: Represents standard market volatility. The transparency is dynamic ; it darkens as volatility rises, signaling a buildup in pressure.
* Bright White: Activates when the volatility crosses the Dynamic Threshold , marking a high-probability exhaustion zone.
* The Threshold Line: A continuous horizontal boundary that represents the 75% of historical max , acting as the "Trigger Line."
* Signal Triangles: A small white triangle appears at the top of the indicator when a Volatility Spike is statistically confirmed.
---
5. How to Trade with EndOfMoove
* Spotting Bottoms: Large white columns often coincide with "capitulation" phases. When the histogram reaches these levels, the current downward move is likely overextended.
* Divergence Watch: If price makes a new low but the EOM histogram shows a lower spike than the previous one, it indicates that selling pressure is drying up.
* Volatility Breakouts: A sudden transition from faded gray to bright white suggests an impulse move that is reaching its peak velocity.
---
6. Technical Parameters
* WVF Period: Controls the sensitivity of the raw volatility calculation.
* Historical Max Period: Determines the depth of the statistical database (50 to 500 bars).
* Threshold %: Allows the trader to tighten or loosen the "Extreme" zone (set to 75% for balanced results).
15-Minute Squeeze Scalper (Traffic Light Edition)Overview This is a highly optimized version of the famous Squeeze Momentum Indicator, customized specifically for 15-minute scalping .
While the original indicator is powerful, the default colors can be confusing for new traders. I have recoded this to function as a simple "Traffic Light" system to help you identify periods of inaction vs. periods of high-probability breakouts.
How it Works This tool identifies when the market is "quiet" (low volatility) and getting ready to explode. It uses Bollinger Bands and Keltner Channels to measure this energy.
The "Traffic Light" Visuals
🔴 RED Cross (Center Line): STOP / WAIT
Meaning: The Squeeze is ON. The market is coiling tight.
Action: Do not trade yet. Wait for the energy to release. The longer the line of red dots, the bigger the potential move.
🟢 GREEN Cross (Center Line): GO / ACTION
Meaning: The Squeeze has FIRED. Volatility is expanding.
Action: Look at the Histogram to determine the direction of the trade.
📊 Histogram Bars:
Lime/Green: Bullish Momentum (Trade Long).
Red/Maroon: Bearish Momentum (Trade Short).
The 15-Minute Scalping Strategy
Identify the Squeeze: Look for a series of Red Crosses on the zero line.
Wait for the Fire: Wait for the first Green Cross to appear.
Confirm Direction:
If the Cross turns Green AND the Histogram is above zero: LONG.
If the Cross turns Green AND the Histogram is below zero: SHORT.
Alerts Included I have added custom alerts so you don't have to stare at the screen:
"Squeeze Fired": Alerts you instantly when the Red Cross changes to Green.
"Momentum Long/Short": Alerts you when momentum flips direction.
Multi-indicator Signal Builder [Skyrexio]Overview
Multi-Indicator Signal Builder is a versatile, all-in-one script designed to streamline your trading workflow by combining multiple popular technical indicators under a single roof.
It features a single-entry, single-exit logic, intrabar stop-loss/take-profit handling, an optional time filter, a visually accessible condition table, and a built-in statistics label.
Traders can choose any combination of 12+ indicators (RSI, Ultimate Oscillator, Bollinger %B, Moving Averages, ADX, Stochastic, MACD, PSAR, MFI, CCI, Heikin Ashi, and a “TV Screener” placeholder) to form entry or exit conditions.
This script aims to simplify strategy creation and analysis , making it a powerful toolkit for technical traders.
Indicators Overview
RSI (Relative Strength Index)
Measures recent price changes to evaluate overbought or oversold conditions on a 0–100 scale.
Ultimate Oscillator (UO)
Uses weighted averages of three different timeframes, aiming to confirm price momentum while avoiding false divergences.
Bollinger %B
Expresses price relative to Bollinger Bands, indicating whether price is near the upper band (overbought) or lower band (oversold).
Moving Average (MA)
Smooths price data over a specified period. The script supports both SMA and EMA to help identify trend direction and potential crossovers.
ADX (Average Directional Index)
Gauges the strength of a trend (0–100). Higher ADX signals stronger momentum, while lower ADX indicates a weaker trend.
Stochastic
Compares a closing price to a price range over a given period to identify momentum shifts and potential reversals.
MACD (Moving Average Convergence/Divergence)
Tracks the difference between two EMAs plus a signal line, commonly used to spot momentum flips through crossovers.
PSAR (Parabolic SAR)
Plots a trailing stop-and-reverse dot that moves with the trend. Often used to signal potential reversals when price crosses PSAR.
MFI (Money Flow Index)
Similar to RSI but incorporates volume data. A reading above 80 can suggest overbought conditions, while below 20 may indicate oversold.
CCI (Commodity Channel Index)
Identifies cyclical trends or overbought/oversold levels by comparing current price to an average price over a set timeframe.
Heikin Ashi
A type of candlestick charting that filters out market noise. The script uses a streak-based approach (multiple consecutive bullish or bearish bars) to gauge mini-trends.
TV Screener
A placeholder condition designed to integrate external buy/sell logic (like a TradingView “Buy” or “Sell” rating). Users can override or reference external signals if desired.
Unique Features
Multi-Indicator Entry and Exit
You can selectively enable any subset of 12+ classic indicators, each with customizable parameters and conditions. A position opens only if all enabled entry conditions are met, and it closes only when all enabled exit conditions are satisfied, helping reduce false triggers.
Single-Entry / Single-Exit with Intrabar SL/TP
The script supports a single position at a time. Once a position is open, it monitors intrabar to see if the price hits your stop-loss or take-profit levels before the bar closes, making results more realistic for fast-moving markets.
Time Window Filter
Users may specify a start/end date range during which trades are allowed, making it convenient to focus on specific market cycles for backtesting or live trading.
Condition Table and Statistics
A table at the bottom of the chart lists all active entry/exit indicators. Upon each closed trade, an integrated statistics label displays net profit, total trades, win/loss count, average and median PnL, etc.
Seamless Alerts and Automation
• Configure alerts in TradingView using “Any alert() function call.”
• The script sends JSON alert messages you can route to your own webhook.
• The indicator can be integrated with Skyrexio alert bots to automate execution on major cryptocurrency exchanges.
Optional MA/PSAR Plots
For added visual clarity, optionally plot the chosen moving averages or PSAR on the chart to confirm signals without stacking multiple indicators.
Methodology
Multi-Indicator Entry Logic
When multiple entry indicators are enabled (e.g., RSI + Stochastic + MACD), the script requires all signals to align before generating an entry. Each indicator can be set for crossovers, crossunders, thresholds (above/below), etc. This “AND” logic aims to filter out low-confidence triggers.
Single-Entry Intrabar SL/TP
• One Position At a Time: Once an entry signal triggers, a trade opens at the bar’s close.
• Intrabar Checks: Stop-loss and take-profit levels (if enabled) are monitored on every tick. If either is reached, the position closes immediately, without waiting for the bar to end.
Exit Logic
All Conditions Must Agree: If the trade is still open (SL/TP not triggered), then all enabled exit indicators must confirm a closure before the script exits on the bar’s close.
Time Filter
Optional Trading Window: You can activate a date/time range to constrain entries and exits strictly to that interval.
Justification of Methodology
Indicator Confluence: Combining multiple tools (RSI, MACD, etc.) can reduce noise and false signals.
Intrabar SL/TP: Capturing real-time spikes or dips provides a more precise reflection of typical live trading scenarios.
Single-Entry Model: Straightforward for both manual and automated tracking (especially important in bridging to bots).
Custom Date Range: Helps refine backtesting for specific market conditions or to avoid known irregular data periods.
How to Use
Add the Script to Your Chart
• In TradingView, open Indicators , search for “Multi-indicator Signal Builder” .
• Click to add it to your chart.
Configure Inputs
• Time Filter: Set a start and end date for trades.
• Alerts Messages: Input any JSON or text payload needed by your external service or bot.
• Entry Conditions: Enable and configure any indicators (e.g., RSI, MACD) for a confluence-based entry.
• Close Conditions: Enable exit indicators, along with optional SL (negative %) and TP (positive %) levels.
Set Up Alerts
• In TradingView, select “Create Alert” → Condition = “Any alert() function call” → choose this script.
• Entry Alert: Triggers on the script’s entry signal.
• Close Alert: Triggers on the script’s close signal (or if SL/TP is hit).
• Skyrexio Alert Bots: You can route these alerts via webhook to Skyrexio alert bots to automate order execution on major crypto exchanges (or any other supported broker).
Visual Reference
• A condition table at the bottom summarizes active signals.
• Statistics Label updates automatically as trades are closed, showing PnL stats and distribution metrics.
Backtesting Guidelines
Symbol/Timeframe: Works on multiple assets and timeframes; always do thorough testing.
Realistic Costs: Adjust commissions and potential slippage to match typical exchange conditions.
Risk Management: If using the built-in stop-loss/take-profit, set percentages that reflect your personal risk tolerance.
Longer Test Horizons: Verify performance across diverse market cycles to gauge reliability.
Example of statistic calculation
Test Period: 2023-01-01 to 2025-12-31
Initial Capital: $1,000
Commission: 0.1%, Slippage ~5 ticks
Trade Count: 680 (varies by strategy conditions)
Win rate: 75.44% (varies by strategy conditions)
Net Profit: +90.14% (varies by strategy conditions)
Disclaimer
This indicator is provided strictly for informational and educational purposes.
It does not constitute financial or trading advice.
Past performance never guarantees future results.
Always test thoroughly in demo environments before using real capital.
Enjoy exploring the Multi-Indicator Signal Builder! Experiment with different indicator combinations and adjust parameters to align with your trading preferences, whether you trade manually or link your alerts to external automation services. Happy trading and stay safe!
Quantum Reversal Detector [JOAT]
Quantum Reversal Detector - Multi-Factor Reversal Probability Analysis
Introduction and Purpose
Quantum Reversal Detector is an open-source overlay indicator that combines multiple reversal detection methods into a unified probability-based framework. The core problem this indicator addresses is the unreliability of single-factor reversal signals. A price touching support means nothing without momentum confirmation; an RSI oversold reading means nothing without price structure context.
This indicator solves that by requiring multiple independent factors to align before generating reversal signals, then expressing the result as a probability score rather than a binary signal.
Why These Components Work Together
The indicator combines five analytical approaches, each addressing a different aspect of reversal detection:
1. RSI Extremes - Identifies momentum exhaustion (overbought/oversold)
2. MACD Crossovers - Confirms momentum direction change
3. Support/Resistance Proximity - Ensures price is at a significant level
4. Multi-Depth Momentum - Analyzes momentum across multiple timeframes
5. Statistical Probability - Quantifies reversal likelihood using Bayesian updating
These components are not randomly combined. Each filter catches reversals that others miss:
RSI catches momentum exhaustion but misses structural reversals
MACD catches momentum shifts but lags price action
S/R proximity catches structural levels but ignores momentum
Multi-depth momentum catches divergences across timeframes
Probability scoring combines all factors into actionable confidence levels
How the Detection System Works
Step 1: Pattern Detection
The indicator first identifies potential reversal conditions:
// Check if price is at support/resistance
float lowestLow = ta.lowest(low, period)
float highestHigh = ta.highest(high, period)
bool atSupport = low <= lowestLow * 1.002
bool atResistance = high >= highestHigh * 0.998
// Check RSI conditions
float rsi = ta.rsi(close, 14)
bool oversold = rsi < 30
bool overbought = rsi > 70
// Check MACD crossover
float macd = ta.ema(close, 12) - ta.ema(close, 26)
float signal = ta.ema(macd, 9)
bool macdBullish = ta.crossover(macd, signal)
bool macdBearish = ta.crossunder(macd, signal)
// Combine for reversal detection
if atSupport and oversold and macdBullish
bullishReversal := true
Step 2: Multi-Depth Momentum Analysis
The indicator calculates momentum across multiple periods to detect divergences:
calculateQuantumMomentum(series float price, simple int period, simple int depth) =>
float totalMomentum = 0.0
for i = 0 to depth - 1
int currentPeriod = period * (i + 1)
float momentum = ta.roc(price, currentPeriod)
totalMomentum += momentum
totalMomentum / depth
This creates a composite momentum reading that smooths out noise while preserving genuine momentum shifts.
Step 3: Bayesian Probability Calculation
The indicator uses Bayesian updating to calculate reversal probability:
bayesianProbability(series float priorProb, series float likelihood, series float evidence) =>
float posterior = evidence > 0 ? (likelihood * priorProb) / evidence : priorProb
math.min(math.max(posterior, 0.0), 1.0)
The prior probability starts at 50% and updates based on:
RSI extreme readings increase likelihood
MACD crossovers increase likelihood
S/R proximity increases likelihood
Momentum divergence increases likelihood
Step 4: Confidence Intervals
Using Monte Carlo simulation concepts, the indicator estimates price distribution:
monteCarloSimulation(series float price, series float volatility, simple int iterations) =>
float sumPrice = 0.0
float sumSqDiff = 0.0
for i = 0 to iterations - 1
float randomFactor = (i % 10 - 5) / 10.0
float simulatedPrice = price + volatility * randomFactor
sumPrice += simulatedPrice
float avgPrice = sumPrice / iterations
// Calculate standard deviation for confidence intervals
This provides 95% and 99% confidence bands around the current price.
Signal Classification
Signals are classified by confirmation level:
Confirmed Reversal : Pattern detected for N consecutive bars (default 3)
High Probability : Confirmed + Bayesian probability > 70%
Ultra High Probability : High probability + PDF above average
Dashboard Information
The dashboard displays:
Bayesian Probability - Updated reversal probability (0-100%)
Quantum Momentum - Multi-depth momentum average
RSI - Current RSI value with overbought/oversold status
Volatility - Current ATR as percentage of price
Reversal Signal - BULLISH, BEARISH, or NONE
Divergence - Momentum divergence detection
MACD - Current MACD histogram value
S/R Zone - AT SUPPORT, AT RESISTANCE, or NEUTRAL
95% Confidence - Price range with 95% probability
Bull/Bear Targets - ATR-based reversal targets
Visual Elements
Quantum Bands - ATR-based upper and lower channels
Probability Field - Circle layers showing probability distribution
Confidence Bands - 95% and 99% confidence interval circles
Reversal Labels - REV markers at confirmed reversals
High Probability Markers - Star diamonds at high probability setups
Reversal Zones - Boxes around confirmed reversal areas
Divergence Markers - Triangles at momentum divergences
How to Use This Indicator
For Reversal Trading:
1. Wait for Bayesian Probability to exceed 70%
2. Confirm price is at S/R zone (dashboard shows AT SUPPORT or AT RESISTANCE)
3. Check that RSI is in extreme territory (oversold for longs, overbought for shorts)
4. Enter when REV label appears with high probability marker
For Risk Management:
1. Use the 95% confidence band as a stop-loss reference
2. Use Bull/Bear Targets for take-profit levels
3. Higher probability readings warrant larger position sizes
For Filtering False Signals:
1. Increase Confirmation Bars to require more consecutive signals
2. Only trade when probability exceeds 70%
3. Require divergence confirmation for highest conviction
Input Parameters
Reversal Period (21) - Lookback for S/R and momentum calculations
Quantum Depth (5) - Number of momentum layers for multi-depth analysis
Confirmation Bars (3) - Consecutive bars required for confirmation
Detection Sensitivity (1.2) - Band width and target multiplier
Bayesian Probability (true) - Enable probability calculation
Monte Carlo Simulation (true) - Enable confidence interval calculation
Normal Distribution (true) - Enable PDF calculation
Confidence Intervals (true) - Enable confidence bands
Timeframe Recommendations
1H-4H: Best for swing trading reversals
Daily: Fewer but more significant reversal signals
15m-30m: More signals, requires higher probability threshold
Limitations
Statistical concepts are simplified implementations for Pine Script
Monte Carlo uses deterministic pseudo-random factors, not true randomness
Bayesian probability uses simplified prior/likelihood model
Reversal detection does not guarantee actual reversals will occur
Confirmation bars add lag to signal generation
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Reversal detection is probabilistic, not predictive. The probability scores represent statistical likelihood based on historical patterns, not guaranteed outcomes. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
ICT Entry V1 [TS_Indie]📌 Description – ICT Entry V1
This trading system is based on price action, combined with FVG, iFVG, and liquidity, and it uses the mechanism from the indicator “Smallest Swing ” to validate swings that become liquidity.
⚙️ Core Logic & Working Mechanism
I won’t explain FVG in detail, as most traders are already familiar with it.
Let’s focus on the mechanism of iFVG instead.
The concept of iFVG is based on a supply-to-demand flip and a demand-to-supply flip within an FVG zone.
For an iFVG to be confirmed, the candle close must break through the FVG.
A wick alone does not count as a valid iFVG confirmation.
The confirmation of market structure swings uses a pivot length mechanism combined with price action.
It validates a swing by detecting a structure break formed by candles making new highs or new lows.
📈 Buy Setup
1.Liquidity sweep on the demand side, with price closing above the liquidity level.
2.A demand zone is formed as FVG and iFVG, where iFVG is located above FVG.
3.The gap between the upper box of FVG and the lower box of iFVG must be within the defined Min and Max range.
4.Market Structure must be in a Bullish trend.
5.Place a Pending Order at the upper box of FVG and set Stop Loss at the lower box of FVG (Entry and Stop Loss can be adjusted using Entry Zone and ATR-based Stop Loss).
📉 Sell Setup
1.Liquidity sweep on the supply side, with price closing below the liquidity level.
2.A supply zone is formed as FVG and iFVG, where iFVG is located below FVG.
3.The gap between the lower box of FVG and the upper box of iFVG must be within the defined Min and Max range.
4.Market Structure must be in a Bearish trend.
5.Place a Pending Order at the lower box of FVG and set Stop Loss at the upper box of FVG (Entry and Stop Loss can be adjusted using Entry Zone and ATR-based Stop Loss).
⚙️ Liquidity Sweep Conditions
➯ When a liquidity sweep occurs on the demand side, the system will start looking for Buy Setup conditions.
➯ When a liquidity sweep occurs on the supply side, the system will immediately switch to looking for Sell Setup conditions.
➯ The system will always prioritize the most recent liquidity sweep and search for setups based on that direction.
➯ The liquidity sweep condition will be invalidated when price closes back below (for demand sweep) or above (for supply sweep) the most recently swept liquidity level.
⭐ Pending Order Cancellation Conditions
A Pending Order will be canceled under the following conditions:
1.A new Price Action signal appears on either the Buy or Sell side.
2.When Time Session is enabled, the Pending Order is canceled once price exits the selected session.
🕹 Order Management Rule
When there is an active open position, the indicator restricts the creation of new Pending Orders to prevent overlapping positions.
⚠️ Disclaimer
This indicator is designed for educational and research purposes only. It does not guarantee profits and should not be considered financial advice. Trading in financial markets involves significant risk, including the potential loss of capital.
🥂 Community Sharing
If you find parameter settings that work well or produce strong statistical results, feel free to share them with the community so we can improve and develop this indicator together.
Adaptive Bull Ratio Strategy█ Overview: Why This Strategy
Most option strategies fall into two traps:
They are too rigid: A "Call Ratio Spread" works great in slow markets but gets destroyed if the market rallies hard.
They are too simple: A simple "Buy Call" suffers from time decay (Theta) if the market chops sideways.
The Adaptive Bull Ratio Strategy solves both . It is a living strategy that "shifts gears" based on price action.
It is called "Adaptive" because it morphs its structure three times during a trade. It starts conservative to harvest Time Decay, but if the market explodes upwards, it "uncaps" itself to ride the trend aggressively.
█ The Entry Philosophy: Why Supertrend?
The default setting uses the Supertrend indicator as the trigger. This is intentional:
Volatility Awareness: Supertrend adapts to market noise using ATR. In high volatility, bands widen to prevent false entries.
Trend Confirmation: Since Phase 1 involves selling options, entering "too early" against a falling market is dangerous. Supertrend forces patience, waiting for a confirmed reversal (Close > Trend Line), ensuring the momentum is actually in your favor before you commit capital.
The "Drift" Benefit: This strategy excels in markets that "drift" upwards. Supertrend identifies these trends while filtering out short-term chop.
Flexibility with External Sources:
While Supertrend is the default, the strategy is designed to be flexible. You can enable the 'Enable External Source' option in the settings to plug in any custom indicator (e.g., Moving Averages, Parabolic SAR, or a proprietary trendline).
The Golden Rule for External Sources: The script interprets a Bullish Signal whenever your External Source line is below the Close price (Ext Source < Close).
Compatibility: As long as your custom indicator behaves like a support line in an uptrend (plotting below the candles), it will work seamlessly with this strategy's logic.
█ The "Long Only" Rationale: Avoiding the Volatility Trap
Why not trade this on the short side (Puts) during crashes?
The Volatility Trap (Vega Risk): In Bull markets, Implied Volatility (IV) usually drops, helping your sold options decay faster. In Bear markets, IV explodes (panic). Selling OTM Puts during a crash is dangerous as their value skyrockets, neutralizing gains.
Velocity Risk: Bear markets crash fast ("Elevator Down"). Prices can blow through adjustment levels faster than the strategy can safely roll down, causing slippage.
Structural Skew: OTM Puts are inherently more expensive. Buying expensive ITM Puts and selling expensive OTM Puts shifts the breakeven further away, making V-shape recoveries painful.
█ How It Works & Stands Out
This strategy actively transforms risk profiles based on market movement:
Phase 1: The "Safe" Start (Entry)
Setup: Initiates a Call Ratio Spread (Buy 2 ITM, Sell 4 OTM) + Protective Puts.
Logic: Profits from sideways drift or slow rallies via Time Decay (Theta). The sold options finance the trade.
Phase 2: The "Shift" (Adjustment Level 1)
Trigger: Market moves above Leg 2 (3 OTM Call).
Action: Rolls Up the position. Exits initial legs, enters new higher legs, and adds a Short Put to finance the roll.
Impact: Aggressive. You bet the trend is strong enough to support the added downside risk of the short put.
Phase 3: The "Uncap" (Adjustment Level 2)
Trigger: Market moves above Leg 3 (4 OTM Call).
Action: Exits all Sold Calls.
Impact: Uncaps profit potential. The trade becomes a Net Long position (Long Calls + Short Puts), allowing you to ride a massive rally without a ceiling.
Phase 4: The "Lock-In" (Optional Trail Adjustment)
Trigger: The market goes parabolic (price rises X levels above Leg 3, configurable in settings).
Action (If Enabled):
Call Adj: Exits the Phase 3 calls and buys fresh 1-OTM calls (Rolling Up to lock profits).
Put Adj: Exits all Put legs (Removing downside risk completely).
Impact: Maximum Safety. This phase is about "banking" the windfall from a massive rally and leaving a smaller, risk-free runner to capture any final extension.
█ How to Start: A Quick Setup Guide
Step 1: Map Expiry Dates
Manually input your trading expiry dates in Settings -> Expiry Management.
Format: YYYY-MM-DD (e.g., 2025-12-25). Strict adherence required for DhanHQ.
Step 2: Configure Symbol & Size
Exchange/Symbol: Enter NSE and NIFTY (or your ticker).
Lot Multiplier: Default is 1. Set to 2 to double all quantities (e.g., Buy 2 becomes Buy 4).
Step 3: Understand Visuals
Entry Window (Light Blue): Strategy is scanning for new trades.
Non-Entry Window (Dark Blue): Trading blocked (Day before Expiry & Expiry Day). Only management allowed.
Green Box: Valid Late Entry Zone.
Red Dashed Line: Invalidation Level (if price touches this, no late entry).
Fuchsia Line: Trigger level for Special Trail Adjustments (Phase 4).
IMPORTANT: Broker & Technology Heads-Up:
The alerts generated by this script ({"secret": "...", "alertType": "multi_leg_order"...}) are specifically formatted for the DhanHQ webhook structure.
Dhan Users: Plug-and-play.
Other Brokers: You need middleware (NextLevelBot, Quantiply) to parse the JSON.
█ Risk Disclaimer & Advice
Trading options involves substantial risk.
The Whipsaw Risk: In Phase 2, you are Long Calls and Short Puts. A sharp reversal causes losses on both sides.
Margin: Selling options requires significant margin. Keep a 15-20% cash buffer to handle adjustments instantly.
Testing: This strategy is optimized for NIFTY Weekly Options. Effectiveness on BankNifty or Stocks is untested and may require parameter tuning.
Advice:
Backtest: Use TradingView Replay.
Paper Trade: Run for at least one expiry cycle before live deployment.
Consult: Seek professional financial advice before trading.
Practical Tips for Smooth Execution
For a new trader deploying this system, these operational tips are vital:
Capital Buffer: Do not trade at your limit. Always keep 10-15% free cash in your broker account. Adjustments (specifically Phase 2, where you sell an extra Put) require additional margin instantly. If margin is short, the order fails, and your hedge breaks.
Liquidity Awareness : The script trades "Far Deep OTM" options (Leg 4) to reduce margin. On indices like Nifty/BankNifty, this is fine. On individual stocks, these deep strikes might be illiquid. Check the option chain volume before deploying on stocks.
Trust the Process (but Verify) : While the algo drives, you are the pilot.
Check your API connection every morning.
Ensure the "Entry Window" background color on the chart matches your real-world date.
Verify that your broker executed all legs of a multi-leg order (partial fills are rare but possible).
The "Human" Stop: If major news breaks (e.g., unexpected election results, war announcements), volatility can expand faster than any algo can react. It is acceptable—and smart—to pause the strategy during known "Black Swan" events or earnings releases.
█ Timeframe Selection: The 30-Minute Standard
Critical Requirement: This indicator must be applied to a 30-minute chart.
Why?
Noise Filtering: The Supertrend logic is tuned to capture multi-day trends. Lower timeframes (5m, 15m) are full of "noise"—random fluctuations that look like trend changes but aren't.
Execution Logic (The Hybrid Engine): The script has a built-in "Dual Timeframe" architecture.
Decision Layer (30m): Uses the chart timeframe to decide when to be Bullish or Bearish.
Execution Layer (5m): Internally fetches 5-minute data to manage the how (Adjustments, Late Entries, and precise invalidation).
The Risk of Lower Timeframes: If you run the main chart on 5-minutes, you destroy this hierarchy. You will get too many signals, pay too much brokerage, and the internal logic may behave erratically.
Recommendation: Always keep your TradingView chart interval at 30m. Do not switch to lower timeframes expecting "faster" signals; you will likely just get "false" signals.
█ Testing Scope, Feedback
⚠️ Important Note on Asset Classes:
This strategy logic and the associated strike step calculations have been rigorously tested ONLY on NIFTY Index Options with Weekly Expiry.
BankNifty / Sensex / FinNifty: The volatility characteristics (ATR) and strike intervals of these instruments differ significantly from NIFTY. The effectiveness of this strategy on these other scripts has not been verified and may require different parameter tuning (e.g., strike_step or ATR Length).
Stocks: Individual stock options often lack the liquidity required for the "Deep OTM" legs, leading to potential execution failures.
We encourage traders to backtest this logic on other indices and share their findings! If you find a robust parameter set for BankNifty or observe unique behaviors on other scripts, please let us know in the comments below so we can improve the algorithm for everyone. Your feedback is appriciated.
Quality-Controlled Trend Strategy v2 (Expectancy Focused)This script focuses on quality control rather than curve-fitting.
No repainting, no intrabar tricks, no fake equity curves.
It uses confirmed-bar entries, ATR-based risk, and clean trend logic so backtests reflect what could actually be traded live.
If you publish scripts, this is the minimum structure worth sharing.
Why this script exists
TradingView’s public scripts are flooded with:
repainting indicators
no stop-loss logic
curve-fit entries that collapse live
strategies that look good only in hindsight
This script is intentionally boring but honest.
No repainting.
No intrabar tricks.
No fake equity curves
The goal is quality control, not hype.
What this strategy enforces
✔ Confirmed bars only
✔ Single source of truth for indicators
✔ Fixed risk structure
✔ No signal repainting
✔ Clean exits with unique IDs
✔ Works on any liquid market
Trading Logic (simple & auditable)
Trend filter
EMA 50 vs EMA 200
Entry
Pullback to EMA 50
RSI confirms momentum (not oversold/overbought)
Risk
ATR-based stop
Fixed R:R
One position at a time
This is the minimum bar for a strategy to be considered publish-worthy.
Why this helps TradingView quality
Most low-value scripts fail because they:
hide repainting logic
skip exits entirely
use inconsistent calculations
rely on hindsight candles
This strategy forces discipline:
every signal is confirmed
every trade has defined risk
behavior is repeatable across symbols & timeframes
If more scripts followed this baseline, TradingView’s public library would be far more usable.
Backtest Pro - The TradingView Backtesting EngineBacktest your indicators — no strategy code required. Backtest Pro is the next-generation backtesting engine for smarter testing. Simply link your signals, set your stops, and start testing.
With its upgraded UI/UX and fundamentally improved stop system, Backtest Pro replaces the legacy PSE (Practical Strategy Engine) and sets a new standard for TradingView backtesting. It delivers more accurate intrabar trailing stops, flexible stop types (Points, ATR Multiplier, %), and a smoother workflow for greater precision and control.
Once loaded on your chart, Backtest Pro appears as BT Pro as the script title and in the Strategy Tester, alerts, and chart labels.
Beyond the core stop and pyramiding logic, Backtest Pro also introduces:
A clearer Data Window for reviewing trade details.
Improved signal labels in the Strategy Tester’s List of Trades for easier log analysis.
Updated chart labels that align better with TradingView’s native style and make signals easy to interpret. Together, these improvements make Backtest Pro the most practical and user-friendly way to backtest indicator-based trading signals in TradingView.
Copyright © 2025 CoinOperator
________________________________________________________________________________
🚀 Why Traders Choose Backtest Pro
Answer in minutes what used to take days of manual testing.
Backtest Pro is a drop-in, ready-to-use backtesting engine that links to your indicator with just a few simple connection lines. It provides more accurate intrabar trailing stops, multiple stop types (Points, ATR Multiplier, %), and a smoother workflow for greater precision and control.
Whether you’re running a quick test or fine-tuning complex strategies, Backtest Pro helps you reach clearer insights faster.
________________________________________________________________________________
👤 Who Backtest Pro Is For
Backtest Pro is designed for traders who already have a trading methodology or entry/exit logic and want professional-grade validation and risk analysis.
Backtest Pro is not a signal service and does not provide discretionary trade recommendations. All entries and exits — including alerts used for automation — are generated solely from user-defined logic.
You bring the logic — Backtest Pro provides the structure, metrics, and discipline.
Backtest Pro helps swing traders, day traders, and strategy developers streamline the backtesting process without sacrificing depth or accuracy. It offers flexible stop management, enhanced Data Window metrics, refined Strategy Tester labeling, and clean on-chart visuals to support consistent evaluation.
Backtest Pro supports trading and backtesting on futures (continuous contracts), forex, crypto, stocks, ETFs, and commodity/index CFDs (tradable if offered by your broker).
________________________________________________________________________________
⚡ Quick Start
Add Backtest Pro to your chart. It appears as BT Pro as the script title and in the Strategy Tester, alerts, and chart labels.
Add a few connector lines to your indicator, then link your custom entry and exit signals.
Adjust position sizing, stops, and pyramiding.
Run the TradingView Strategy Tester for instant results.
________________________________________________________________________________
🔄 From PSE to Backtest Pro
Backtest Pro builds on the foundation of the PSE (Practical Strategy Engine), evolving it into a more refined tool. While PSE introduced flexible stop handling, Backtest Pro enhances the experience with:
More accurate intrabar trailing stops
Expanded stop type options (Points, ATR Multiplier, %)
Upgraded Data Window for easier review
Clearer trade signals in the Strategy Tester
Cleaner, more consistent chart labels
Wash Sale Prevention is Now Optional. If enabled, it only applies to assets of types stock and fund.
🛠 INPUTS TAB SETTING
📅 Trading Window
Enable Trading Window to define the date/time when trading is allowed. Disable to trade the entire market data.
Partition the time when trading is allowed to see if your indicator settings work well across the different ranges. Your resulting metrics should be acceptable across all four (4) ranges: entire range, 1st half, IQR, and 2nd half.
Show Trading Window Lines – Enable to draw vertical lines at the start and end of the trading window for clear visual definition of when trading is allowed.
💰 Position Sizing (Money Management)
Separating the equity risk into initial position and pyramid position allows for greater ability to maximize profits within your acceptable drawdown.
Note : Position sizing is determined on the anticipated fill price which is affected by the maximum of slippage and selected price gap (discussed in the Execution Rules section). Max Equity per Position (%) : This setting applies to each position within a trade group . Limits the position size and will not exceed this amount. Set as desired. Default is 20% for non-leverage trading. For leveraged trading, adjust accordingly. Example: for 3× leverage, enter 300 (3 × 100 = 300).
Max Equity Drawdown Warning (%) : Triggers an alert if the strategy’s equity drawdown exceeds this threshold. Select the method to use for this warning. If BT Pro, then it is based on peak equity at bar-close. If TradingView, then it is based on the built-in variable strategy.max_drawdown_percent. Helps you manage strategy-level risk tolerance.
Scaled Pyramiding : Adjusts position size incrementally for each pyramid entry—either decreasing or increasing exposure relative to the prior entry.
Start Position: The entry number at which scaling begins. For example, 3 means scaling starts on the 2nd pyramid (the 3rd entry overall).
Chg(%): The percentage change applied to each subsequent pyramid entry.
Max(%): The maximum cumulative reduction allowed when scaling downward. Ignored for upward scaling because increases are already capped by Max Equity per Position (%).
⚖️ Execution Rules
Trade Direction : Select either Both , Long Only, or Short Only.
Alert Failed to Trade – Enable to alert you when a trade did not happen due to low equity or low order size. Applicable only for the first position of a trade group.
Cooldown Period : Controls how long the engine waits after an exit before allowing a new trade group. Backtest Pro also applies a small built-in safeguard to prevent unrealistic same-bar flips: ● 1 bar minimum for same-direction entries
● 2 bars minimum for direction changes
Prevent Wash Sales : Enable if you want the Backtest Pro to enforce a minimum cooldown period of 30 days for trade groups that result in a loss. Only applies to assets of types stock and fund.
Pyramid Conditions with Price Gaps : Dwn Gap and Up Gap refer to price gaps. A price gap is the difference between the closing price of the previous candle and the opening price of the current candle, and their value is shown in the Data Window. Selection options include: disabled (the default), median, avg, p80 (for 80th percentile), and p90 (for 90th percentile). The values reflect ~500 most recent bars from the cursor position. Disabled sets the Dwn Gap and Up Gap to zero in the below logic. Pyramids require a tailing stop loss, TSL. The price gaps are used in conditions for pyramids:
To ensure the previous position is protected when opening a pyramid position. A new pyramid position will not open until its trailing stop loss protects the prior position.
To prevent a pyramid position from becoming a loss when too close to a take profit level, TP (if enabled), due to commission cost.
The logic for #1 and #2 is as follows:
For a Long Pyramid: TSL: Stop Price - max(DwnGap, slippage) > LastEntryPrice
TP (if enabled): Long take profit > close + max(UpGap, slippage) AND gain > commission cost
For a Short Pyramid:
TSL: Stop Price + max(UpGap, slippage) < LastEntryPrice
TP (if enabled): Short take profit < close - max(DwnGap, slippage) AND gain > commission cost
Show All Gap Stats in Data Window
Enable to show all price gap statistics in the Data Window to review market conditions.
Disable for the Backtest Pro to run most efficiently.
Note: Statistics selected in Dwn Gap and Up Gap settings are always shown, regardless of this option.
🛑 Exit Strategy (Risk Management)
Backtest Pro supports multiple stop loss styles, giving traders the tools to backtest strategies in TradingView with precision:
The Exit Strategy applies a common protective stop across the entire trade group.
Pyramids require a trailing stop loss. A new pyramid position will not open until its trailing stop loss protects the prior position.
Plot Stop Level : You can plot the stop level either as of bar close (the default) or as of bar open. This only affects the visual plot. The underlying logic does not change. The trades will be the same regardless of the setting.
ATR Length : The ATR Length is used with the ATR multiplier and is common to stop loss, SL, trailing stop loss, TSL, take profit, TP, and the time-based exit option. It is the number of bars (periods) used in ATR calculation.
Price-Based Exits Stop Loss and Trailing Stop Loss options are Points, ATR Multiplier, and %.
The Trailing Stop Loss is activated from entry of the initial position of a trade group.
Take Profit options are Points, ATR Multiplier, %, and R-Multiple. How Trailing Stops Work in the Backtest Pro All trailing stop inputs (Points, ATR Multiplier, or %) are converted at the first entry into a fixed currency offset.
That offset is reactive intrabar and applied as the trailing distance from the most favorable price (highest for longs, lowest for shorts) since the first entry in the trade group.
Even if “%” is selected as the input method, the engine uses the fixed currency offset.
The trailing stop offset (points) is displayed in the Data Window for reference, allowing you to enter that offset directly at your broker if needed.
⚠️ Caution: Always enter a points-based trailing stop at your broker—never a percentage-based trailing stop. Volatility-Based Exit While in a trade, ATR values are accumulated each bar. The position exits once the total exceeds ATR Multiplier × ATR at entry if the Reward/Risk is below the set threshold.
Dividends are not included in reward (i.e., profit).
👉 These flexible stop types solve one of the biggest limitations of the legacy PSE and make Backtest Pro a true TradingView backtesting engine.
📑 Trade Signal Labels in Strategy Tester
Backtest Pro uses standardized trade labels in the Strategy Tester → List of Trades. These labels make it easy to understand the reason behind each entry or exit at a glance. Entry : Standard entry signal when conditions are met.
Stop : Stop-loss exit triggered at your defined stop level.
Pyr-Entry : Pyramid entry, adds to an existing position.
Trail-Stop : Trailing stop exit based on offset logic. Note : If the stop level has been adjusted to equal the trailing stop level, the Strategy Tester may display Stop instead of Trail-Stop. The exit displayed is the one Pine Script evaluates first, but the actual exit behavior remains correct.
Exit : Standard exit signal.
Delay-Exit : One-bar delayed exit, prevents immediate exit when position entry and exit signal occur on the same bar.
TP : Take Profit exit, closes position at your profit target.
RR-Exit : Reward/Risk exit — position closes when ATR accumulation exceeds the set threshold and R/R is below target.
📊 Performance Metrics & Reporting
Include Dividends in Profit
Adjusts ROI, CAGR, Reward/Risk, Avg Invest/Trade-Grp, and Equity.
Assumes dividends are taken as cash (not reinvested). They are applied to Equity on the ex-date instead of the payment date.
Only applies if the security issues dividends and the chart is 1D or lower timeframe; otherwise ignored.
Include Dividends in Profit Factor
Applies only when Include Dividends in Profit is enabled.
Adds dividend income to both gross profits and gross losses when calculating Profit Factor, so PF reflects total return (trading + dividends).
Affects Avg Trade-Grp Loss, Equity Loss from ECL, and Equity Loss from ECL (%).
Show Dividends
Displays the payout in currency/share, as well as the total amount based on the number of shares of the position(s) currently held by the trade group. For long positions you earned the dividends. For short positions you owe the dividends.
Show Metrics Table
The on-chart Metrics Table displays a compact set of key statistics for quick reference and mobile use. Full and expanded metrics are available in the Data Window on desktop or browser. Section groupings may differ between the table and Data Window to optimize readability and presentation in each context.
📊 Data Window
Note : Accessible via a button on the right-hand toolbar of the chart interface. Unlike the Metrics Table, Data Window values update dynamically as you move your cursor across bars. All metrics are based on trade groups.
Trade Information
Enter Price
Stop Price
Favorable Extreme : only shows if trailing stop loss is enabled on Inputs tab. The most favorable price (highest for longs, lowest for shorts) since the first entry in the trade group.
TSL Offset Points : only shows if trailing stop loss is enabled on Inputs tab.
Take Profit : only shows if take profit is enabled on Inputs tab.
Leverage information applies to trade groups.
Fail Pos / Margin (%) : Shows zero if the failed position size was <1, or the margin % that failed to meet the requirement in the Properties tab. A flag appears above the bar where a failed trade occurred. Only applies to the first position of a trade group. Hover over the flag to view the value in the Data Window.
Notional Value : total trade group position size x latest entry price x point value. The equity must be > notional value x margin requirement for a trade to occur.
Current Margin (%) : must be greater than margin requirement set on the Properties tab in order for a trade to occur.
Margin Call Price : when enabled on the Style tab is displayed on both the chart and the Data Window as shown below.
Performance Net Profit (%) : Will include dividends if 'Include Dividends in Profit' is enabled. Only shows in Data Window if 'Include Dividends in Profit' is enabled.
ROI (%) and CAGR (%) : Based on Avg Invest/Trade-Grp. Adjusted for dividends if enabled.
Reward/Risk (profit/risked, expectancy per amount risked): Adjusted for dividends if enabled. Color is green if above breakeven, red if below, and yellow if within ±0.1 tolerance.
Profit Factor (PF) : By default, dividends are not counted in win/loss classification.
Win % : Uses same coloring scheme as Reward/Risk except uses a ±2% tolerance for yellow. Breakeven point is the balance between Reward/Risk and Win %, showing whether the system can be profitable. For example, for a low Win % a high Reward/Risk is needed for the system to be potentially profitable. Equity & Growth
Equity : Your current equity.
Dividend Sum : The amount of total dividends accumulated since entering the market. Only shows in Data Window if 'Include Dividends in Profit' is enabled. Risk & Drawdown
Maximum Drawdown (MDD)
Measures the largest peak-to-trough decline in account equity over the entire backtest.
A new peak is recorded whenever equity reaches a new high; the system then tracks the lowest equity seen until a new peak forms.
This method uses bar-close equity including both realized and unrealized P&L. Therfore, it may not match TradingView’s displayed drawdown values which use a different method.
Maximum Drawdown %
Expresses MDD as a percentage of the equity peak from which the decline occurred.
This normalizes drawdown across different account sizes and assets, making strategy-to-strategy risk comparisons more meaningful.
Maximum Consecutive Losses applies to trade groups.
Equivalent Consecutive Losses (ECL) : Based on Win % and Nbr of Trade-Grp’s.
Simulates a realistic losing streak with intermittent small wins.
Lowered by increasing Win %.
Equity Loss from ECL : Equity drawdown estimated from ECL.
Equity Loss from ECL (%) : Same, expressed as a percentage.
Avg Trade-Grp Loss Trade Structure
Backtesting Years : The trading window in years.
Nbr of Trade-Grp’s : Count of trade groups.
Nbr of Positions : The count of positions shown on the chart.
The TV list of trades in the Strategy Tester may indicate more than what is actually shown on the chart.
Avg Invest/Trade-Grp : Avg money invested per trade group. Adjusted for dividends if enabled.
Avg Trade-Grp Days : The average number of days for trade groups.
Time in Market (%) : The percentage of time in a trade based on the trading window.
Cnt 1st EE Same-Bar is the count of first positions in a trade group that enter and exit on the same bar. Labels appear above for easy reference. Helps assess optimal stop-loss settings.
Cnt Pyr EE Same-Bar is the count of pyramid positions in a trade group that enter and exit on the same bar. Labels appear above for easy reference. Helps assess optimal stop-loss settings. Up Gaps / Dwn Gap (Ticks) ( Show All Gap Stats in Data Window enabled )
Median gap
Avg gap
80 percentile
90 percentile
Price Gap (Ticks) ( Show All Gap Stats in Data Window disabled )
Dwn Gap : Shows selected option if not disabled.
Up Gap : Shows selected option if not disabled.
Data Quality
Tick Resolution measures how many minimum price increments (ticks) fit into the current asset’s price. It is calculated as: Tick Resolution = Price / Minimum Tick Size. This value indicates the precision available for order placement and stop calculations.
Green – High resolution (>= 1000). The strategy’s stop and profit calculations will operate with normal accuracy.
Yellow – Moderate resolution (100-999). Stop levels are still functional but may exhibit minor rounding effects.
Red – Low resolution (< 100). This can distort trailing stops, stop losses, or take profits due to coarse rounding by TradingView’s broker emulator.
⚠️ Caution : When Tick Resolution is in the red zone, results from backtests may differ significantly from live trading because price precision is too low for reliable simulation.
💡 Tip : If low tick resolution is present at the beginning of the chart’s market data (often with very old price history), use the Trading Window to restrict backtesting to later periods where the asset price has risen and tick resolution is higher.
👁 Visualization
Highlight Traded Background
Trade groups are shown in background color of green for long positions and red for short positions. Set as desired.
Show Losing Trade Groups
Losing trade groups are indicated at the exit with label text in the color blue. Used to easily find consecutive losses affecting your strategy’s performance. The dividend payment, if any, is not considered in the calculation of a win or loss.
Show Position Values
Enable to show the currency value of each position in gold color.
Show Max Drawdown (Peak & Trough) Enable to show the peak and trough labels on the price chart. Based on equity at bar close. Use to easily identify the bar associated with the peak and trough of equity.
Select label size for your preference.
Alert on Expiring GTC Orders
Backtest Pro includes an optional alert that warns you when a Good-Til-Canceled (GTC) order is approaching expiration. This feature is designed as a safety net, helping you avoid unprotected trades caused by broker-imposed GTC expirations. This alert is sent a few days before a 60-day time period you’re if still in an open position.
By default, the alert is enabled, offering protection for traders who may not actively monitor order expiry rules.
Professional users who already track expirations can disable the feature in the settings to streamline alerts.
🔌 Signal Connection
Click the dropdown and select the entry and exit signal to establish a connection to your indicator.
Separate Entry and Exit Signal Connections.
Backtest Pro requires separate entry and exit signals. Indicators that already produce distinct events integrate cleanly and make strategies easier to read, debug, and maintain.
If your indicator currently uses a combined signal (e.g., buy = 1, sell = –1, flat = 0), that structure can create overlap or conflicts during backtesting.
Don’t worry — later in this manual, you’ll learn exactly how to adapt your indicator so it outputs clear entry and exit signals compatible with Backtest Pro.
🔌 Configure Your Indicator for Entry and Exit Signals
This section explains how to structure your indicator’s entry and exit signals so they can connect seamlessly with the Backtest Pro engine.
Define your own conditions for when to enter or exit positions using any technical logic you prefer. You can configure exits independently of entries or make them dependent on them—for example, exiting only when the opposite entry condition occurs.
Below are a few examples of how you might define Long and Short Entry Signals before connecting them to Backtest Pro.
________________________________________________________________________________
Examples of Long Entry Signals
ind_sig_long = oscillator > UpperLimit
ind_sig_long = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))
ind_sig_long = MACD_hist > 0 Examples of Short Entry Signals
ind_sig_short = oscillator < LowerLimit
ind_sig_short = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))
ind_sig_short = MACD_hist < 0 ________________________________________________________________________________
Combining and Refining Your Signals
If your indicator uses multiple internal conditions, you can combine them using logical operators or threshold rules before connecting to the Backtest Pro engine.
1. Combine multiple conditions
Use logical and / or to merge your conditions into one signal:
Entry_Long = ind_sig_long1 and ind_sig_long2 // both must be true
Entry_Short = ind_sig_short1 or ind_sig_short2 // either may be true ________________________________________________________________________________
2. Require a minimum number of confirming conditions
You can also define a threshold for how many entry conditions must be true before triggering a signal. This can help ensure stronger confirmation.
minNbr_Entries = input.int(defval=1, title='Min Number of Entry Conditions')
// Convert boolean signals to numeric form
longCount = (ind_sig_long1 ? 1 : 0) + (ind_sig_long2 ? 1 : 0)
shortCount = (ind_sig_short1 ? 1 : 0) + (ind_sig_short2 ? 1 : 0)
// Require at least minNbr_Entries to confirm signal
Entry_Long = longCount >= minNbr_Entries
Entry_Short = shortCount >= minNbr_Entries
Do likewise for your Exit conditions to ensure consistency in trade confirmation.
________________________________________________________________________________
Defining Exits
Independent of Entries
Exit_Long = ta.crossunder(ta.rsi(close, 14), 70)
Exit_Short = ta.crossover(ta.rsi(close, 14), 30) Dependent on Entries
Exit_Long = Entry_Short // exit longs when short entry triggers
Exit_Short = Entry_Long // exit shorts when long entry triggers ________________________________________________________________________________
Final Signals to Connect to Backtest Pro
entry_signal = Entry_Long ? 1 : Entry_Short ? -1 : 0
exit_signal = Exit_Long ? 1 : Exit_Short ? -1 : 0
plot(entry_signal, title="entry_signal", color = color.blue, display=display.data_window)
plot(exit_signal, title="exit_signal", color = color.red, display=display.data_window) ________________________________________________________________________________
Notes
You can easily expand this structure to handle three or more conditions by adding them to the count expression.
If your indicator already provides a single entry_signal, you can connect it directly to Backtest Pro without modification.
Always ensure your final Entry_Long, Entry_Short, Exit_Long, and Exit_Short variables are boolean (true / false).
🔒 Connecting Closed-Source Indicators
If your indicator is closed-source (meaning you cannot view or modify its internal code), you’ll need to work with the plotted values it provides.
Create a connection indicator that reads those plotted values and converts them into clear entry and exit signals using the logic described above.
This connection indicator acts as a bridge between the closed-source indicator and Backtest Pro, allowing you to translate its behavior into standardized signal logic that the engine can process.
⚙️ PROPERTIES TAB SETTING
Initial Capital : Set as desired.
Base Currency : Leave as Default. The Backtest Pro is designed to use the instrument’s native currency, so changing this is not necessary.
Order Size : Essentially disabled. Position sizing is handled in the Inputs tab and is based on a percentage of equity.
Pyramiding : Set as desired.
Commission : Enter as a percentage of position value. The Backtest Pro is designed to work only with commission expressed this way.
Verify Price for Limit Orders : Set as desired.
Slippage : Set as desired. See the Dwn/Up Gap values in Data Window to get an idea of possible values to use.
Margin (Leverage Trading):
The Backtest Pro supports both leveraged and non-leveraged trading (default is no leverage).
Note : The following two settings apply at the trade group level . For example, to trade with 5× leverage, enter 20 (1 ÷ 5 × 100 = 20).
Margin for Long Positions : Set as desired. Default is 100%.
Margin for Short Positions : Set as desired. Default is 100%.
Recalculate After Order Is Filled (default is enabled)
Enabling this allows the Backtest Pro to function correctly and to recalculate immediately after an order is filled , which makes it possible to:
Enter and exit on the same bar (because the strategy sees the fill instantly).
Trigger alerts immediately after the fill , instead of waiting for the next bar close.
You may see the following Caution! message in the TradingView Strategy Tester:
This warning occurs because the strategy parameter calc_on_order_fills = true . You can safely close the caution message and know the Backtest Pro will produce realistic backtest results.
Recalculate On every tick : Disable.
Fill Orders
Using Bar Magnifier : Recommended if your TradingView plan supports it. Improves intrabar accuracy, but the strategy can still run without it.
On Bar Close : Must remain disabled. Enabling this prevents the Backtest Pro from working as intended.
⚠️ Caution : Enabling On Bar Close forces all orders to be evaluated only at bar close. This disables intrabar logic, prevents same-bar entries and exits, and breaks trailing stop / pyramid behavior. For the Backtest Pro to work as intended, On Bar Close must remain disabled .
Using Standard OHLC : Recommended if running the strategy on Heikin Ashi charts. Otherwise, set as desired. The default is enabled.
📢 Using The Alert Dialog Box Message Field
When setting alerts, include alert() function calls with order fills to allow notifications for drawdown exceeded, Failed to Trade (if enabled), and to be warned of expiring GTC orders (if enabled).
Example Message for Order Fill Alerts
(This is just an example. Consult TV manual for possible placeholders to use.)
Position: Current = {{strategy.market_position}}, Previous = {{strategy.prev_market_position}}
{{strategy.order.action}} {{strategy.order.contracts}} shares at price = {{strategy.order.price}} on {{exchange}}:{{ticker}} (TF: {{interval}})
Equity_Multiplier = {{strategy.order.contracts}} x {{strategy.order.price}} ÷ {{plot("Equity")}}
{{strategy.order.alert_message}}
Note :
Use a known account equity multiplied by Equity_Multiplier to determine the total currency amount required for position sizing—especially when managing multiple accounts with different equity levels.
What {{strategy.order.alert_message}} Includes
This placeholder automatically inserts the additional information generated for each order fill alert (blank for exits):
Stop Price (on first entries is based on bar close prior to order fill bar)
TSL Offset (Pts) distance from Favorable Extreme (for pyramid entries)
TP (on first entries is based on bar close prior to order fill bar)
Price Gap (Pts) based on your gap selection and slippage entered
Example Message for Bot Trading Alerts
(You must consult your specific bot for configuring the alert message. This is just an example.)
"action": "{{strategy.order.action}}",
“price”: {{strategy.order.price}}
"amount": {{strategy.order.contracts}},
"botId": "1234"
Golden Vector Trend Orchestrator (GVTO)Golden Vector Trend Orchestrator (GVTO) is a composite trend-following strategy specifically engineered for XAUUSD (Gold) and volatile assets on H4 (4-Hour) and Daily timeframes.
This script aims to solve a common problem in trend trading: "Whipsaws in Sideways Markets." Instead of relying on a single indicator, GVTO employs a Multi-Factor Confluence System that filters out low-probability trades by requiring alignment across Trend Structure, Momentum, and Volatility.
🛠 Methodology & Logic
The strategy executes trades only when four distinct technical conditions overlap (Confluence). If any single condition is not met, the trade is filtered out to preserve capital.
1. Market Structure Filter (200 EMA)
Indicator: Exponential Moving Average (Length 200).
Logic: The 200 EMA acts as the baseline for the long-term trend regime.
Bullish Regime: Price must close above the 200 EMA.
Bearish Regime: Price must close below the 200 EMA.
Purpose: Prevents counter-trend trading against the macro direction.
2. Signal Trigger & Trailing Stop (Supertrend)
Indicator: Supertrend (ATR Length 14, Factor 3.5).
Logic: Uses Average True Range (ATR) to detect trend reversals while accounting for volatility.
Purpose: Provides the specific entry signal and acts as a dynamic trailing stop-loss to let profits run while cutting losses when the trend invalidates.
3. Volatility Gatekeeper (ADX Filter)
Indicator: Average Directional Index (Length 14).
Threshold: > 25.
Logic: A high ADX value indicates a strong trend presence, regardless of direction.
Purpose: This is the most critical filter. It prevents the strategy from entering trades during "choppy" or ranging markets (consolidation zones) where trend-following systems typically fail.
4. Momentum Confirmation (DMI)
Indicator: Directional Movement Index (DI+ and DI-).
Logic: Checks if the buying pressure (DI+) is physically stronger than selling pressure (DI-), or vice versa.
Purpose: Ensures that the price movement is backed by genuine momentum, not just a momentary price spike.
📋 How to Use This Strategy
🟢 LONG (BUY) Setup
A Buy signal is generated only when ALL of the following occur simultaneously:
Price Action: Price closes ABOVE the 200 EMA (Orange Line).
Trigger: Supertrend flips to GREEN (Bullish).
Strength: ADX is greater than 25 (Strong Trend).
Momentum: DI+ (Plus Directional Indicator) is greater than DI- (Minus).
🔴 SHORT (SELL) Setup
A Sell signal is generated only when ALL of the following occur simultaneously:
Price Action: Price closes BELOW the 200 EMA (Orange Line).
Trigger: Supertrend flips to RED (Bearish).
Strength: ADX is greater than 25 (Strong Trend).
Momentum: DI- (Minus Directional Indicator) is greater than DI+ (Plus).
🛡 Exit Strategy
Stop Loss / Take Profit: The strategy utilizes the Supertrend Line as a dynamic Trailing Stop.
Exit Long: When Supertrend turns Red.
Exit Short: When Supertrend turns Green.
Note: Traders can also use the real-time P/L Dashboard included in the script to manually secure profits based on their personal Risk:Reward ratio.
📊 Included Features
Real-Time P/L Dashboard: A table in the top-right corner displays the current trend status, ADX strength, and the Unrealized Profit/Loss % of the current active position.
Smart Labeling: Buy/Sell labels are coded to appear only on the initial entry trigger. They do not repaint and do not spam the chart if the trend continues (no pyramiding visualization).
Visual Aids: Background color changes (Green/Red) to visually represent the active trend based on the Supertrend status.
⚠️ Risk Warning & Best Practices
Asset Class: Optimized for XAUUSD (Gold) due to its high volatility nature. It also works well on Crypto (BTC, ETH) and Major Forex Pairs.
Timeframe: Highly recommended for H4 (4 Hours) or D1 (Daily). Using this on lower timeframes (M5, M15) may result in false signals due to market noise.
News Events: Automated strategies cannot predict economic news (CPI, NFP). Exercise caution or pause trading during high-impact economic releases.






















