CryptoFlux Dynamo [JOAT] — Strategy by officialjackofalltrades
By officialjackofalltrades
Performance Metrics
- Author: officialjackofalltrades
- Symbol: BITSTAMP:BTCUSD
- Timeframe: 1 day
- Net P&L: +10,970.04 USD (+10.97%)
- Win Rate: 42.6%
- Profit Factor: 1.745
- Max Drawdown: 4,276.94 USD (4.14%)
- Total Trades: 54
Description
CryptoFlux Dynamo: Velocity Scalping StrategyThis Pine Script v6 strategy is designed for cryptocurrency markets operating on 5-minute and faster timeframes. It combines volatility regime detection, multi-path signal confirmation, and adaptive risk management to identify momentum-based trading opportunities in perpetual futures markets.Core Design PrinciplesThe strategy addresses three challenges specific to cryptocurrency trading:24/7 market operation without session boundaries requires continuous monitoring and execution logicVolatility regimes shift rapidly, demanding adaptive stop and target calculationsTick-level responsiveness is critical for capturing momentum moves before they completeStrategy Architecture1. Signal Generation StackThe strategy uses multiple technical indicators calibrated for cryptocurrency momentum:MACD with parameters 8/21/5 (fast/slow/signal) optimized for crypto acceleration phasesEMA ribbon using 8/21/34 periods with slope analysis to assess trend structureVolume impulse detection combining SMA baseline, standard deviation, and z-score filteringRSI (21 period) and MFI (21 period) for momentum confirmationBollinger Bands and Keltner Channels for squeeze detection2. Volatility Regime ClassificationThe strategy normalizes ATR as a percentage of price and classifies market conditions into three regimes:Compression ( 1.6% ATR): Wider stops (2.1x ATR), amplified targets (2.8x ATR), tighter trailing offsetsATR is calculated over 21 periods and smoothed with a 13-period EMA to reduce noise from wicks.3. Multi-Path Entry SystemFour independent signal pathways contribute to a composite strength score (0-100):Trend Break (30 points): Requires EMA ribbon alignment, positive slope, and structure breakout above/below recent highs/lowsMomentum Surge (30 points): MACD histogram exceeds adaptive baseline, MACD line crosses signal, RSI/MFI above/below thresholds, with volume impulse confirmationSqueeze Release (25 points): Bollinger Bands compress inside Keltner Channels, then release with momentum biasMicro Pullback (15 points): Shallow retracements within trend structure that reset without breaking support/resistanceAdditional scoring modifiers:Volume impulse: +5 points when present, -5 when absentRegime bonus: +5 in velocity, -2 in compressionCycle bias: +5 when aligned, -5 when counter-trendTrades only execute when the composite score reaches the minimum threshold (default: 55) and all filters agree.4. Risk Management FrameworkPosition sizing is calculated from:Pine Script®RiskCapital = Equity × (riskPerTradePct / 100)StopDistance = ATR × StopMultiplier(regime)Quantity = min(RiskCapital / StopDistance, MaxExposure / Price)The strategy includes:Risk per trade: 0.65% of equity (configurable)Maximum exposure: 12% of equity (configurable)Regime-adaptive stop and target multipliersAdaptive trailing stops based on ATR and regimeKill switch that disables new entries after 6.5% drawdownMomentum fail-safe exits when MACD polarity flips or ribbon structure breaks5. Additional FiltersCycle Oscillator: Measures price deviation from 55-period EMA. Requires cycle bias alignment (default: ±0.15%) before entryBTC Dominance Filter: Optional filter using BTC.D to reduce long entries during risk-off periods (rising dominance) and short entries during risk-on periodsSession Filter: Optional time-based restriction (disabled by default for 24/7 operation)Strategy ParametersAll default values used in backtesting:Core ControlsEnable Short Structure: trueRestrict to Session Window: falseExecution Session: 0000-2359:1234567 (24/7)Allow Same-Bar Re-Entry: trueOptimization ConstantsMACD Fast Length: 8MACD Slow Length: 21MACD Signal Length: 5EMA Fast: 8EMA Mid: 21EMA Slow: 34EMA Slope Lookback: 8Structure Break Window: 9Regime IntelligenceATR Length: 21Volatility Soothing: 13Low Vol Regime Threshold: 0.8% ATRHigh Vol Regime Threshold: 1.6% ATRCycle Bias Length: 55Cycle Bias Threshold: 0.15%BTC Dominance Feed: CRYPTOCAP:BTC.DBTC Dominance Confirmation: trueSignal PathwaysVolume Baseline Length: 34Volume Impulse Multiplier: 1.15Volume Z-Score Threshold: 0.5MACD Histogram Smoothing: 5MACD Histogram Sensitivity: 1.15RSI Length: 21RSI Momentum Trigger: 55MFI Length: 21MFI Momentum Trigger: 55Squeeze Length: 20Bollinger Multiplier: 1.5Keltner Multiplier: 1.8Squeeze Release Momentum Gate: 1.0Micro Pullback Depth: 7Minimum Composite Signal Strength: 55Risk ArchitectureRisk Allocation per Trade: 0.65%Max Exposure: 12% of EquityBase Risk/Reward Anchor: 1.8Stop Multiplier • Low Regime: 1.05Stop Multiplier • Medium Regime: 1.55Stop Multiplier • High Regime: 2.1Take Profit Multiplier • Low Regime: 1.6Take Profit Multiplier • Medium Regime: 2.05Take Profit Multiplier • High Regime: 2.8Adaptive Trailing Engine: trueTrailing Offset Multiplier: 0.9Quantity Granularity: 0.001Kill Switch Drawdown: 6.5%Strategy SettingsInitial Capital: $100,000Commission: 0.04% (0.04 commission_value)Slippage: 1 tickPyramiding: 1 (no position stacking)calc_on_every_tick: truecalc_on_order_fills: trueVisualization FeaturesThe strategy includes:EMA ribbon overlay (8/21/34) with customizable colorsRegime-tinted background (compression: indigo, expansion: purple, velocity: magenta)Dynamic bar coloring based on signal strength divergenceSignal labels for entry pointsOn-chart dashboard displaying regime, ATR%, signal strength, position status, stops, targets, and risk metricsRecommended UsageTimeframesThe strategy is optimized for 5-minute charts. It can operate on 3-minute and 1-minute timeframes for faster scalping, or 15-minute for swing confirmation. When using higher timeframes, consider:Increasing structure lookback windowsRaising RSI trigger thresholds above 58 to filter noiseExtending volume baseline lengthMarketsDesigned for high-liquidity cryptocurrency perpetual futures:BTC/USDT, BTC/USD perpetualsETH perpetualsMajor L1 tokens with sufficient volumeFor thinner order books, increase volume impulse multiplier and adjust quantity granularity to match exchange minimums.Limitations and CompromisesBacktesting ConsiderationsTradingView strategy backtesting does not replicate broker execution. Actual fills, slippage, and commissions may differThe strategy uses calc_on_every_tick=true and calc_on_order_fills=true to reduce bar-close distortions, but real execution still depends on broker infrastructureAt least 200 historical bars are required to stabilize regime classification, volume baselines, and cycle contextMarket Structure DependenciesBTC dominance feed (BTC.D) may lag during low-liquidity periods or weekends. Consider disabling the filter if data quality degradesVolume impulse detection assumes consistent order book depth. During extreme volatility or exchange issues, volume signatures may be unreliableRegime classification based on ATR percentage assumes normal volatility distributions. During black swan events, regime thresholds may not adapt quickly enoughParameter SensitivityDefault parameters are tuned for BTC/ETH perpetuals on 5-minute charts. Different assets or timeframes require recalibrationThe composite signal strength threshold (55) balances selectivity vs. opportunity. Higher values reduce false signals but may miss valid setupsRisk per trade (0.65%) and max exposure (12%) are conservative defaults. Aggressive scaling increases drawdown riskExecution ConstraintsSame-bar re-entry requires broker support for rapid order placementQuantity granularity must match exchange contract minimumsKill switch drawdown (6.5%) may trigger during normal volatility cycles, requiring manual resetPerformance ExpectationsThis strategy is a framework for momentum-based cryptocurrency trading. Performance depends on:Market conditions (trending vs. ranging)Exchange execution qualityParameter calibration for specific assetsRisk management disciplineBacktest results shown in publications reflect specific market conditions and parameter sets. Past performance does not indicate future results. Always forward test with paper trading or broker simulation before deploying live capital.Code StructureThe strategy is organized into functional sections:Configuration groups for parameter organizationHelper functions for position sizing and normalizationCore indicator calculations (MACD, EMA, ATR, RSI, MFI, volume analytics)Regime classification logicMulti-path signal generation and composite scoringEntry/exit orchestration with risk managementVisualization layer with dashboard and chart elementsThe source code is open and can be modified to suit your trading requirements. Everyone is encouraged to understand the logic before deploying and to test thoroughly in their target markets.Modification GuidelinesWhen adapting this strategy:Document any parameter changes in your publicationTest modifications across different market regimesValidate position sizing logic for your exchange's contract specificationsConsider exchange-specific limitations (funding rates, liquidation mechanics, order types)ConclusionThis strategy provides a structured approach to cryptocurrency momentum trading with regime awareness and adaptive risk controls. It is not a guaranteed profit system, but rather a framework that requires understanding, testing, and ongoing calibration to market conditions.You should thoroughly understand the logic, test extensively in their target markets, and manage risk appropriately. The strategy's effectiveness depends on proper parameter tuning, reliable execution infrastructure, and disciplined risk management.DisclaimerThis script and its documentation are for educational and informational purposes only. They do not constitute financial advice, investment recommendations, or trading advice of any kind. Trading cryptocurrencies and derivatives involves substantial risk of loss and is not suitable for all investors. Past performance, whether real or indicated by backtesting, does not guarantee future results.This strategy is provided "as is" without any warranties or guarantees of profitabilityYou should not rely solely on this strategy for making trading decisionsAlways conduct your own research and analysis before making any financial decisionsConsider consulting with a qualified financial advisor before engaging in trading activitiesThe authors and contributors are not responsible for any losses incurred from using this strategyCryptocurrency trading can result in the loss of your entire investmentOnly trade with capital you can afford to loseUse this strategy at your own risk. The responsibility for any trading decisions and their consequences lies entirely with you.