Liquidity Maxing [JOAT] — Strategy by officialjackofalltrades

By officialjackofalltrades

Performance Metrics

Description

Liquidity Maxing - Institutional Liquidity MatrixIntroductionLiquidity Maxing is an open-source strategy for TradingView built around institutional market structure concepts. It identifies structural shifts, evaluates trades through multi-factor confluence, and implements layered risk controls.The strategy is designed for swing trading on 4-hour timeframes, focusing on how institutional order flow manifests in price action through structure breaks, inducements, and liquidity sweeps.Core FunctionalityLiquidity Maxing performs three primary functions:Tracks market structure to identify when control shifts between buyers and sellersScores potential trades using an eight-factor confluence systemManages position sizing and risk exposure dynamically based on volatility and user-defined limitsThe goal is selective trading when multiple conditions align, rather than frequent entries.Market Structure EngineThe structure engine tracks three key events:Break of Structure (BOS): Price pushes beyond a prior pivot in the direction of trendChange of Character (CHoCH): Control flips from bullish to bearish or vice versaInducement Sweeps (IDM): Market briefly runs stops against trend before moving in the real directionThe structure module continuously updates strong highs and lows, labeling structural shifts visually. IDM markers are optional and disabled by default to maintain chart clarity.The trade engine requires valid structure alignment before considering entries. No structure, no trade.Eight-Factor Confluence SystemInstead of relying on a single indicator, Liquidity Maxing uses an eight-factor scoring system:Structure alignment with current trendRSI within healthy bands (different ranges for up and down trends)MACD momentum agreement with directionVolume above adaptive baselinePrice relative to main trend EMASession and weekend filter (configurable)Volatility expansion/contraction via ATR shiftsHigher-timeframe EMA confirmationEach factor contributes one point to the confluence score. The default minimum confluence threshold is 6 out of 8, but you can adjust this from 1-8 based on your preference for trade frequency versus selectivity.Only when structure and confluence agree does the strategy proceed to risk evaluation.Dynamic Risk ManagementRisk controls are implemented in multiple layers:ATR-based stops and targets with configurable risk-to-reward ratio (default 2:1)Volatility-adjusted position sizing to maintain consistent risk per trade as ranges expand or compressDaily and weekly risk budgets that halt new entries once thresholds are reachedCorrelation cooldown to prevent clustered trades in the same directionGlobal circuit breaker with maximum drawdown limit and emergency kill switchIf any guardrail is breached, the strategy will not open new positions. The dashboard clearly displays risk state for transparency.Market PresetsThe strategy includes configuration presets optimized for different market types:Crypto (BTC/ETH): RSI bands 70/30, volume multiplier 1.2, enhanced ATR scalingForex Majors: RSI bands 75/25, volume multiplier 1.5Indices (SPY/QQQ): RSI bands 70/30, volume multiplier 1.3Custom: Default values for user customizationFor crypto assets, the strategy automatically applies ATR volatility scaling to account for higher volatility characteristics.Monitoring and DashboardsThe strategy includes optional monitoring layers:Risk Operations Dashboard (top-right):Trend stateConfluence scoreATR valueCurrent position size percentageGlobal drawdownDaily and weekly risk consumptionCorrelation guard stateAlert mode statusPerformance Console (top-left):Net profitCurrent equityWin rate percentageAverage trade valueSharpe-style ratio (rolling 50-bar window)Profit factorOpen trade countOptional risk tint on chart background provides visual indication of "safe to trade" versus "halted" state.All visualization elements can be toggled on/off from the inputs for clean chart viewing or full telemetry during parameter tuning.Alerts and AutomationThe strategy supports alert integration with two formats:Standard alerts: Human-readable messages for long, short, and risk-halt conditionsWebhook format: JSON-formatted payloads ready for external execution systems (optional)Alert messages are predictable and unambiguous, suitable for manual review or automated forwarding to execution engines.Built-in Validation SuiteThe strategy includes an optional validation layer that can be enabled from inputs. It checks:Internal consistency of structure and confluence metricsSanity and ordering of risk parametersPosition sizing compliance with user-defined floors and capsThis validation is optional and not required for trading, but provides transparency into system operation during development or troubleshooting.Strategy ParametersMarket Presets:Configuration Preset: Choose between Crypto (BTC/ETH), Forex Majors, Indices (SPY/QQQ), or CustomMarket Structure Architecture:Pivot Length: Default 5 barsFilter by Inducement (IDM): Default enabledVisualize Structure: Default enabledStructure Lookback: Default 50 barsRisk & Capital Preservation:Risk:Reward Ratio: Default 2.0ATR Period: Default 14ATR Multiplier (Stop): Default 2.0Max Drawdown Circuit Breaker: Default 10%Risk per Trade (% Equity): Default 1.5%Daily Risk Limit: Default 6%Weekly Risk Limit: Default 12%Min Position Size (% Equity): Default 0.25%Max Position Size (% Equity): Default 5%Correlation Cooldown (bars): Default 3Emergency Kill Switch: Default disabledSignal Confluence:RSI Length: Default 14Trend EMA: Default 200HTF Confirmation TF: Default DailyAllow Weekend Trading: Default enabledMinimum Confluence Score (0-8): Default 6Backtesting ConsiderationsWhen backtesting this strategy, consider the following:Commission: Default 0.05% (adjustable in strategy settings)Initial Capital: Default $100,000 (adjustable)Position Sizing: Uses percentage of equity (default 2% per trade)Timeframe: Optimized for 4-hour charts, though can be tested on other timeframesResults will vary significantly based on:Market conditions and volatility regimesParameter settings, especially confluence thresholdRisk limit configurationSymbol characteristics (crypto vs forex vs equities)Past performance does not guarantee future results. Win rate, profit factor, and other metrics should be evaluated in context of drawdown periods, trade frequency, and market conditions.How to Use This StrategyThis is a framework that requires understanding and parameter tuning, not a one-size-fits-all solution.Recommended workflow:Start on 4-hour timeframe with default parameters and appropriate market presetRun backtests and study performance console metrics: focus on drawdown behavior, win rate, profit factor, and trade frequencyAdjust confluence threshold to match your risk appetite—higher thresholds mean fewer but more selective tradesSet realistic daily and weekly risk budgets appropriate for your account size and risk toleranceConsider ATR multiplier adjustments based on market volatility characteristicsOnly connect alerts or automation after thorough testing and parameter validationTreat this as a risk framework with an integrated entry engine, not merely an entry signal generator. The risk controls are as important as the trade signals.Strategy LimitationsDesigned for swing trading timeframes; may not perform optimally on very short timeframesRequires sufficient market structure to identify pivots; may struggle in choppy or low-volatility environmentsCrypto markets require different parameter tuning than traditional marketsRisk limits may prevent entries during favorable setups if daily/weekly budgets are exhaustedCorrelation cooldown may delay entries that would otherwise be validBacktesting results depend on data quality and may not reflect live trading with slippageDesign PhilosophyMany indicators tell you when price crossed a moving average or RSI left oversold. This strategy addresses questions institutional traders ask:Who is in control of the market right now?Is this move structurally significant or just noise?Do I want to add more risk given what I've already done today/week?If I'm wrong, exactly how painful can this be?The strategy provides disciplined, repeatable answers to these questions through systematic structure analysis, confluence filtering, and multi-layer risk management.Technical ImplementationThe strategy uses Pine Script v6 with:Custom types for structure, confluence, and risk state managementFunctional programming approach for reusable calculationsState management through persistent variablesOptional visual elements that can be toggled independentlyThe code is open-source and can be modified to suit individual needs. All important logic is visible in the source code.DisclaimerThis script is provided for educational and informational purposes only. It is not intended as financial, investment, trading, or any other type of advice or recommendation. Trading involves substantial risk of loss and is not suitable for all investors. Past performance, whether real or indicated by historical tests of strategies, is not indicative of future results.No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between backtested results and actual results subsequently achieved by any particular trading strategy.The user should be aware of the risks involved in trading and should trade only with risk capital. The authors and publishers of this script are not responsible for any losses or damages, including without limitation, any loss of profit, which may arise directly or indirectly from use of or reliance on this script.This strategy uses technical analysis methods and indicators that are not guaranteed to be accurate or profitable. Market conditions change, and strategies that worked in the past may not work in the future. Users should thoroughly test any strategy in a paper trading environment before risking real capital.Commission and slippage settings in backtests may not accurately reflect live trading conditions. Real trading results will vary based on execution quality, market liquidity, and other factors not captured in backtesting.The user assumes full responsibility for all trading decisions made using this script. Always consult with a qualified financial advisor before making investment decisions.Enjoy - officialjackofalltrades

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView