Oleg Algo — Strategy by crazyoleg

By crazyoleg

Performance Metrics

Description

Welcome to Oleg Algo, a heavy-duty, multi-layered statistical mean-reversion and trend-following strategy designed for traders who like to scale into volatility like a crazy. This script allows you to harvest profits from market extremes using dynamic gap thresholds, aggressive scale-in martingale sizing, and built-in risk boundaries.Key FeaturesDual Strategy Modes: Switch effortlessly between Reversal Mode (catching extreme overextended moves by fading the gap) and Trending Mode (riding the momentum wave).Flexible Band Calculations: Measure market boundaries using either ATR (Average True Range) for pure volatility-based distance or Bollinger Bands (Standard Deviations) for statistical dispersion.Scale-In Martingale System: Automatically scale into positions as the market moves against you. Choose between an exponential Multiplier or a linear Quantity Step to average down like a true strategist.Win/Loss Outcome Sizing: Optionally adjust your base position size up or down following a win or loss to dynamically manage your exposure streak.Time Windows: Built-in EST market-session filters that strictly lock your trading window and automatically flatten all open positions before the closing bell rings.Max Dollar Loss Circuit Breaker: An absolute safety switch that liquidates everything if unrealized open drawdowns cross your predefined dollar risk threshold.Input Guide Strategy Execution Mode: Choose whether we hunt the reversal when price crashes hard away from the line, or follow the big bear/bull wave.Trade Direction: What kind of hunt we do—go both ways like a smart trader, or stick strictly to long-only or short-only.Moving Average Type & Length: Pick your line flavor (SMA, EMA, HMA).Band Calculation & Initial Gap: Define how far price must run away from the baseline before enter trade.Scale-In Step & Martingale Settings: Control how deep price must drop before adding more size, and how aggressively each stacked layer grows.Take Profit & Stop Loss Multipliers: Set your distance for collecting big feasts when the average entry price bounces back, alongside the emergency parachute stop loss.Prop Mode & Start/End Times: Lock your trading strictly inside capitalist working hours so you never violate risk rules or hold overnight risk.Release NotesUpdating chart image associated with script.Release NotesAdded VWAP average option.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView