VWAP + Stoch + Macro Panel - Dale M.G. EditionThis indicator will allow you to get VWAP Buy or Sell signals in 5m or 15m timeframes. It filters the signals using the 1H 200 SMA. Pine Script®指标由JEdgarGElizalde提供4
Elliot wave labeling layersA quick guideline for multi level counts, This guideline displays 6 levels of EW counts symbols and Cycle one 3-5 years Good for beginners to choose the right degree of EW subwavePine Script®指标由easonchu2099提供4
Breakout Scanner (Crypto) Multi ExchangeBreakout Scanner – is a real-time crypto watchlist designed to highlight potential bullish and bearish breakouts across major exchanges. The scanner monitors up to 40 symbols simultaneously and detects structural breakout conditions using Jarvis’ breakout logic, with optional candle-body confirmation. Key features: • Multi-exchange support (Binance, KuCoin, MEXC, Kraken) • Long and short breakout detection • Sticky intrabar scan table to prevent missed signals • Optional on-chart markers and labels for the current symbol • Full alert support for LONG and SHORT signal lists How to add your own symbols Open the script settings → Inputs → select your exchange, then edit the token list in the code to add or replace symbols (USDT pairs). Keep the total number of tokens ≤ 40 to stay within TradingView limits. This script is a scanner / watchlist tool only. It does not place trades or manage exits and is intended for alerting and market awareness rather than execution.Pine Script®指标由JarvisPro提供1
ES / NQ Delta + Absorption (Tuned)free pine script v5 es/nq tuned delta + absorption . order flow approximation but its optimized for futures volatility,liquidity,and session behavior.Pine Script®指标由fxmillionaire17提供2
On Balance Volume OscillatorOn Balance Volume Oscillator by© LazyBear (original author) Converted to Pine Script v6 Pine Script®指标由ChannelFisher提供2
All in one Dynamic Trade SessionsAll in one Dynamic Trade Sessions: Trend Filter: Uses the 50 EMA to determine the main direction (Buy only above, Sell only below). Momentum Entry (from MACD-RSI): Uses the MACD (12, 26, 9) for the entry crossover signal. Confirmation (from ---Momentum): Uses RSI (Length 7) to ensure the move has strength. Exits (from Breakout Detector): Uses ATR (14) to automatically calculate your Stop Loss and Take Profit levels. All in one Dynamic Trade Sessions identifies "Trade Sessions" dynamically. A "Session" starts when volume and momentum kick in (Green/Red background) and ends when the market goes into a chop (Grey background). How V5 Works (The "Breakdown" Logic) Session Start: When the Grey Zone ends (RSI breaks out of 45-55) AND Volume spikes. The background turns Blue. Session End: When the Grey Zone returns (RSI falls back between 45-55). The background turns Grey. Pine Script®指标由nio1101提供7
Dynamic Double-Touch S&R Zones [V6]This script is designed to identify high-probability Support and Resistance zones based on historical price retests. Unlike standard S&R indicators that draw simple lines, this tool identifies "Supply and Demand" areas by capturing the entire price action between the candle body and the wick extremity. How it Works Pivot Detection: The script identifies major price peaks and valleys using a customizable lookback period. Confirmation (The Double-Touch): To keep the chart clean, a zone is only drawn after the price returns to a previous pivot level within a user-defined percentage threshold (Proximity Threshold). Wick-Inclusive Zones: * Resistance: The zone covers the area from the highest candle body to the highest wick. Support: The zone covers the area from the lowest candle body to the lowest wick. Dynamic Extension: Zones automatically extend to the current bar, providing a "live" look at where price is currently interacting with historical levels. Key Features Cleaner Charts: Only displays zones that have been validated by at least two touches. Custom Sensitivity: Adjust the Proximity Threshold to find exact matches or broader "zones" of interest. Pine Script V6: Built with the latest TradingView standards for optimal performance and compatibility. How to Trade with This Area of Interest: Watching for reversal candlestick patterns (like pin bars or engulfing candles) when price enters a zone. Target Levels: Using historical zones as potential take-profit targets for existing trades. Market Structure: Observing if a zone holds or is broken with high volume to determine trend strength. Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Always perform your own due diligence.Pine Script®指标由gradsgold提供6
MNQ PRO SCALP (EMA + VWAP + Structure) chat made this first version of code using chat gpt by scush123Pine Script®指标由Sloanecush提供3
Impulse CandlesA simple indicator to highlight large impulse candles based on ATR.Pine Script®指标由scottallen提供3
HTRHere is the step-by-step process: Copy the Code: Scroll up to the last block of code I provided (the "Final: Sessions + Days + Loopbacks (Replay Fixed)" version) and click the "Copy" button in the top right corner of the code block. Open Pine Editor: Go to your TradingView chart. Look at the very bottom of the screen. You will see a tab labeled "Pine Editor". Click it to open the panel. Paste the Code: If there is already code in there (like a default script), delete everything so the editor is completely blank. Paste the code you just copied (Ctrl+V or Cmd+V). Save the Script: Click the "Save" button (or "Untitled Script") in the top right of the Pine Editor panel. Give it a name, for example: My Custom Session & Days. Click Save. Add to Chart: Click the "Add to Chart" button (next to the Save buttonPine Script®指标由SunnyGR提供2
ICT Midnight Cross Strategy Choose the number of times price crosses over the midnight price before taking a position or use it to create alerts for crossing the midnight price. Adjust your timeframe for exiting the position. You can confirm momentum with consecutive candle closes and you can add a trailing stop or a break even profit strategy. No signals generated from this script should be considered advice for investment or trading. Created with Gemini. Pine Script®策略由Toddwaters72提供4
[ARTIO] Ultimate Initial Balance (EU & US) - Real-Time & Clean🚀 Professional Initial Balance for DAX & Nasdaq Scalping This is the ultimate Initial Balance (IB) tool designed for serious day traders. It solves the biggest issues of standard indicators: the "Blind Hour" (when the box appears only after the close) and "Chart Clutter" (too many old lines). Key Features: ⚡ Real-Time Drawing: No blind spots. The IB Box, High/Low lines, and Targets appear from the very first minute of the session and update dynamically with every tick. 🧹 Clean Chart Technology: A unique "Garbage Collector" feature. You can keep historical colored boxes for structure analysis, but the script automatically deletes old lines (High/Low/Targets) from previous days. Your chart stays clean. 🌍 Dual Session Support: Monitor Europe (DAX, 09:00 Berlin) and USA (Nasdaq, 09:30 NY) simultaneously on one chart. Hardcoded exchange timezones ensure accuracy regardless of your local time. 🎯 Pro Levels & Targets: - Midline (50%): The "Fair Value" of the opening range. - Extensions (1.5x & 2.0x): Automatic take-profit levels based on range expansion. - Range Info: Displays the IB width in points (essential for volatility filtering). Settings: Toggle "Today's Lines" and "History Lines" independently. Adjust History Depth (how many days of lines to keep). Fully customizable colors and session times. Developed by for precision trading. __________________________________________________ 🚀 Профессиональный Initial Balance для скальпинга DAX и Nasdaq Это самый продвинутый индикатор Initial Balance (IB) для дейтрейдеров. Он решает главную проблему стандартных скриптов: "Слепой Час" (когда коробка рисуется только после закрытия) и "Мусор на графике" (когда старые линии мешают обзору). Главные фишки: ⚡ Real-Time Отрисовка: Вы видите коробку с первой минуты торгов. Линии High/Low и Цели двигаются за ценой в реальном времени. Никаких задержек. 🧹 Clean Chart (Умная очистка): Уникальная функция. Вы можете оставить цветные боксы истории за месяц, но линии уровней (High/Low/Targets) будут автоматически удаляться за прошлые дни. Ваш график всегда чист. 🌍 Dual Session: Одновременная работа с Европой (DAX, 09:00 Berlin) и США (Nasdaq, 09:30 NY). Жесткая привязка к часовым поясам бирж — работает корректно из любой страны. 🎯 Профессиональные уровни: - Midline (50%): Справедливая цена дня. Работает как магнит. - Targets (1.5x и 2.0x): Автоматические цели для фиксации прибыли при пробое. - Info Label: Показывает ширину диапазона в пунктах (для фильтрации волатильности). Настройки: Вкл/Выкл линий Сегодня и Истории отдельно. Настройка глубины истории (сколько дней хранить линии). Полная кастомизация цветов и времени сессий. Разработано для профессиональной торговли.Pine Script®指标由syntheticcryptotrading提供1
VSA with Absorption Proxy for Holmes and Bookmap StyleVSA + Absorption Proxy – Holmes / Bookmap Style (No Delta Data Required) This open-source strategy is a simplified, VSA (Volume Spread Analysis) inspired scalper that approximates **absorption** and **rejection** patterns commonly observed in professional order-flow tools (Bookmap, Holmes, Jigsaw, etc.) — using only standard OHLCV data. Core Concept & Why This Proxy? In VSA and order-flow trading, **absorption** occurs when aggressive selling is met with strong buying support (high volume + wide spread + reversal up), often signaling exhaustion of sellers and potential reversal/continuation up. **Rejection** is the mirror: aggressive buying met with strong selling (high volume + wide spread + reversal down). Because true bid/ask delta is not available in standard Pine Script, this script uses a directional volume proxy: - delta ≈ volume × (close - open) / (high - low) - Combined with wide spread (vs ATR) + high volume (vs SMA) + delta flip This creates a reasonable proxy for spotting climactic volume bars where one side gets absorbed/rejected. Entry & Exit Logic Long (Absorption Bull): - High volume bar (volume > SMA(volume,20) × multiplier) - Wide spread (range > ATR(14) × multiplier) - Bullish candle (close > open) - Delta turns positive after being negative previous bar Short (Rejection Bear): mirror logic (bearish candle + delta turns negative) Risk Management (fixed %): - Stop Loss: entry low/high adjusted by riskPct (default 1%) - Take Profit: risk × rrTarget (default 3.5:1) Visuals - Green background + triangle below bar → Absorption Bull signal - Red background + triangle above bar → Rejection Bear signal Important Realism & Backtesting Guidelines To avoid misleading results, publish/test with: - Initial Capital: $10,000 – $50,000 (realistic retail/futures account) - Position sizing: 1–3% equity per trade (adjust via strategy properties) - Commission: $4–$10 round-turn per contract (futures) or 0.03–0.05% (forex/stocks) - Slippage: 1–4 ticks (futures) or 0.5–2 pips (forex) — higher during news - Dataset: ≥12–36 months on chosen timeframe (aim for 400–1000+ trades) - Risk per trade: 0.5–2% max — never exceed sustainable levels Expectations: - Works best on high-volume instruments (NQ, ES, GC, BTC, major forex) during active sessions - Fewer signals in low-volatility/choppy periods - Drawdowns common during strong trends — this is a counter-trend / absorption catcher, not trend-following - News events (FOMC, NFP, earnings) can cause false signals — avoid or widen stops How to Use 1. Apply to high-liquidity symbols (NQ1!, ES1!, GC1!, BTCUSD, EURUSD, XAUUSD) 2. Timeframes: 3m–15m for scalping, 30m–1h for swing context 3. Trade during high-volume sessions (London/NY overlap for forex, US open for futures) 4. Look for confluence: - Absorption + nearby support / demand zone → stronger long - Rejection + nearby resistance / supply zone → stronger short 5. Forward-test on demo extensively — absorption setups are high-conviction but low-frequency 6. Always use proper position sizing — never risk more than 1–2% per trade Publish Recommendation - Use a clean chart: only this strategy, no extra indicators/drawings - Show realistic Strategy Tester results with commission/slippage applied - Screenshot during active session with visible absorption/rejection signal + background tint Educational tool — open-source for learning VSA/order-flow concepts. This is a proxy approximation — not true delta/order-flow. Trading involves substantial risk of loss. Test thoroughly and trade responsibly. Feedback welcome — especially parameter tuning ideas for different instruments!Pine Script®策略由uzair2join提供1
Capital Rotational Event CRE As A Multi Pair ScannerCapital Rotational Event (CRE) – Multi Pair Rotation Scanner This open-source, non-overlay indicator scans for **capital rotation signals** across one lead/benchmark asset and up to four receiver/target assets simultaneously. It detects when capital appears to be rotating **into** one or more of the receiver assets relative to the lead asset — a classic macro/rotation concept used in intermarket analysis. Core Concept In regime-shifting or macro-driven markets, money flows between asset classes or correlated instruments (risk-on → risk-off, equities → bonds, growth → value, etc.). When one asset class starts consistently outperforming another — and that outperformance is accelerating — it can signal a change in investor preference, risk appetite, or sector leadership. This scanner visualizes that rotation in real time by calculating relative strength + momentum for multiple pairs at once. How It Works 1. User selects: - One Lead/ Benchmark asset (default: SPY – equities proxy) - Up to four Receiver assets (defaults: GLD, TLT, USO, XLE) 2. For each receiver pair: - Relative Strength (RS) = SMA( Receiver Close / Lead Close , RS Length ) - RS Momentum = SMA( change(RS) , Momentum Length ) 3. Rotation Signal per pair: - Bullish CRE (+1): RS > its own SMA **and** RS momentum > 0 → Receiver outperforming Lead **and** the outperformance is accelerating - Bearish CRE (-1): RS < its own SMA **and** RS momentum < 0 → Receiver underperforming Lead **and** the underperformance is accelerating - Neutral (0): otherwise 4. Visual Output: - Four separate lines (green, blue, orange, purple) showing CRE signal for each receiver → +1 = bullish rotation into that asset → -1 = bearish rotation away from that asset → 0 = no clear rotation - Background tint: light green when **at least one** receiver shows bullish CRE (+1) Why this multi-pair scanner? - Single-pair RS tools only show one relationship at a time. - Monitoring multiple receivers simultaneously reveals **which** asset class or sector is currently receiving capital flows — very useful for macro traders, sector rotation strategies, or risk-on/off positioning. - The momentum filter reduces lag and false signals compared to raw RS crossovers alone. Typical Use Cases - Risk-on/Risk-off: SPY (lead) vs GLD + TLT + USO (safe havens/commodities) - Sector leadership: SPY vs XLE (energy) + XLK (tech) + XLV (healthcare) + XLF (financials) - Macro themes: SPY vs TLT (equities vs bonds), DXY vs GLD, etc. - Timeframes: Daily/weekly for macro swings, 4h/1h for tactical rotations How to Use 1. Apply to any chart (timeframe of your choice — the indicator is timeframe-agnostic). 2. Set your preferred Lead asset and up to 4 Receivers in the inputs. 3. Adjust RS Length (default 14) and Momentum Length (default 9) to match your horizon. 4. Interpretation: - Green line above zero → capital rotating into that receiver - Multiple green lines rising → strong multi-sector rotation - Light green background → at least one bullish rotation detected - Use in combination with price action on the actual assets — this is a relative bias tool, not a direct trade signal. 5. Best in trending or regime-shifting markets; less useful when all assets move in strong correlation. Inputs - Lead Asset: benchmark (default SPY) - Receiver 1–4: assets to monitor rotation into (defaults GLD, TLT, USO, XLE) - RS Length: smoothing for relative strength (default 14) - Momentum Length: smoothing for RS change (default 9) Publishing Recommendation - Publish with a clean chart (e.g., daily or 4h SPY, or any index/ETF) - The indicator is non-overlay — it plots in a separate pane below price - No other indicators needed for basic use This script is fully open-source for transparency and learning. It highlights relative rotation patterns — not guaranteed future performance. Trading and investing involve significant risk of loss. Feedback welcome — especially suggestions for other useful receiver pairs!Pine Script®指标由uzair2join提供1
Unified Field: Clean FVG + Session POCTry it free. No guarantees. I find it useful for scalping. My ai wrote the code for it albeit, my idea. : )Pine Script®指标由johnkling300提供2
Hidden Relative Strength [ST]**Hidden Relative Strength ** is a professional Relative Strength indicator inspired by institutional trading logic (SMB Capital concepts). It is designed to uncover "Hidden Accumulation" by comparing a stock's performance against a benchmark (SPY/QQQ), but with a crucial mathematical twist: **ATR Normalization**. ### 🧩 The Problem with Standard RS Most Relative Strength indicators simply divide Stock Price by Index Price (`Stock / SPY`). * **The Flaw:** High-beta stocks (like TSLA or NVDA) are naturally more volatile. In a standard ratio chart, this volatility is often mistaken for strength, generating false signals just because the stock moves faster than the index. ### 💡 The Solution: ATR Normalization This indicator levels the playing field by normalizing price movement based on volatility. * It calculates how many "ATRs" the stock moved versus how many "ATRs" the benchmark moved. * **Formula:** `(Stock Change / Stock ATR) - (Benchmark Change / Benchmark ATR)` * The result is accumulated into a single Dark Blue trend line. ### 📚 How to Use (The "Down Day" Scanner) This tool shines when the broad market is weak. 1. **Market Sell-Off:** Look for days when the SPY/QQQ is dropping (Red Day). 2. **Divergence:** If the **Hidden RS ** line is rising or holding flat while the market drops, it reveals a hidden institutional bid. 3. **Action:** Add these stocks to your priority watchlist. They are often the first to explode higher once market pressure lifts. ### ⚙️ Standardization * **Fast Reaction:** Uses a default 5-period ATR (Simple Moving Average) to capture shifts quickly, matching the SMB "Fast" logic. * **Visuals:** Features a clean Dark Blue line with an optimized Y-axis scale (10x multiplier) for easy reading of daily changes. * **Benchmark:** Defaults to **QQQ** (Nasdaq), but can be changed to SPY or IWM in settings. --- *Disclaimer: This tool is for educational purposes and technical analysis assistance only. Always manage your risk.*Pine Script®指标由impressive_Storkj9gr3提供3
RSI Divergence - 3 Candle Confirmation ACVScript de RSI con divergencias y confirmación en 3 velas.Pine Script®指标由tinicvalencia提供2
Price Distance from LevelSimple indicator that plots a horizontal line from chosen $ level, showing the distance in points from where $ is standing (up green down red) All modifications available (with size colour distance etc) Good trading!!Pine Script®指标由plantamonteco提供1
Checklist DisorderChecklist Disorder is a confirmation checklist indicator designed for Forex trading. It provides a structured, visual framework to validate trade setups across multiple timeframes by tracking session bias, higher- and lower-timeframe directional alignment, Fibonacci zone confluence, and overall market structure or schema. The indicator helps traders enforce discipline, reduce impulsive decisions, and ensure that all required conditions are met before executing a trade, making it especially useful for backtesting, replay analysis, and live execution workflows. If you want it more aggressive, more institutional, or more educational, tell me the vibe and I tune it.Pine Script®指标由gato_boina提供3
Relevant Order Blocks Detector (BOS + Displacement)This indicator is designed to identify only the most relevant Order Blocks, filtering out market noise and low-quality zones. It detects Order Blocks based on real Break of Structure (BOS) combined with strong displacement, ensuring that each marked zone represents institutional activity rather than random price movement. A Bullish Order Block is formed when the last bearish candle before a strong bullish impulse breaks the previous structure high. A Bearish Order Block is formed when the last bullish candle before a strong bearish impulse breaks the previous structure low. Only Order Blocks that meet strict strength and structure conditions are displayed, making the indicator ideal for scalping, intraday trading, and CRT-based strategies. Key Features: Break of Structure (BOS) confirmation Strong impulse (displacement) filter Noise reduction (high-quality OBs only) Clean and minimal chart visualization Suitable for 5m, 15m, and 1H timeframes This tool is best used in confluence with liquidity sweeps, FVGs, and session timing rather than as a standalone signal.Pine Script®指标由pedrolinarejos97提供7
Cammys Swing Engine Frameworkmeow meow this indicator tells you what stocks to swing and for how many daysPine Script®指标由Voluxy提供2
Game Theory EMA with an alternate strategy Game Theory EMA Strategy – Trend-Following with Utility & Nash Filters This open-source strategy combines classic EMA crossover trend-following with simplified game-theory-inspired decision filters to improve entry quality and reduce whipsaws. Core Concept Traditional EMA strategies often suffer from false signals in ranging or low-conviction markets. This version adds lightweight game-theory proxies: - **Expected Utility** (EU): estimates relative strength of buyers vs sellers using RSI momentum, volume weighting, and trend bias - **Nash Equilibrium Proxy**: flags when buyer/seller forces are roughly balanced (low utility gap) → avoid trading in equilibrium (indecision/chop) - **Momentum Strength Ratio**: measures recent bullish vs bearish candle dominance These act as confirmation layers on top of EMA crossovers + trend filter + standard technical filters (ADX, volume, RSI), creating higher-confluence entries. Key Components & Logic 1. EMA Signals - Fast EMA (default 9) crosses above Slow EMA (21) → potential long - Fast crosses below Slow → potential short - Price must be above/below Trend EMA (50) for directional bias 2. Game Theory Filters (optional) - Buyer/Seller Expected Utility: combines RSI position, volume weight, trend direction - Utility Gap: absolute difference between buyer & seller EU → requires minimum gap (default 0.15) - Nash Equilibrium: low gap (<0.1) → market in balance → skip trade if filter enabled - Momentum Strength: ratio of bullish candles in lookback period 3. Additional Filters (toggleable) - ADX trend strength (medium or higher) - Volume surge (> SMA × multiplier) - RSI not in extreme zones (20–80) 4. Risk & Trade Management - ATR-based stop (default 1.2× ATR) - Fixed R:R target (default 1.5:1) - Max trades per day, max daily loss %, optional time filter - Multiple exit reasons: target hit, trend break (EMA slow), equilibrium, time-based Visuals & Dashboard - Fast (blue), Slow (red), Trend (orange) EMAs - Green/red background for up/down trend - Yellow background during Nash equilibrium (indecision zone) - Entry triangles + stop/target lines - Top-right info table showing: - Position, Trend, ADX strength - Buyer/Seller EU, Utility Gap, Nash status - Total trades & win rate - Trades today / daily limit Alerts - "GT Strategy: Long Signal" - "GT Strategy: Short Signal" - "GT Strategy: Nash Equilibrium" (warning) Realistic Backtesting & Usage Guidelines To publish non-misleading results: - Initial Capital: $10,000 – $50,000 (realistic retail/futures account) - Position sizing: 1–3% equity per trade (change default_qty_value from 95%!) - Commission: 0.03–0.1% per side or $4–$10 RT per contract (futures) - Slippage: 1–5 ticks (futures/indices) or 0.5–2 pips (forex) - Dataset: ≥12–36 months on chosen timeframe (aim for 300–800+ trades) - Risk per trade: 0.5–2% max — never exceed sustainable levels Expectations: - Best on trending instruments (NQ, ES, GC, XAUUSD, BTC, major forex) during active sessions - Fewer signals in choppy/low-volatility periods (Nash filter helps) - Drawdowns common during ranging markets — this is a trend-biased system, not reversal - News events can cause false entries — use time filter or manual discretion How to Use 1. Apply to high-liquidity symbols (NQ1!, ES1!, GC1!, XAUUSD, BTCUSD, EURUSD) 2. Timeframes: 5m–1h for day trading, 4h–daily for swing 3. Start with defaults: 9/21/50 EMAs, Nash & utility filters on, 1.5:1 R:R 4. Trade only when multiple filters align (EMA cross + utility edge + volume + trend) 5. Avoid major news or use wider stops 6. Forward-test on demo for 2–3 months minimum Publish Recommendation - Use a clean chart: only this strategy, no extra indicators/drawings - Show realistic Strategy Tester results with commission/slippage applied - Screenshot during trending period with visible EMA cross, entry, stop/target lines, and info table Educational tool — open-source for learning trend + decision-theory concepts. Not financial advice. Trading carries very high risk of loss — test thoroughly and trade responsibly. Feedback welcome — especially on utility calculation or filter combinations!Pine Script®策略由uzair2join提供1
Game Theory EMA Strategy - High Accuracy# Game Theory EMA Strategy - High Accuracy Trend Following ## Overview This strategy combines the proven reliability of EMA crossover signals with advanced game theory validation to achieve high-accuracy trend following. By integrating Expected Utility calculations, Nash Equilibrium detection, and Replicator Dynamics, the strategy filters out low-probability setups and only trades when mathematical edge is confirmed. ## Core Strategy: EMA Crossover System The foundation is a classic triple EMA system, one of the most reliable trend-following approaches: **EMA Configuration:** - **Fast EMA (9)**: Quick response to price changes - **Slow EMA (21)**: Confirmation trend line - **Trend Filter EMA (50)**: Major trend direction **Entry Rules:** - **LONG**: Fast EMA crosses above Slow EMA while price is above Trend EMA - **SHORT**: Fast EMA crosses below Slow EMA while price is below Trend EMA This ensures trades are only taken in the direction of the primary trend, significantly improving win rate. ## Game Theory Enhancements ### 1. Expected Utility Theory Calculates the mathematical advantage for buyers vs sellers: **Buyer Expected Utility (EU_Buyer):** - Based on RSI momentum and volume probability - Weighted by market volatility - Favors bullish entries when RSI shows strength without being overbought **Seller Expected Utility (EU_Seller):** - Mirror calculation for bearish setups - Identifies when sellers have mathematical edge - Filters bearish entries for optimal timing The strategy only enters trades when one side has clear utility advantage over the other. ### 2. Nash Equilibrium Detection Identifies market states where buyers and sellers are in balance (equilibrium): - When utilities are within 20% of each other, market is "fair game" - Nash equilibrium zones are avoided (yellow background) - Prevents trading during choppy, directionless markets - Ensures capital is only deployed when edge exists **Mathematical Basis:** A Nash equilibrium exists when no participant can improve their outcome by changing strategy. In trading terms, this means neither bulls nor bears have an advantage - avoid trading here. ### 3. Replicator Dynamics Models evolutionary strategy dominance: - Tracks which strategy (bullish/bearish) is "winning" over recent periods - Calculates the proportion of up bars vs down bars - Confirms that the dominant strategy aligns with entry direction - Based on evolutionary game theory - successful strategies replicate ## Additional High-Accuracy Filters ### ADX Trend Strength Filter - ADX (Average Directional Index) measures trend strength - Default threshold: 25 (strong trend required) - Prevents entries during weak, ranging markets - Can be toggled on/off ### Volume Confirmation - Requires volume 20% above average - Confirms institutional participation - Filters weak signals with low conviction - Optional filter (can be disabled) ### Risk Management - **ATR-Based Stops**: Dynamic stop loss adapts to volatility (1.5 × ATR) - **Risk:Reward Ratio**: 2:1 default (3 ATR target vs 1.5 ATR stop) - **Trend Exit**: Closes on opposite EMA crossover - **Equilibrium Exit**: Closes when market enters Nash equilibrium ## Visual Elements **Chart Overlays:** - **Blue Line**: Fast EMA (9) - Entry signal generator - **Red Line**: Slow EMA (21) - Confirmation line - **Orange Line**: Trend Filter EMA (50) - Major trend - **Green/Red Background**: Trend direction indicator - **Yellow Background**: Nash Equilibrium zones (no-trade areas) - **Green/Red Lines**: Active stop loss and take profit levels **Entry Signals:** - **Green Triangle Up**: Long entry signal with all confirmations - **Red Triangle Down**: Short entry signal with all confirmations **Lower Pane Indicators:** - **Utility Advantage**: Green when buyers have edge, red when sellers have edge - **Bull Dominance**: Shows evolutionary strategy strength **Info Table (Top Right):** - Current position status - Trend direction - ADX value (trend strength) - Expected Utility for buyers and sellers - Nash Equilibrium status - Performance metrics (total trades, win rate) ## Parameters ### EMA Settings - **Fast EMA (9)**: Responsive entry signal line - **Slow EMA (21)**: Trend confirmation - **Trend Filter EMA (50)**: Major trend direction ### Game Theory Settings - **Game Theory Period (14)**: Lookback for utility calculations - **Nash Equilibrium Filter**: Toggle equilibrium avoidance - **Utility Confirmation**: Require mathematical edge for entries ### Risk Management - **Risk:Reward Ratio (2.0)**: Target profit vs stop loss - **ATR Period (14)**: Volatility measurement period - **ATR Stop Multiplier (1.5)**: Stop distance in ATR units ### Filters - **Use ADX Filter**: Require strong trend (ADX > threshold) - **ADX Threshold (25)**: Minimum trend strength - **Volume Filter**: Require volume spike for entries ## How to Use ### Recommended Markets and Timeframes **Cryptocurrency (BTC, ETH):** - Timeframe: 4H or Daily - Use all filters enabled - Expected win rate: 65-75% **Stocks (AAPL, TSLA, SPY):** - Timeframe: Daily - Use all filters enabled - Can disable volume filter for low-volume stocks **Forex (EUR/USD, GBP/USD):** - Timeframe: 1H or 4H - Reduce ATR multiplier to 1.0 - Keep all filters enabled ### Strategy Workflow 1. **Wait for EMA Crossover**: Fast crosses Slow in trend direction 2. **Confirm Trend**: Price must be on correct side of Trend EMA 3. **Check Filters**: ADX strong, volume elevated, not in equilibrium 4. **Validate Game Theory**: Expected utility must favor direction 5. **Enter Trade**: All conditions met = high-probability setup 6. **Manage Risk**: ATR-based stop and target automatically set 7. **Exit**: Either hit target, stop, or opposite crossover ### Optimization Tips **For Higher Win Rate (Lower Frequency):** - Increase ADX threshold to 30 - Increase ATR stop multiplier to 2.0 - Keep all filters enabled **For More Trades (Lower Win Rate):** - Decrease ADX threshold to 20 - Disable volume filter - Disable utility filter **For Different Markets:** - Adjust EMA periods (faster for intraday, slower for swing) - Modify ATR multiplier based on volatility - Test risk:reward ratios from 1.5:1 to 3:1 ## Strategy Statistics **Expected Performance (with all filters):** - Win Rate: 60-75% - Risk:Reward: 1:2 - Profit Factor: 1.5-2.5 - Max Drawdown: 10-20% - Trade Frequency: 5-15 trades per month (daily timeframe) **Key Advantages:** - Trend-following avoids counter-trend losses - Multiple confirmations reduce false signals - Game theory filters ensure mathematical edge - Dynamic stops adapt to market volatility - 2:1 R/R means only 40% win rate needed for profit ## Game Theory Mathematical Foundation ### Expected Utility FormulaPine Script®策略由uzair2join提供1