Antigravity OCC Strategy (MA 5 + Delayed TSL)# OCC Strategy Optimized (MA 5 + Delayed TSL) - User Guide
## Introduction
The **OCC Strategy Optimized** is an enhanced version of the classic **Open Close Cross (OCC)** strategy. This strategy is designed for high-precision trend following, utilizing the crossover logic of Open and Close moving averages to identify market shifts. This optimized version incorporates advanced risk management, multi-timeframe analysis, and a variety of moving average types to provide a robust trading solution for modern markets.
>
> **Special Thanks:** This strategy is based on the original work of **JustUncleL**, a renowned Pine Script developer. You can find their work and profile on TradingView here: (in.tradingview.com).
---
## Key Features
### 1. Optimized Core Logic
- **MA Period (Default: 5):** The strategy is tuned with a shorter MA length to reduce lag and capture trends earlier.
- **Crossing Logic:** Signals are generated when the Moving Average of the **Close** crosses the Moving Average of the **Open**.
### 2. Multi-Timeframe (MTF) Analysis
- **Alternate Resolution:** Use a higher timeframe (Resolution Multiplier) to filter out noise. By default, it uses $3 \times$ your current chart timeframe to confirm the trend.
- **Non-Repainting:** Includes an optional delay offset to ensure signals are confirmed and do not disappear (repaint) after the bar closes.
### 3. Advanced Risk Management
This script features a hierarchical exit system to protect your capital and lock in profits:
- **Fixed Stop Loss (Initial):** Protects against sudden market reversals immediately after entry.
- **Delayed Trailing Stop Loss (TSL):**
- **Activation Delay:** The TSL only activates after the trade reaches a specific profit threshold (e.g., 1%). This prevents being stopped out too early in the trade's development.
- **Ratchet Trail:** Once activated, the stop loss "ratchets" up/down, never moving backward, ensuring you lock in profits as the trend continues.
- **Take Profit (TP):** A fixed percentage target to exit the trade at a pre-defined profit level.
### 4. Versatility
- **12 MA Types:** Choose from SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HullMA, LSMA, ALMA, SSMA, and TMA.
- **Trade Direction:** Toggle between Long-only, Short-only, or Both.
- **Visuals:** Optional bar coloring to visualize the trend directly on the candlesticks.
---
## User Input Guide
### Core Settings
- **Use Alternate Resolution?:** Enable this to use the MTF logic.
- **Multiplier for Alternate Resolution:** How many charts higher the "filter" timeframe should be.
- **MA Type:** Select your preferred moving average smoothing method.
- **MA Period:** The length of the Open/Close averages.
- **Delay Open/Close MA:** Use `1` or higher to force non-repainting behavior.
### Risk Management Settings
- **Use Trailing Stop Loss?:** Enables the TSL system.
- **Trailing Stop %:** The distance the stop follows behind the price.
- **TSL Activation % (Delay):** The profit % required before the TSL starts moving.
- **Initial Fixed Stop Loss %:** Your hard stop if the trade immediately goes against you.
- **Take Profit %:** Your ultimate profit target for the trade.
---
## How to Trade with This Strategy
1. **Identify the Trend:** Look for the Moving Average lines (Close vs Open) to cross.
2. **Wait for Confirmation:** If using MTF, ensure the higher timeframe also shows a trend change.
3. **Manage the Trade:** Let the TSL work. Once the trade hits the activation threshold, the TSL will take over, protecting your runner.
4. **Position Sizing:** Adjust the `Properties` tab in the script settings to match your desired capital allocation (Default is 10% of equity).
---
## Credits
Original Strategy by: **JustUncleL**
Optimized and Enhanced by: **Antigravity AI**
Wskaźniki i strategie
Heikin Ashi Color Flip StrategyManual HA calculation → no repainting
✔ Entry on first green after red
✔ Exit on first red after green
✔ process_orders_on_close = false → orders execute on next bar open
✔ Logic is clean and readable
How to make it your kind of strategy (next step)
Given your past preferences, the best upgrade is:
• Trade only when price > EMA 21
• Or only when SPY > EMA 50 & VIX < 20
• Exit on price close below EMA 21 (your preferred rule)
Consider the following to increase win rate and decrease drawdown:
• Add EMA-21 exit instead of HA red
• Add SPY/VIX regime filter
• Give you real QQQ daily backtest metrics
• Convert this into a scan/alert-only indicator
Disclaimer:
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. The signals generated by this indicator are not guaranteed to be accurate or profitable. Past performance is not indicative of future results. Trading and investing involve substantial risk, and you should perform your own analysis and consult a qualified financial professional before making any trading decisions. The author is not responsible for any financial losses incurred from the use of this indicator.
Trend Pulse Channel StrategyOverview
Trend Pulse Channel Strategy is a long-only trend-following breakout strategy built around an adaptive multi-pole smoothing filter and a volatility-adjusted price channel.
The strategy is designed to participate in sustained directional moves by entering only when price confirms momentum strength beyond a dynamic upper boundary, while avoiding mean-reversion and low-quality consolidation phases.
This script is published as a strategy and includes realistic backtesting assumptions for position sizing, commissions, and slippage.
Core Concept
At the heart of the strategy is a multi-pole adaptive EMA-based filter, inspired by advanced digital signal smoothing techniques.
Using multiple poles allows the filter to reduce noise while preserving responsiveness to genuine trend changes.
To adapt the channel width to changing market conditions, the strategy applies the same filtering logic to True Range, producing a volatility-aware envelope rather than a static or fixed-percentage band.
This combination allows the strategy to:
Track directional bias using a smoothed central filter
Adjust channel width dynamically based on market volatility
Trigger entries only when price expansion confirms trend strength
Entry Logic
A long position is opened when:
Price crosses above the upper channel band
The signal occurs within the user-defined date range
This condition represents a volatility-confirmed breakout aligned with the prevailing directional filter.
Exit Logic
The long position is closed when:
Price crosses back below the upper band
This exit logic aims to stay in trending moves while exiting when upside momentum weakens.
The strategy does not open short positions by design.
Inputs and Defaults
The default inputs are selected to balance smoothness, responsiveness, and stability:
Source (HLC3): Reduces single-price noise by averaging high, low, and close
Period (144): Defines the primary smoothing horizon of the adaptive filter
Poles (4): Controls the smoothness vs. responsiveness trade-off
Range Multiplier (1.414): Scales the volatility envelope using filtered True Range
Reduced Lag (optional): Applies lag compensation to improve responsiveness
Fast Response (optional): Blends multi-pole and single-pole filters for quicker reaction at the cost of smoothness
All inputs are fully configurable and can be adjusted to suit different instruments and timeframes.
Risk Management & Position Sizing
The strategy uses:
Position size: 10% of equity per trade
No pyramiding
Long positions only
This sizing approach is intended to reflect sustainable risk exposure rather than aggressive capital deployment. Users may further adjust position size based on their own risk tolerance.
Backtesting Assumptions
The strategy is tested using :
Initial capital: 10,000
Commission: 0.1%
Slippage: 1 tick
Order fill model: Standard OHLC
These settings are chosen to provide more realistic performance estimates compared to idealized backtests.
This strategy is best suited for :
Trend-oriented markets
Higher timeframes where breakouts are more reliable
Users seeking systematic trend participation rather than frequent scalping
In sideways or range-bound market conditions, price may cross the channel boundaries frequently.
This can result in a higher number of entry and exit signals that do not develop into sustained trends.
For this reason, the strategy should be used with an understanding of basic technical analysis concepts, including market structure, trend identification, and consolidation behavior.
It is intended as a decision-support tool, not a standalone trading system.
Users—whether beginners or experienced traders—should avoid relying solely on this strategy and are encouraged to combine it with broader market context and additional analysis methods.
Disclaimer
This script is provided for educational and analytical purposes only. It does not constitute financial advice. Past performance does not guarantee future results.
V3 Valentini Pro Scalper [Dashboard]Gemini 3.0 pro's take on Fabio Valentini's world #1 strategy scalp 12/19/2025
FVG Strategy with validationThe code needs to be fixed because it renders the boxes incorrectly, otherwise you can see that the code is profitable in some markets
SMH_DualMomentum (ROC + Volume Trend)SMH Dual Momentum (ROC + Volume Confirmation)
This indicator identifies high-quality bullish trends by combining price momentum (Rate of Change) with volume confirmation, and exits when momentum structurally fails.
Core Logic
BUY signal
Rate of Change (ROC) over N periods is above a positive threshold (strong upside momentum)
Current volume is above its moving average (rising market participation)
SELL signal
ROC crosses below zero, indicating loss of bullish momentum
Why It Works
ROC measures the speed and strength of price movement, filtering out weak or drifting trends
Volume confirmation ensures momentum is supported by real capital flow, reducing false breakouts
Momentum-based exit avoids prolonged drawdowns and capital stagnation
Key Advantages
Focuses on trend continuation, not prediction
Filters out low-quality price moves and range-bound markets
Captures long, high-conviction trends with relatively few trades
Simple, robust rules using only price and volume
Best Use Cases
Designed for trend-driven ETFs such as SMH (Semiconductors)
Suitable for swing to position trading on daily charts
Works best in markets with strong sector rotation and institutional participation
Notes
This is a trend-following momentum tool, not a mean-reversion indicator
No stop-loss is built in; risk management should be handled externally if required
Parameters can be adjusted to match different timeframes or assets
sullaojo 3mHere is the English translation for the alert setup instructions:
**How to Set Up Alerts (After Adding the Code)**
1. Click the **Add to chart** button to apply the indicator to your graph.
2. Click the **Alarm Clock icon (Alerts)** on the top right toolbar of TradingView, or press `Alt + A`.
3. In the **Condition** field:
* Select the indicator named **"MA Crossover Buy Alert..."**
* Select **"แจ้งเตือนซื้อ (Buy Alert)"** to receive only buy signals.
4. In the **Trigger** (or Options) section: Select **Once per bar close**.
*(This is recommended per the textbook to confirm that the closing price actually crossed the line, avoiding false signals during intraday volatility.)*
5. Check **Notify on App** (for mobile) or **Show pop-up** as desired, then click **Create**.
Now, when the moving averages cross according to the textbook's conditions, the system will send you an alert immediately!
ML Adaptive SuperTrend Strategy [trade_crush]# ML Adaptive SuperTrend Strategy - User Guide
## Introduction
The **ML Adaptive SuperTrend Strategy** is a sophisticated trading tool that combines traditional trend-following logic with **Machine Learning (K-Means Clustering)** to dynamically adapt to market volatility. Unlike standard SuperTrend indicators that use a fixed ATR, this strategy analyzes historical volatility to categorize the current market into distinct clusters, providing more precise entries and exits.
>
> **Special Thanks:** This strategy is based on the innovative work of **AlgoAlpha**. You can explore their extensive library of high-quality indicators and strategies on TradingView: (www.tradingview.com).
---
## Machine Learning Engine (K-Means)
The core of this strategy is its ability to "learn" from recent market behavior.
- **K-Means Clustering**: The script takes the last $N$ bars of ATR data and runs an iterative clustering algorithm to find three "centroids" representing **High**, **Medium**, and **Low** volatility.
- **Adaptive ATR**: Based on the current volatility, the strategy selects the nearest centroid to use as the ATR value for the SuperTrend calculation. This ensures the trailing stop tightens during low volatility and widens during high volatility to avoid "noise".
---
## Key Features
### 1. Non-Repainting Signals
- **Confirm Signals**: When enabled, signals are only triggered after a bar closes. This ensures that the arrows and entries you see on the chart are permanent and reliable for backtesting.
### 2. Intelligent Risk Management
- **Multiple SL/TP Types**: Choose between **Percentage** based stops or **ATR** based stops for both Stop Loss and Take Profit.
- **Trailing Stop Loss (TSL)**:
- Supports both Percentage and ATR modes.
- **Activation Offset**: Only activates the trailing mechanism after the price has moved a certain percentage in your favor, protecting early-stage trades.
### 3. Risk-Based Position Sizing
- **Dynamic Quantity**: If enabled, the strategy automatically calculates the trade size based on your **Risk % Per Trade** and the distance to your **Stop Loss**. This ensures you never lose more than your defined risk on a single trade.
---
## User Input Guide
### SuperTrend & ML Settings
- **ATR Length**: The window used to calculate market volatility.
- **SuperTrend Factor**: The multiplier that determines the distance of the trailing stop from the price.
- **Use ML Adaptive ATR**: Toggle between the ML-enhanced logic and standard ATR.
- **Training Data Length**: How many historical bars the ML engine analyzes to find clusters.
### Risk Management
- **Stop Loss Type**: Set to Percentage, ATR, or None.
- **TS Activation Offset**: The profit buffer required before the trailing stop starts following the price.
- **Use Risk-Based Sizing**: Toggle this to let the script manage your position size automatically.
---
## How to Trade with This Strategy
1. **Monitor the Dashboard**: Check the top-right table to see which volatility cluster the market is currently in.
2. **Observe the Fills**: The adaptive fills (green/red) visualize the "breathing room" the strategy is giving the price.
3. **Execution**: The strategy enters on "ML Bullish" (Triangle Up) and "ML Bearish" (Triangle Down) signals.
4. **Exits**: The script will automatically exit based on your SL, TP, or Trailing Stop settings.
---
## Credits
Original Concept: **AlgoAlpha**
Strategy Conversion & Enhancements: **Antigravity AI**
NQ Lunch High Low First Sweep StrategyThis script identifies the FIRST liquidity sweep of the Lunch session high or low
after the Lunch session has ended, based on ICT / Killzone concepts.
Logic summary:
• Tracks Lunch session High and Low (New York time)
• After Lunch session closes, monitors the market on 5-minute timeframe
• Triggers ONLY on the first sweep:
– Price wicks beyond Lunch High and closes back below → SHORT signal
– Price wicks beyond Lunch Low and closes back above → LONG signal
• Generates an alert at the exact bar where entry is expected
• Designed specifically for Nasdaq (NQ) futures
• One trade per day – no overtrading
Notes:
• Intended for 5-minute charts only
• Uses New York session timing
• This script does NOT manage exits (TP/SL) – entry logic only
• Best used as a confluence tool, not a standalone system
Educational & discretionary use only.
9 EMA Trend-Flow StrategyThis strategy avoids trading inside the noise and waits for Bitcoin to "coil up" before exploding.
1. Chart Setup
Timeframe: 5 Minutes
Bollinger Bands: Length 20, Standard Deviation 2 (Default).
RSI (Relative Strength Index): Length 14.
EMA (Exponential Moving Average): Length 200 (Trend Filter).
2. The Rules
Long Setup (Buy)
The Trend Filter: Price must be above the 200 EMA.
The Squeeze: The Bollinger Bands must visually contract (narrow), indicating volatility is dying down.
The Trigger: A 5m candle closes strongly above the Upper Bollinger Band.
Confirmation: RSI must be rising and above 50 (but ideally not yet "pegged" at 90+).
Short Setup (Sell)
The Trend Filter: Price must be below the 200 EMA.
The Squeeze: The Bollinger Bands contract.
The Trigger: A 5m candle closes strongly below the Lower Bollinger Band.
Confirmation: RSI must be falling and below 50.
Execution Guide
Entry Technique
Don't enter immediately when the candle touches the band. Wait for the candle close.
Why? Bitcoin frequently "wicks" through bands to trap traders (fakeouts) before reversing. A solid close outside the band confirms momentum.
Exit Strategy (Take Profit)
Target 1 (Conservative): Close 50% of the position when price expands to a fixed risk-reward ratio (e.g., 1.5R).
Target 2 (Runner): Keep the remaining position open as long as price "walks the band" (stays outside or touching the outer band). Close the rest when a candle finally closes back inside the Bollinger Bands.
Stop Loss
Placement: Place your Stop Loss (SL) slightly below the Middle Band (the 20 SMA) at the time of entry.
Trailing: As the price moves in your favor, move your SL to trail the Middle Band.
Ichimoku Cloud Strategy - 1H HyperliquidStategy for Hyperliquid 1hr time frame using Ichimoku's Cloud.
Nifty_2MIN_ Rangereversal_Long _StrategySummary
This strategy is an intraday trend-following system designed for the Nifty index on a 2-minute timeframe. It focuses exclusively on long entries, seeking to identify high-probability recovery points within an established uptrend.
Concept & Core Logic
The strategy identifies entries based on a confluence of trend direction, price recovery levels, and specific candlestick patterns:
Trend Confirmation: The script utilizes the slope and positioning of the 20-period and 200-period Exponential Moving Averages (EMA). A long signal is only considered when the trend is determined to be positive, ensuring trades align with the broader market momentum.
Recovery Zone Filtering: To avoid buying at local peaks, the strategy filters for entries that occur when the market has retraced but is showing signs of recovery. Specifically, it looks for price to be within the 35% to 75% recovery range relative to the day's high.
Candlestick Trigger: The actual entry trigger is a "Bullish Reversal" sequence:
Two consecutive bearish candles (representing a minor pullback).
Followed immediately by a strong bullish candle (representing the resumption of strength).
Risk Management
The strategy uses fixed point-based exits to maintain a disciplined approach:
Take Profit: 30 points (underlying Nifty price).
Stop Loss: 35 points (underlying Nifty price).
Intended Use
This script is designed for traders interested in mechanical trend-following systems. It provides a structured way to observe how moving average slopes and specific price action sequences interact during intraday recoveries.
Disclaimer: This script is for educational and informational purposes only. It is not financial advice. All trading involves risk, and past performance is not indicative of future results. Please conduct your own research and backtesting before making any trading decisions.
NIFTY_2min_FVG_sell_StrategyThis strategy is designed for scalping Nifty on a 2-minute chart, focusing exclusively on short entries. The script's purpose is to identify and act on specific bearish patterns based on volume analysis and price action.
Concept & Core Logic
The strategy operates on a two-stage confirmation process:
Volume Absorption: The initial condition seeks to identify potential bearish movements by detecting signs of buying pressure being absorbed by sellers. This suggests that a upward move may be losing momentum.
Fair Value Gap (FVG) Confirmation: After a volume absorption signal, the strategy waits for a Bearish Fair Value Gap (FVG) to appear. A short entry signal is generated only after a candle closes below the FVG zone, serving as confirmation of bearish intent.
Risk Management
The strategy employs a fixed take profit and stop loss for each trade, based on the Nifty underlying price:
Take Profit: The exit signal is triggered when a trade reaches a 30-point profit.
Stop Loss: The exit signal is triggered when a trade reaches a 35-point loss.
Intended Use
This tool is intended for traders who:
Utilize mechanical, rule-based systems for intraday trading and scalping.
Are interested in studying a structured approach that combines volume analysis with price action inefficiencies like Fair Value Gaps.
Gold M5 Scalping (Strategy)This is the New Strategy for my new Indicator for M5 Scalping.
Just to test my result.
Will release my indicator soon
ORB Fusion Adaptive🎯 ORB Fusion Adaptive Strategy
Professional Opening Range Breakout Trading System
═══════════════════════════════════════════════════════════════════════════════
The first fully-automated, multi-instrument ORB strategy on TradingView.
💡 WHAT IT DOES:
Automatically trades Opening Range breakouts and failed breakout reversals with intelligent position sizing, professional risk management, and complete trade lifecycle tracking. Built for serious backtesting and live trading.
⚡ KEY FEATURES:
✓ Automated Entry & Exit (breakouts + reversals)
✓ Adaptive Position Sizing (3 modes: Fixed, Risk-Based, Risk-Based Initial)
✓ Multi-Instrument Support (Futures, Forex, Crypto, Stocks)
✓ Advanced Risk Management (daily limits, drawdown protection)
✓ ML-Powered Breakout Filtering (pContinue/pFail scoring)
✓ Failed Breakout Detection (high-probability reversals)
✓ Native Trailing Stops (Pine Script v5)
✓ Multi-Target Management (T1, T2, T3)
✓ Real-Time Performance Dashboard
✓ Comprehensive Backtesting (5+ years tested)
🎯 STRATEGY LOGIC:
Entry Signals
The strategy enters trades on two high-probability setups:
1. ORB Breakouts
• Detects when price breaks above/below Opening Range
• Confirms with volume (configurable threshold)
• ML filter scores probability of continuation
• Enters within 3 bars of breakout (no late entries)
• Stop placed at ORB midpoint or ATR-based
• Targets at Fibonacci extensions (1.0x, 1.618x, 2.5x ORB range)
2. Failed Breakout Reversals
• Monitors for breakouts that fail and reverse
• Confirms failure after price returns inside ORB
• Automatic reversal entry with tight stops
• Three profit targets (0.5x, 1.0x, 1.5x ORB range)
• Historical 65-75% win rate on reversals
Exit Management
• Stop Loss: Multiple methods (ATR, ORB Mid, ORB Opposite, Hybrid)
• Native Trailing Stop: Activates after configurable R-multiple profit
• Profit Targets: Single target or scaled exits at T1/T2/T3
• Daily Stop: Halts trading after max daily loss
• Drawdown Protection: Circuit breaker at max drawdown threshold
🔧 ADAPTIVE POSITION SIZING:
The strategy's most powerful feature - intelligent position sizing that adapts to your instrument and account:
Mode 1: Fixed
• Simple contract/lot size
• Best for: Testing, stable position sizing
• Use case: "Always trade 2 contracts"
Mode 2: Risk-Based (Current Equity)
• Size = (Current Equity × Risk%) / (Stop Distance × Point Value)
• Compounds with wins, reduces with losses
• Best for: Aggressive compounding
• Use case: Maximize geometric growth
Mode 3: Risk-Based (Initial Capital)
• Size = (Initial Capital × Risk%) / (Stop Distance × Point Value)
• No compounding - consistent risk exposure
• Best for: Professional risk management
• Use case: Live trading with stable risk
Multi-Instrument Intelligence
Auto-detects and calculates correctly for:
• Futures: Uses contract point value (ES $50/pt, NQ $20/pt, MES $5/pt, MNQ $2/pt)
• Forex: Uses pip value per lot (Standard/Mini/Micro/Nano)
• Crypto: Uses contract multiplier (1.0 BTC, 0.001 BTC, etc)
• Stocks: Uses $1 per share
Manual override available if auto-detect fails.
📊 RISK MANAGEMENT:
Multi-Layer Protection
• Per-Trade Risk: 0.5-2% of capital (configurable)
• Daily Risk Limit: Max 4% loss per day (halts trading)
• Max Drawdown Pause: Circuit breaker at 12% drawdown
• Position Size Limits: Min/max contracts enforced
• Max Stop Distance: ATR-based hard limit (prevents catastrophic losses)
Trailing Stop System
• Uses Pine Script's native trail_price and trail_offset
• Activates after configurable R-multiple profit (default 0.5R)
• Trail distance: ATR-based (tight 0.5 ATR to loose 2.0 ATR)
• Works reliably in backtesting AND live trading
• No manual stop management needed
🌍 GLOBAL MARKET SUPPORT:
Configurable Sessions
Unlike basic ORB indicators, this strategy works globally:
• US Equities: 9:30 AM ET default
• Forex London: Custom session 08:00-08:30 GMT
• Forex NY: Custom session 13:30-14:00 GMT
• Asian Markets: Custom session with Tokyo timezone
• Crypto: 24/7 support with custom ORB windows
Timezone support includes:
America/New_York, Europe/London, Asia/Tokyo, Asia/Hong_Kong, UTC, and more.
Session ORBs
• Asian Session ORB (Tokyo open)
• London Session ORB (Forex primary)
• NY Session ORB (US market hours)
Critical for Forex traders working multiple sessions.
📈 BACKTESTING CAPABILITIES:
Realistic Simulation
• Commission: Configurable (default $1 per order)
• Slippage: 2 ticks default (adjustable)
• Volume Confirmation: Prevents unrealistic fills
• RTH Filtering: Optional Regular Trading Hours only
• Bar Magnifier: Improved intrabar execution
Performance Metrics Dashboard
Real-time statistics displayed:
• Total Trades & Win Rate
• Net P&L & Profit Factor
• Current Drawdown
• Daily P&L tracking
• Position details (if in trade)
• Position sizing mode & current size
Historical Testing
• Supports 5000+ bars of history
• Test across multiple market conditions
• Bull markets, bear markets, range-bound periods
• Optimize by day type (trend vs rotation)
🎛️ CUSTOMIZATION OPTIONS:
ORB Settings
• Timeframe: 5, 15, 30, or 60 minutes
• Confirmation: Close, Wick, or Body
• Volume: On/off with multiplier threshold
• LTF Precision: Sub-minute high/low detection
• RTH Filter: Regular Trading Hours only option
Breakout Detection
• ML Filtering: Enable/disable with thresholds
• Failed Breakout: Sensitivity (2-10 bars)
• Failure Buffer: ATR-based confirmation
• Entry Window: Bars after signal (prevents late entries)
Stop Methods
• ATR: Tight dynamic stops (recommended)
• ORB Mid: Structural stop at midpoint
• ORB Opposite: Wide stop at opposite boundary
• Hybrid: Best of ATR and structural
Target Methods
• Single: One target, full exit
• Scaled: Partial exits at T1/T2/T3 (recommended)
• Trail Only: No fixed targets, trail to exit
🔬 OPTIMIZATION GUIDE:
For Futures (ES, NQ, MNQ, MES)
• ORB: 30 min
• Confirmation: Close
• Volume: ON (1.5x)
• Stop Method: ATR (1.0x multiplier)
• Position Mode: Risk-Based (Initial)
• Risk Per Trade: 1.5%
• Failed Breakouts: ENABLE
For Forex Majors
• ORB: 60 min (or 15 min at London open)
• Confirmation: Close
• Volume: OFF (tick volume unreliable)
• Stop Method: ATR (1.5x multiplier)
• Position Mode: Risk-Based (Initial)
• Risk Per Trade: 1.0%
• Custom Session: 0800-0900 GMT
• Timezone: Europe/London
For Crypto (BTC, ETH)
• ORB: 60 min
• Confirmation: Close
• Volume: OFF or ON (1.2x)
• Stop Method: ATR (2.0x wider stops)
• Position Mode: Fixed or Risk-Based
• Risk Per Trade: 2.0% (higher volatility)
• Custom Session: Define your preferred window
For Stocks/ETF
• ORB: 15-30 min
• Confirmation: Body (most conservative)
• Volume: ON (2.0x threshold)
• Stop Method: Hybrid
• Position Mode: Risk-Based (Initial)
• Risk Per Trade: 1.0%
• RTH Only: ENABLED
• Gap Analysis: ENABLED
💎 ADVANCED FEATURES:
Initial Balance Analysis
• First hour range tracking (A + B periods)
• IB extensions at 0.5x, 1.0x, 1.5x, 2.0x
• Day type classification (Trend/Normal/Rotation)
• Adjusts strategy behavior by day type
ORB Extensions
• Fibonacci targets: 1.272x, 1.5x, 1.618x, 2.0x, 2.618x, 3.0x
• Dynamic monitoring for take-profit zones
• Extension tracking in statistics
VWAP Integration
• Institutional benchmark reference
• Standard deviation bands (1σ and 2σ)
• Breakout alignment scoring
• Context for trade quality
Gap Analysis
• Overnight gap detection
• Gap fill target projection
• Gap fill rate statistics
• Direction bias from gap type
Comprehensive Statistics
• Bull/Bear breakout win rates
• Reversal win rate (typically 65-75%)
• Day type distribution
• Extension statistics
• Gap fill rate
• Real-time performance tracking
🎨 VISUAL FEEDBACK:
Enhanced Plots
• ORB levels (High/Low/Mid continuous lines)
• Entry markers (L for long, S for short, 🔥 for reversals)
• Extension levels with labels
• Session ORBs (Asian/London/NY)
• IB levels and extensions
• VWAP with bands
• Failed breakout markers
Color-Coded Momentum Boxes
• Blue: Inside ORB (consolidation)
• Green: Above ORB (bullish momentum)
• Red: Below ORB (bearish momentum)
• Orange: Failed breakout zones
• Variable intensity based on distance
Dynamic Dashboards
• Main Dashboard: ORB status, breakout info, setup details, market context
• Strategy Dashboard: Trades, Win%, P&L, Profit Factor, Daily P&L, Drawdown, Position info
• Narrative Dashboard: Plain-language market interpretation
Three Display Modes
• Simple: Clean chart, essential ORB only
• Standard: ORB + IB + Sessions + VWAP (recommended)
• Advanced: All features + statistics
🔔 ALERT SYSTEM:
Strategy Alerts
• Breakout Entry (with ML probabilities)
• Failed Breakout Entry (with targets)
• Stop Hit (position closed)
• Target Hit (T1, T2, T3 partials)
• Extension Reached (profit zone)
• IB Break (potential trend day)
All alerts include:
• Direction and setup type
• Entry price and position size
• Stop and target levels
• ML scores (if enabled)
• Setup grade (A+ to D)
• Win rate context
⏱️ TIMEFRAMES: 1m-15m optimal (works on all)
💎 INSTRUMENTS: Futures, Forex, Crypto, Stocks, Indices
🎓 SKILL LEVEL: Intermediate to Advanced
📚 WHAT'S INCLUDED:
Comprehensive Documentation
• 200+ lines of detailed tooltips
• Every setting fully explained
• Optimization guides by market
• Position sizing calculator explanations
• Risk management framework
• Best practices and common pitfalls
Ready-to-Use Configurations
• Default settings optimized for ES/NQ
• Recommended settings for each instrument type
• Conservative vs Aggressive profiles
• Scalping vs Swing configurations
Full Transparency
• All calculations shown in dashboard
• Position sizing visible in real-time
• Strategy performance metrics live
• No black boxes or hidden logic
🚨 RISK DISCLAIMERS:
CRITICAL INFORMATION - PLEASE READ:
• This is a trading strategy that executes real trades in backtesting
• Past performance does NOT guarantee future results
• All trading involves substantial risk of loss
• Never risk money you cannot afford to lose
• This is NOT financial advice - for educational purposes only
• Requires understanding of ORB methodology and risk management
• Test thoroughly on paper/demo account before live trading
• Position sizing must be configured correctly for your account
• Stop losses are NOT guaranteed in all market conditions
• Slippage and commissions will affect live results
• Volatile markets may trigger circuit breakers (drawdown pause)
Strategy-Specific Risks:
• Opening range breakouts can fail (hence the reversal system)
• Volume confirmation may limit signals in low-volume instruments
• Custom sessions must match your market's actual hours
• Multi-instrument support requires correct point value configuration
• Trailing stops may exit early in volatile conditions
• Daily limits may prevent recovery trades
• Backtesting results may not match live execution
Position Sizing Warnings:
• Risk-Based modes can size large positions if stops are tight
• Always set max position size limits appropriate for your account
• Verify point values are correct for your instrument
• Test with small size first
• Monitor position size in dashboard before every trade
🎓 WHO THIS IS FOR:
Best Suited For:
• Traders with ORB methodology knowledge
• Those seeking a fully-automated system
• Backtesting enthusiasts
• Multi-instrument traders
• Risk-conscious systematic traders
• Traders who understand position sizing
Not Recommended For:
• Complete beginners to trading
• Those seeking "set and forget" with zero monitoring
• Traders unwilling to backtest first
• Those who don't understand risk management
• Accounts under $5,000 (position sizing too small)
💡 PRO TIPS:
Backtesting Best Practices
• Start with 2+ years of data
• Include both bull and bear markets
• Test on same timeframe you'll trade (5-min for 5-min ORB)
• Account for commissions/slippage realistically
• Verify win rate >45% and profit factor >1.3
Position Sizing
• Use Risk-Based (Initial Capital) for most consistent results
• Start with 1% risk per trade, increase to 1.5-2% if comfortable
• Set max position size to prevent oversizing
• Verify point values are correct before live trading
• Monitor dashboard for actual size before each trade
Risk Management
• NEVER disable daily loss limit
• Keep max drawdown pause at 12% or lower
• Use ATR stop method for best R:R
• Enable trailing stops for trend capturing
• Take partial profits at T1 (at least 30-40%)
Failed Breakout Trading
• These are your highest win-rate setups (65-75%)
• Always enable this feature
• Use tighter stops on reversals than breakouts
• Don't chase if you miss the entry window
• Three targets allow you to scale out profitably
ML Filtering
• Dramatically improves breakout quality
• Reduce signals but increase win rate
• Start with default thresholds (pCont≥0.55, pFail≤0.35)
• Lower signals = higher quality in choppy markets
• Can disable for more signals in strong trends
⚙️ TECHNICAL DETAILS:
Strategy Engine
• Pine Script v5
• Native strategy.entry() and strategy.exit()
• Trailing stops use trail_price/trail_offset (no repainting)
• Proper position sizing with strategy.position_size
• Realistic fills with commission and slippage
• Bar magnifier for improved intrabar execution
Performance
• Optimized for 1-minute to 15-minute charts
• Supports 5000+ bars of history
• Efficient calculations (no arrays in hot loops)
• Max 500 visual objects (boxes/lines/labels)
• No repainting - all signals confirmed on bar close
Position Sizing Engine
• Auto-detects Futures, Forex, Crypto, Stocks
• Uses syminfo.pointvalue when available
• Falls back to manual configuration
• Proper rounding to exchange increments
• Min/max limits enforced
Risk System
• Per-trade risk percentage enforced
• Daily P&L tracking
• Drawdown from peak equity
• Circuit breakers halt trading when limits hit
• Resets daily for fresh start
🔄 VERSION HISTORY:
Current Version: 1.0 (Initial Release)
• Complete ORB breakout + reversal strategy
• Adaptive position sizing (3 modes)
• Multi-instrument support
• Advanced risk management
• Native trailing stops
• ML filtering integration
• Comprehensive backtesting
• Real-time performance dashboard
Planned Updates:
• Additional session templates (Tokyo, Sydney)
• More stop methods
• Enhanced ML model training
• Volatility regime detection
• Trade journal export
═══════════════════════════════════════════════════════════════════════════════
Trade the opening range with institutional precision.
Automated entries. Intelligent sizing. Professional risk management.
Test first. Trade smart. Scale safely.
Taking you to school. — Dskyz, Trade with insight. Trade with anticipation.






















