Watermark V6Simple, clean chart watermark overlay. Customizable position, background transparency, text color/size/alignment. Pine Script® indicatorby lverret1138
[CodaPro] Smart Money Flow Engine V1.0 Smart Money Flow Engine V1.0 - Volume Separation, Order Blocks, Fair Value Gaps, and Reversal Protection OVERVIEW The Smart Money Flow Engine is a multi-layered institutional flow detection system. It separates buying and selling volume, identifies smart money concepts (order blocks and fair value gaps), scores reversal risk using a weighted system, and generates confluence-based trade signals with built-in trade management. This is not a simple volume indicator. It is a complete analytical framework designed to help traders understand what institutional participants are doing beneath the surface of price action. HOW IT WORKS 1. VOLUME SEPARATION The engine splits each bar's volume into estimated bull and bear components based on the relationship between open, close, high, and low. These are smoothed using VWMA over a configurable period (default 24). When bull volume dominates above a delta threshold, the indicator identifies a bull zone. When bear volume dominates, a bear zone. This separation is the foundation for all other calculations. 2. INSTITUTIONAL DETECTION When total volume exceeds the average by a configurable multiplier (default 2x) AND the directional volume confirms the move, the bar is flagged as institutional activity. The sensitivity is adjustable from 1.0 (very sensitive) to 2.0 (strict), allowing users to tune for their specific instrument. 3. ORDER BLOCKS Bullish order blocks are identified where a bearish candle with strong volume is immediately followed by a move above that candle's high. Bearish order blocks are the inverse. These are drawn as labeled boxes on the chart in Pro display mode. 4. FAIR VALUE GAPS The indicator detects price imbalances (gaps between candle bodies) that exceed a minimum percentage threshold (default 0.3%). Bullish FVGs appear as dashed boxes where price gapped up, bearish FVGs where price gapped down. These represent areas where price may return to fill the imbalance. 5. REVERSAL PROTECTION SYSTEM (Weighted Scoring) Before any signal fires, the engine calculates a reversal risk score (0-100) using four weighted components: - RSI Extremes (default 30 weight): Is RSI oversold or overbought? - Volume Climax (default 25 weight): Is there a volume spike at a price extreme? - Price Stretch (default 20 weight): Is price extended far from its EMA? - Consecutive Candles (default 25 weight): Have we seen exhaustion patterns? If the reversal score exceeds the threshold (default 50), the signal is blocked. This prevents buying at tops and selling at bottoms. The weights are fully adjustable so you can emphasize the factors that matter most for your instrument. 6. CONFLUENCE-BASED SIGNALS Signals require multiple confirmations before firing. In Aggressive mode, 2 of 5 factors must align. Balanced requires 3. Conservative requires 4. The five confluence factors are: volume zone direction, institutional activity, order block presence, fair value gap presence, and flow percentile rank. All signals require barstate.isconfirmed before firing. This indicator does not repaint. 7. TRADE MANAGEMENT Optional one-trade-at-a-time system with configurable take profit, stop loss, and maximum bars in trade. TP/SL lines are drawn on chart while a position is active. When a trade exits (by TP, SL, or max bars), the exit reason is labeled on the chart. 8. MONEY FLOW PROFILE In Pro display mode, a histogram-style flow profile is drawn to the right of the chart showing the distribution of net flow over the last 100 bars. Color gradients indicate bull vs bear flow intensity with a glowing zero line for reference. The most concentrated flow bucket pulses for emphasis. FEATURES - Bull/bear volume separation with VWMA smoothing - Institutional buy/sell detection with adjustable sensitivity - Order block identification and visualization - Fair value gap detection with minimum size filter - Weighted reversal protection scoring system (4 components, fully adjustable) - Three signal modes: Conservative, Balanced, Aggressive - Signal cooldown to prevent overtrading - Built-in trade management with TP/SL/Max bars - Money flow distribution profile with gradient coloring (Pro mode) - Two dashboards: main status panel and elite detector - Gradient candle coloring based on flow direction and strength - RSI extreme price levels drawn on chart with lookback window - Three color presets: CodaPro, Institutional, Heatmap - Dark and Light theme support - Three display modes: Lite, Standard, Pro - 9 alert conditions for automation NON-REPAINTING CONFIRMATION This indicator is designed to be fully non-repainting on confirmed bars: - No request.security calls (no lookahead risk) - All entry and exit signals gated by barstate.isconfirmed - All visual elements (labels, boxes, plotshapes) only render on confirmed bars - Consecutive candle counting only updates on confirmed bars - RSI level tracking only updates on confirmed bars - Dashboard and money flow profile update on current bar for display purposes only and have no impact on signal generation USAGE Apply to any instrument on any timeframe. The indicator works on stocks, forex, crypto, and futures. Start with default settings and adjust the signal mode based on your trading style. Use the reversal protection weights to fine-tune which conditions matter most for your instrument. RECOMMENDED SETTINGS BY STYLE Scalping: Aggressive mode, lower cooldown (5-10), tighter TP/SL Swing: Balanced mode, moderate cooldown (15-25), wider TP/SL Position: Conservative mode, high cooldown (30+), widest TP/SL ABOUT THE BUILD This indicator was engineered using ARiS, the AI coding engine behind CodaPro. ARiS is a collaborative development system that translates trading concepts into production-grade Pine Script. The strategy logic, volume separation methodology, reversal protection scoring system, and signal architecture were designed by ARiS through CodaPro.ai. ARiS handled the code architecture, optimization, and non-repainting compliance. Created by Aris | CodaPro Engine DISCLAIMER This tool was created using the CodaPro Pine-Script AI engine — designed to produce robust trading overlays, educational visuals, and automation-ready alerts. It is provided strictly for educational purposes and does not constitute financial advice. Always backtest and demo before applying to real capital. Pine Script® indicatorby ArisCodes54
MOSHIACH indicatorBuilt for traders who want clarity, not noise. This indicator focuses only on high-quality setups using trend, momentum and volatility filters. Features: • GO / WAIT signal engine • WHY NO GO™ dashboard • Trend + momentum confirmation • Compression detection • Multi-pair optimized Developed in Israel <3 by an independent trader focused on clean execution and disciplined trading. Designed for H4 swing traders. No repaint. Continuous updates included.Pine Script® indicatorby koshertrade98
HVM edited with 1afinds entries as per fii data use for option sellingPine Script® indicatorby xcjsowp281130
EMA + RSI Trade Decision Table V2 This indicator is a rule-based trade decision assistant designed for intraday and swing trading. It does not place trades automatically. Instead, it evaluates market conditions and clearly shows when a Long or Short setup is statistically favorable, using a structured score-based table. The goal is simple: 👉 Fewer trades, higher quality, full transparency. Core Concept The script combines trend regime, RSI behavior, EMA pullbacks, and risk filters into a single decision framework. Each bar is evaluated and assigned a confidence score (0–100) for: Long Short Only setups that pass all required conditions and reach the minimum score threshold are marked as TRADE READY. Key Features 1️⃣ Trend / Regime Detection Bull Regime: EMA50 > EMA100 Bear Regime: EMA50 < EMA100 Optional confirmation using price vs EMA200 Regime is shown clearly at the top of the table 2️⃣ Regime-Based RSI Zones (Advanced) RSI behavior changes depending on market regime. This script accounts for that by using four separate RSI zones: Bull Regime Long RSI Zone: trend-continuation pullbacks Short RSI Zone: overextended / exhaustion areas Bear Regime Short RSI Zone: weak pullbacks Long RSI Zone: extreme oversold relief bounces Neutral regime uses a configurable fallback zone. ➡️ This avoids the classic RSI mistake of using the same levels in all market conditions. 3️⃣ Pullback + Rejection Logic Trades are only considered if price: Pulls back into EMA50 or EMA100 Shows rejection confirmation Bullish candle for Long Bearish candle for Short (optional, configurable) This filters out random RSI signals and focuses on structured pullbacks. 4️⃣ Late Entry & Noise Filters To avoid bad entries: ❌ Price too far from EMA50 → blocked ❌ EMA50–EMA100 too close → choppy market ❌ Cooldown after EMA50/EMA100 cross → no immediate revenge trades All blockers are visible in the table. 5️⃣ Confidence Score (0–100) Each setup is graded using weighted components: RSI position RSI confirmation Pullback & rejection Trend alignment EMA200 context Penalties for distance, cooldown, chop Grades: A = High-quality setup B = Acceptable C = Low quality You decide the minimum score required to allow a trade. 6️⃣ Trade Decision Gate A trade is only marked as EXECUTE (LONG/SHORT) if: All mandatory conditions are met Score ≥ your defined threshold Otherwise, the system shows: WATCH PREPARE NO SETUP 7️⃣ Visual Decision Table Three display modes: Compact – quick overview Compact + Checks – overview + active checks Full – complete Long & Short breakdown Each row clearly shows: Requirement Current value Pass / Fail “To go” distance (how much is missing) 8️⃣ Alerts Alerts trigger only on state change, not on every bar: Long Entry Short Entry Optional: Alerts only on candle close (recommended) How to Use (Step-by-Step) Recommended Workflow Choose your timeframe (15m / 30m / 1H works best) Wait for BULL or BEAR regime Let price pull back into EMA50 / EMA100 Watch RSI move into the correct regime-based zone Wait for EXECUTE (LONG / SHORT) status Manage entry, stop-loss, and take-profit manually This indicator is a decision filter, not an entry sniper. Best Practices Works best in trending markets Avoid low-liquidity or sideways sessions Combine with: Market structure Support / resistance Session timing Do not trade every signal — trade the best scores Disclaimer This script is an educational and analytical tool. It does not provide financial advice and does not guarantee profitable trades. Always manage risk properly. Ergün ÖzmenPine Script® indicatorby ergunozUpdated 22200
3 Linear Regression Channels with AlertsHello With this indicator, you will be able to see the direction of short, medium, and long-term movements using linear regression channels and Fibonacci numbers. You will also be able to identify entry and exit levels for trades using channel support and resistance levels and channel intersections. Happy trading!Pine Script® indicatorby cetinmehmet46
Trend-o-MeterTrend-O-Meter: Smart Fractal Power Balance Indicator Fractal-based trend strength meter showing real-time bull/bear power. Pine Script® indicatorby Radjon42
KCP Alpha TEMA Trend Filter [Dr.K.C.Prakash]KCP Alpha TEMA Trend Filter This indicator uses Fast and Slow TEMA lines to show the true market trend with less noise than EMA. • Green TEMA → Short-term trend • Red TEMA → Long-term trend • BUY signal → Fast TEMA crosses above Slow TEMA • SELL signal → Fast TEMA crosses below Slow TEMA • Black VWAP → Reference level to see market balance and key reaction zones. In short, it helps traders quickly identify trend direction, crossover entry points, and important price levels on one clean chart.Pine Script® indicatorby prakash1126126
Elliott Wave Predictor (9-Step Cycle + Full Year Projection)Elliott Wave Predictor (9-Step Cycle + Full Year Projection) This indicator provides an advanced Elliott Wave structure analysis and projection tool, designed to visualize a complete hypothetical market cycle based on classic Fibonacci ratios. It models a complex 9-step Impulse Wave (1, 2A, 2B, 2C, 3, 4A, 4B, 4C, 5) followed by a post-cycle Correction (A-B-C), giving you a comprehensive roadmap for potential price action over the next ~1 year. Key Features 🌊 Advanced 9-Step Impulse Cycle Unlike simple 5-wave counters, this script models the internal sub-waves of corrections for greater precision: Wave 1: Initial Impulse Wave 2 (A-B-C): A detailed 3-step correction (ZigZag) targeting specific Fibonacci retracement levels (0.382, 0.50, 0.618). Wave 3: The major impulse leg targeting the 1.618 extension. Wave 4 (A-B-C): Another layered 3-step correction, providing realistic paused setups before the final leg. Wave 5: The final impulse targeting the 2.618 extension. 🔮 Full "Year-Ahead" Projections The script projects price action 12 steps into the future (Wave 1-5 + Correction A-B-C), visualized as a dotted path extending from the current price. This offers a long-term "what if" scenario based on ideal Elliott Wave structures. 🤖 Smart "Overshoot" Detection The prediction engine is context-aware. If the live price has already moved past a projected target (e.g., dropped deeper than expected for Wave A), the script automatically: Detects the overshoot. Assumes the current move is the completion of that wave. Instantly recalculates and projects the next leg (e.g., the Wave B bounce) from the current price. 🛠️ Manual & Auto Controls Auto Trend Detection: Analyzes recent price action (last 6 swings) to determine the dominant trend (Bullish/Bearish). Manual Overrides: Need to force a specific count? You can manually set the "Last Completed Wave" (e.g., "Just finished Wave 3") to align the projection with your own analysis. 📊 Comprehensive Dashboard A built-in table displays: Targets: Exact price levels for every upcoming wave. % Change: Standardized percent moves to reach each target. Fib Levels: The Fibonacci logic behind each target (e.g., "0.618 Retrace", "1.618 Ext"). 📈 Additional Overlays 50 & 200 WMA: Trend-following moving averages color-coded for instant bias confirmation. Fibonacci Levels: Dotted horizontal lines showing key support/resistance zones relative to the wave structure. How to Use Add to Chart: Works best on Daily (D) or Weekly (W) timeframes for swing trading contexts. Check Trend: Ensure the "Trend Direction" setting matches your market view (or leave it on "Auto"). Align Count: If the automatic count seems off (e.g., market is clearly in Wave 4 but script says Wave 2), use the "Manual Last Wave" setting to tell the script "I just finished Wave 3". The projection will instantly snap to the correct Wave 4->5 path. Disclaimer: This tool projects hypothetical geometric paths based on standard Elliott Wave theory. Markets do not always follow theory. Use this for planning and scenario analysis, not as a guaranteed signal. Pine Script® indicatorby TheTankTradesUpdated 57
SMC Pro BTC - ICT Order Blocks & FVG [DOE]# SMC Pro BTC - ICT Order Blocks & FVG A multi-timeframe smart money concepts engine built exclusively for Bitcoin. This indicator combines order blocks, fair value gaps, liquidity sweeps, break of structure, and premium discount zone analysis into one backtest-verified, non-repainting strategy — every signal you see in history is exactly what you would have seen live. Built by a former quantitative analyst from a US-based systematic fund. The structural logic behind this indicator is the same order flow mechanics that institutional algorithms use to identify and exploit liquidity imbalances — adapted for retail traders on TradingView. At the fund, we did not use RSI or MACD. We tracked where unfilled orders sat, where liquidity clustered, and where price needed to travel to resolve imbalances. That is what Smart Money Concepts formalizes, and that is what this indicator automates. This is a free, open-source tool. All backtest results below are fully reproducible on your chart with the default settings. No hidden parameters. No curve-fitting. No repainting. ## TWO STRATEGY MODES — CHOOSE YOUR RISK PROFILE The indicator offers two distinct execution modes built on the same structural foundation. The difference is filter strictness — one prioritizes opportunity, the other prioritizes quality. Both include commissions and slippage in their backtested results, because a backtest without commissions is fiction. ### AGGRESSIVE MODE Entries fire on any valid Break of Structure (BOS) or Change of Character (CHoCH) confirmed by an order block and fair value gap on the confirmation timeframe. This mode captures more setups, including momentum re-entries and early reversal signals. It accepts a lower win rate in exchange for catching a larger portion of trending moves. | Metric | Value | |---|---| | Total Trades | 55 | | Win Rate | 49.09% | | Net P&L | +49.12% | | Profit Factor | 1.41 | | Max Drawdown | 14.70% | A 49% win rate may not sound impressive on the surface. But this is not a coin flip. The 1.41 profit factor means that winning trades meaningfully outweigh losers — the strategy is designed to let winners run through a configurable risk-to-reward ratio. Over 55 trades with real commissions (0.075% per trade) and slippage (3 ticks per order), the system returned nearly 50% on initial capital. That is what positive expectancy looks like in practice. Mark Douglas wrote that there is a random distribution between wins and losses for any set of variables that define an edge. You do not need to win every trade. You need an edge and the discipline to follow it over a series. This mode is built for that exact mindset. ### SELECTIVE MODE Adds a premium/discount zone filter on top of all Aggressive conditions. Longs are only permitted in the discount zone of the higher-timeframe dealing range. Shorts are only permitted in the premium zone. This single structural filter cuts the trade count by more than half while dramatically improving signal quality. | Metric | Value | |---|---| | Total Trades | 21 | | Win Rate | 61.90% | | Net P&L | +26.92% | | Profit Factor | 2.347 | | Max Drawdown | 8.66% | A profit factor above 2.0 combined with single-digit drawdown is rare for any fully disclosed, non-repainting BTC strategy. The Selective mode achieves both over three full years of data. The tradeoff is fewer trades — 21 versus 55 — which means this mode requires patience. It is designed for traders who prefer waiting for optimal positioning over catching every move. Both modes are provided so you can evaluate the tradeoff between frequency and precision on your own terms. There is no objectively "better" mode. There is only the mode that matches your risk tolerance and psychological profile. ## ENTRY LOGIC — STEP BY STEP Every signal is generated through a strict multi-timeframe confluence model. No single condition is sufficient. The indicator requires alignment across structure, zone, imbalance, and liquidity before producing a signal. Here is the full logic for long entries — short entries mirror the process with inverted conditions. ### LONG ENTRY SEQUENCE **Step 1 — HTF Directional Bias (Break of Structure)** The Direction Timeframe (default: 4H) detects a bullish break of structure or change of character using swing highs and lows. This establishes the higher-timeframe directional bias. Without bullish structure on the HTF, no long signal can fire. This is the first gate. **Step 2 — MTF Confirmation (Structural Alignment)** The Confirmation Timeframe (default: 1H) must confirm with its own bullish BOS or CHoCH, aligning both timeframes in the same direction. This dual-timeframe structural alignment filters out a significant amount of noise and counter-trend traps. **Step 3 — Order Block Identification** The script looks back up to the configured OB Lookback Bars to find the last bearish candle before the impulsive bullish move — the order block where smart money accumulated positions. This zone represents an area of institutional demand that is likely to attract price on a revisit. **Step 4 — Fair Value Gap Validation** The indicator checks for a bullish fair value gap (the gap between candle 1's high and candle 3's low in a three-candle sequence) that overlaps the identified order block zone. An OB alone is a level. An OB combined with an FVG is confluence — two independent structural signals agreeing on the same price zone. This overlap is where the highest-probability entries concentrate. **Step 5 — Liquidity Sweep Confirmation** Before the signal can fire, the indicator verifies that a recent liquidity sweep occurred within the configured Sweep Memory window. A liquidity sweep means price dipped below a prior swing low, triggering stop-loss orders and pending sell orders, before reversing. This is the classic ICT stop hunt — institutional participants accumulating liquidity from retail stop-outs. Without this sweep, the setup lacks the liquidity fuel that drives the reversal. **Step 6 — Premium/Discount Zone Filter (Selective Mode Only)** In Selective mode, the entry must occur in the discount zone of the HTF dealing range, defined by the P/D Zone Threshold parameter. This ensures longs are taken only when price is trading at a structural discount — the lowest-risk portion of the range. **Step 7 — Execution** All conditions are met. The long signal fires on the next confirmed bar. Stop-loss is placed below the order block low minus the SL Buffer percentage. Take-profit is calculated at the configured Risk:Reward Ratio distance from entry. Both levels are plotted visually on the chart. ### SHORT ENTRY SEQUENCE The short entry mirrors the long with inverted conditions across all seven steps: 1. HTF bearish BOS or CHoCH establishes bearish bias 2. MTF bearish BOS or CHoCH confirms the direction 3. Bearish order block identified (last bullish candle before the sell-off) 4. Bearish fair value gap overlaps the order block zone 5. Liquidity sweep above a prior swing high (stop hunt to the upside) 6. Price in the premium zone of the HTF dealing range (Selective mode only) 7. SL placed above OB high plus buffer; TP calculated at R:R distance below entry Every step is objective. There is no discretionary component. The indicator either detects the confluence or it does not. This is not chart art — it is structure, codified. ## FEATURES - Non-repainting, non-lookahead signals — barstate.isconfirmed enforced on all calculations; what you see in history is what you would have seen live - Multi-timeframe structure analysis — HTF for direction, MTF for confirmation, entry timeframe for execution - Order block detection with configurable lookback depth and automatic invalidation when price trades through the zone - Fair value gap multi-zone display — shows up to N unfilled FVGs per direction simultaneously, configurable by maximum count and maximum distance from current price, so you only see the gaps that are structurally relevant to your current timeframe and price action - Liquidity sweep recognition with adjustable memory window for detecting stop hunts before entries - Break of Structure (BOS) and Change of Character (CHoCH) detection via swing-point analysis on multiple timeframes - Premium/discount zone mapping from the HTF dealing range, with configurable threshold for zone extremes - Automatic trade management — stop-loss and take-profit levels plotted with visual trade boxes on every signal - Two strategy modes — Aggressive for opportunity-seeking traders, Selective for precision-focused traders - Fully configurable parameters — every setting is exposed with sensible defaults optimized for BTC 4H - Built-in strategy engine — run backtests directly in TradingView's Strategy Tester with your own commission and slippage settings - Clean chart presentation — signals, zones, and labels are designed for readability on both desktop and mobile ## SETTINGS DOCUMENTATION **Strategy Mode** — Aggressive / Selective Aggressive uses the full confluence model: BOS/CHoCH + Order Block + FVG + Liquidity Sweep. Selective adds the premium/discount zone filter on top of everything. If you are new to smart money concepts, start with Selective — fewer signals, but each one carries stronger structural backing. **Direction TF (HTF)** — Default: 240 (4H) The higher timeframe that establishes directional bias through structural breaks. Increase to Daily (1440) for fewer, higher-conviction signals on larger moves. Decrease to 60 (1H) for more responsive structure detection on shorter swings. **Confirmation TF (MTF)** — Default: 60 (1H) The mid timeframe that confirms HTF bias before any entry can trigger. Must be lower than or equal to the Direction TF. The default 240/60 pair provides a 4:1 ratio that balances responsiveness with structural reliability. **Swing Length** — Default: 10 | Range: 3-50 The number of bars used to identify swing highs and swing lows for structural analysis. Lower values increase sensitivity (more BOS/CHoCH signals, more noise). Higher values detect only major structural shifts. The default of 10 is balanced for BTC on the 4H timeframe. **OB Lookback Bars** — Default: 15 | Range: 3-30 How far back the script searches for a valid order block after a structural break is detected. Smaller values yield higher precision but may miss valid blocks that formed earlier. Larger values capture more blocks but increase the risk of the OB being partially mitigated. **Sweep Memory** — Default: 20 bars | Range: 5-50 The lookback window for detecting a liquidity sweep before confirming an entry. If valid sweeps are being missed on your asset or timeframe, increase this value. If you want tighter sweep-to-entry timing, decrease it. **Risk:Reward Ratio** — Default: 2.0 | Range: 1.0-5.0 Determines take-profit placement relative to stop-loss distance. At 2.0, the TP is placed twice the SL distance from entry. Higher values produce larger winning trades but lower win rates. Always re-run the backtest after changing this setting to understand the impact on overall expectancy. **SL Buffer %** — Default: 0.3 | Range: 0.0-2.0 A buffer added beyond the order block boundary for stop-loss placement, designed to prevent wick stop-outs on volatile assets like BTC. At 0.3%, a $100,000 OB low places the stop-loss at $99,700. **P/D Zone Threshold** — Default: 0.80 | Range: 0.50-0.85 | Selective Mode Only Controls how deep into the premium or discount zone price must be for an entry to qualify. At 0.80, longs require price to be in the bottom 20% of the HTF range and shorts require the top 20%. At 0.50, the indicator uses standard equilibrium (above/below 50%). This parameter is ignored in Aggressive mode. **Max FVGs per Side** — Default: 5 | Range: 1-10 Controls how many unfilled fair value gaps are displayed per direction (bullish and bearish independently). At 5, the chart shows up to 5 active bullish FVGs and 5 active bearish FVGs simultaneously. Lower values reduce visual clutter on smaller timeframes. Higher values provide more structural context on higher timeframes where gaps may persist longer. When the limit is reached, the oldest FVG is removed to make room for the newest one. **FVG Max Distance %** — Default: 8.0 | Range: 1.0-25.0 FVGs whose midpoint is further than this percentage from the current price are automatically hidden. This keeps the chart focused on structurally relevant gaps — a gap at 85K is not actionable when price is at 97K. On higher timeframes or during high-volatility periods, increase this value to retain wider context. On lower timeframes or in tight ranges, decrease it to keep only the nearest gaps visible. **Show Trade Boxes** — On / Off Toggles the visual boxes that display entry, stop-loss, and take-profit levels for each signal. Green boxes indicate long positions. Red boxes indicate short positions. ## CONCEPTS EXPLAINED For traders learning smart money concepts, here is a plain-language breakdown of every structural element this indicator uses. **Order Blocks (OB)** An order block is the last opposing candle before a significant impulsive move. In a bullish scenario, it is the last bearish candle before a strong rally. Institutional traders place large orders at these levels during accumulation or distribution phases, creating zones where price is statistically likely to react when it returns. Order blocks are the foundation of SMC entry models — they represent where smart money positioned itself. **Fair Value Gap (FVG)** A fair value gap is a three-candle price imbalance where a gap exists between candle 1's high (or low) and candle 3's low (or high). In a bullish FVG, candle 2 moved so aggressively that it left a gap between candle 1's high and candle 3's low. These gaps represent areas where price moved too fast for orders to fill completely. Markets tend to return to these inefficiencies to rebalance. When an FVG overlaps an order block, you have two independent structural signals pointing to the same zone — that is high-probability confluence. **Break of Structure (BOS)** A break of structure occurs when price moves beyond a prior swing high (bullish BOS) or swing low (bearish BOS) in the direction of the prevailing trend. It signals continuation — the trend is intact and expanding. This indicator uses BOS detection on both the higher timeframe and the confirmation timeframe to ensure structural alignment before entries. **Change of Character (CHoCH)** A change of character is a structural break against the prevailing trend, signaling a potential reversal. In a downtrend, a CHoCH occurs when price breaks above the most recent lower high. This is significant because it is the first objective signal that sellers may be losing control. The indicator treats CHoCH as a valid trigger alongside BOS, allowing entries on both trend continuations and early reversals. **Liquidity Sweep** A liquidity sweep occurs when price briefly pushes beyond a key structural level — a swing high or swing low — to trigger clustered stop-loss orders and pending orders, then reverses. This is a core ICT concept. Institutional participants need liquidity to fill large positions, and retail stop-losses provide that liquidity. The sweep-and-reverse pattern is one of the most reliable structural signals in price action analysis. This indicator requires a confirmed sweep before any entry signal fires. **Premium and Discount Zones** The premium/discount zone model divides the higher-timeframe dealing range into two halves using the 50% equilibrium level. The upper half is the premium zone — where price is expensive relative to the range, favoring short positions. The lower half is the discount zone — where price is cheap relative to the range, favoring long positions. The Selective mode narrows this further using the P/D Zone Threshold, requiring entries at the extremes of these zones for maximum positional advantage. ## HOW TO USE THIS INDICATOR **Step 1 — Add to Chart** Add the indicator to any BTCUSDT chart. The default settings are optimized for the 4H timeframe on Binance data, but the logic works on any Bitcoin pair and can be adapted to other timeframes by adjusting the Direction TF, Confirmation TF, and Swing Length parameters. **Step 2 — Choose Your Mode** Open Settings and select either Aggressive or Selective mode. Aggressive generates more signals and captures more of the trend. Selective generates fewer, higher-quality signals with tighter risk control. If you are still learning smart money concepts, Selective mode provides a cleaner read because every signal has maximum structural confluence. **Step 3 — Read the Signals** Entry arrows appear directly on the chart when all confluence conditions are met. Green arrows indicate long entries. Red arrows indicate short entries. Stop-loss and take-profit levels are plotted as horizontal lines extending from each signal. **Step 4 — Enable Trade Boxes** Turn on Show Trade Boxes in Settings for a clear visual representation of each trade's risk and reward. The box spans from entry to TP, with the SL level marked. This makes it easy to evaluate the risk-reward ratio of each signal at a glance. **Step 5 — Run the Strategy Tester** Open TradingView's Strategy Tester panel to verify the backtest results on your chart and data. Set commission and slippage to match your exchange's actual fees. The default commission of 0.075% per trade represents Binance taker fees. Adjust if you trade on a different exchange. **Step 6 — Adjust Settings Carefully** If you modify parameters, change one at a time and re-run the backtest after each change to understand the isolated impact. The default settings are the product of extensive testing — they are not arbitrary. Move away from them deliberately, not casually. **Step 7 — Combine with Your Own Context** This indicator provides structural signals based on smart money concepts. It does not account for fundamental catalysts, macroeconomic events, or on-chain data. Use these signals as one input within your broader analytical framework. The strongest results come from traders who combine structural signals with their own understanding of market context. **Step 8 — Manage Risk** No indicator guarantees profits. Size your positions according to your account size and risk tolerance. Never risk more than you can afford to lose on a single trade. The backtest results represent historical performance under specific conditions — live trading introduces variables that backtests cannot fully capture. ## BACKTEST CONDITIONS — FULL TRANSPARENCY Every number published here is reproducible. Load the indicator with default settings on BTCUSDT 4H and open the Strategy Tester. Here are the exact conditions: - Symbol: BTCUSDT (Binance) - Timeframe: 4H - Period: January 2023 through February 2026 (3+ years of data) - Initial Capital: $10,000 - Order Size: 100% of equity per trade - Commission: 0.075% per trade (Binance taker fee) - Slippage: 3 ticks per order - Non-repainting: barstate.isconfirmed enforced on all signal calculations - No lookahead bias: lookahead = barmerge.lookahead_off on all request.security() calls - No future leakage: entries execute on the bar after all conditions are confirmed Sample sizes are moderate — 55 trades for Aggressive, 21 for Selective. The Selective mode's 21 trades in particular should be supplemented with forward-testing on live data to build stronger statistical confidence. Both modes are provided so you can evaluate the frequency-versus-quality tradeoff with full transparency. Past performance under specific historical conditions does not guarantee future results. Markets evolve. Volatility regimes shift. The only honest way to evaluate any strategy is continuous forward-testing alongside historical backtesting. ## DISCLAIMER This indicator is published for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any asset. Trading Bitcoin and other financial instruments involves substantial risk of loss. Leverage, volatility, exchange downtime, liquidity gaps, and other real-world factors can significantly impact live performance versus backtested results. You should carefully consider your financial objectives, level of experience, and risk appetite before trading. Never trade capital you cannot afford to lose. You are solely responsible for your own trading decisions and their outcomes. The author makes no guarantees about the accuracy, completeness, or reliability of this indicator or its signals. Use it at your own risk. --- **Suggested Tags:** `smartmoneyconcepts` `orderblocks` `fairvaluegap` `bitcoin` `ICT` `BOS` `liquidez` `bloques` `accionprecio` --- ## VERSION EN ESPANOL (Resumen) Para la documentacion completa, consulta la seccion en ingles arriba. A continuacion, un resumen de los puntos clave. --- ### Que es SMC Pro BTC Motor de smart money concepts multi-temporal construido exclusivamente para Bitcoin. Combina bloques de ordenes, fair value gaps, barridos de liquidez, rupturas de estructura y zonas premium/descuento en una sola estrategia verificada por backtest, sin repintado y de codigo abierto. Desarrollado por un ex-analista cuantitativo de un fondo sistematico en Estados Unidos — la misma mecanica de flujo de ordenes que usan los algoritmos institucionales, adaptada para traders retail en TradingView. Todos los resultados son reproducibles con los ajustes por defecto. Sin parametros ocultos. Sin sobreajuste. ### Dos Modos de Estrategia **Modo Agresivo** — Entradas en cualquier BOS/CHoCH valido confirmado por bloque de ordenes + FVG + barrido de liquidez. Mas operaciones, mayor exposicion a movimientos tendenciales. | Metrica | Valor | |---|---| | Total de Trades | 55 | | Win Rate | 49.09% | | P&L Neto | +49.12% | | Factor de Beneficio | 1.41 | | Drawdown Maximo | 14.70% | **Modo Selectivo** — Agrega filtro de zona premium/descuento. Longs solo en zona de descuento, shorts solo en zona premium. Menos operaciones, mayor calidad por senal. | Metrica | Valor | |---|---| | Total de Trades | 21 | | Win Rate | 61.90% | | P&L Neto | +26.92% | | Factor de Beneficio | 2.347 | | Drawdown Maximo | 8.66% | Ambos modos incluyen comisiones (0.075%) y slippage (3 ticks) en los resultados. No hay un modo objetivamente mejor — solo el que se ajusta a tu perfil de riesgo. ### Como Usar - **Agrega el indicador** a cualquier chart BTCUSDT (optimizado para 4H, Binance). Selecciona modo Agresivo o Selectivo en Configuracion. - **Lee las senales:** flechas verdes = largo, flechas rojas = corto. Activa Show Trade Boxes para ver entrada, SL y TP visualmente. Los FVGs activos se muestran como zonas en el chart — configura cuantos quieres ver y a que distancia maxima del precio con Max FVGs per Side y FVG Max Distance %. - **Verifica con el Strategy Tester:** abre el panel de Strategy Tester de TradingView, ajusta comisiones y slippage a las tarifas de tu exchange, y confirma los resultados en tu propio chart. - **Gestiona tu riesgo:** ningun indicador garantiza ganancias. Dimensiona posiciones segun tu cuenta y tolerancia al riesgo. Combina estas senales con tu propio analisis fundamental y de contexto de mercado. ### Condiciones del Backtest BTCUSDT (Binance) | 4H | Enero 2023 - Febrero 2026 | Capital: $10,000 | 100% equity por trade | Comision: 0.075% | Slippage: 3 ticks | Sin repintado (barstate.isconfirmed) | Sin lookahead bias | Sin filtracion futura. ### Aviso Legal Este indicador se publica con fines educativos e informativos unicamente. No constituye asesoria financiera ni recomendacion de compra o venta. Operar Bitcoin implica riesgo sustancial de perdida. Nunca operes con capital que no puedas permitirte perder. El rendimiento pasado no garantiza resultados futuros. Usalo bajo tu propio riesgo.Pine Script® strategyby DOE_Trade34
Dynamic RSI Level + Divergence [Metrify]This script provides a customized approach to tracking RSI divergence by replacing static overbought and oversold levels with dynamic volatility bands. Standard oscillators often fail during strong trends by staying pinned above 70 or below 30, producing premature signals. To handle this, the indicator calculates a moving baseline for the RSI and wraps it in standard deviation bands. This allows the overbought and oversold boundaries to adapt to the current market situation. Does the divergence delayed? No. The divergence label is printed exactly at the bar where the condition becomes valid. There is no forward confirmation or repaint shifting. This honest approach may produce losing signals in strong trends, but it preserves the integrity of real-time detection. Divergence filters (optional, set this to 0 to avoid the filter): Min RSI Diff (Steepness) -> requires sufficient vertical gap between RSI pivots to avoid weak, flat divergences. Min Price Diff -> minimum price to move a meaningful distance (relative to ATR) between both pivots. Pine Script® indicatorby Metrify31
CandelaCharts - Quadratic Killzones📝 Overview The Quadratic Killzones indicator is a specialized tool for visualizing key trading sessions and their price ranges divided into quadrants. These session ranges are significant because they help traders identify potential support and resistance zones based on session highs and lows. The indicator tracks multiple sessions (Asia, London Open, NY AM, NY Lunch, NY PM) and displays their price ranges with quadrant levels (0%, 25%, 50%, 75%, 100%). Session Visualization: Boxes and lines highlight trading session ranges directly on the chart. Quadrant Levels: Price ranges are divided into quadrants for precise level identification. Level Invalidation: Lines extend until price invalidates the level, providing dynamic support/resistance tracking. Session highs and lows serve as key reference points for intraday traders. The quadrant divisions help identify premium (above 50%) and discount (below 50%) zones within each session's range. 📦 Features Key features of the indicator include: Multi-Session Support: Track up to 6 different sessions (Asia, London Open, NY AM, NY Lunch, NY PM, Custom). Quadrant Division: Session ranges divided into 0%, 25%, 50%, 75%, and 100% levels. Level Invalidation: Lines automatically terminate when price invalidates the level. Session Boxes: Visual boxes showing the session range with optional session name labels. Customizable Styling: Configurable colors, line styles, and display options per session. Time Dividers: Optional vertical dividers at specified timeframe intervals. ⚙️ Settings History Sessions: Number of historical sessions to display (1-10). Session Settings (First through Fifth + Custom) Show: Toggle visibility of each session. Name: Custom label for the session (AS, LO, NYAM, NYLA, NYPM). Time: Session time range in 24-hour format. Color: Color for the session's boxes and lines. Styles Lines: Line style (solid, dashed, dotted). Line Width: Thickness of the lines (1-4). Show Box: Display session range as a box. Show Labels: Display high/low labels at line endpoints. Show Session Name: Display session name inside the box. Show Quadrant Lines: Display 25% and 75% quadrant levels. Show Percentage Labels: Display percentage labels (0%, 25%, 50%, 75%, 100%). Dividers Show: Toggle vertical time dividers. Timeframe: Interval for divider lines. Style: Divider line style. Width: Divider line thickness. Color: Divider line color. Extend: Extend dividers to chart edges. 🌟 Benefits Why use Quadratic Killzones over standard session indicators? Granularity : The quadratic division (0%, 25%, 50%, 75%, 100%) allows you to identify "Premium" and "Discount" pricing within a specific session's range, offering more precision than simple High/Low markers. Clean Charts : The "Level Invalidation" feature automatically stops drawing lines once price breaks them. This keeps your chart clean and focused only on active, defended levels. Time Alignment : With the "New York Midnight" setting, you ensure your session data is aligned with the true institutional trading day, regardless of your broker's server time. Structure Identification : Quickly spot when a session range is being respected (ranging/consolidation) or broken (expansion/trend). ⚡️ Showcase Session Boxes Session Boxes with Quadrants Session Boxes with Labels Session Deviders Multiple Sessions 🚨 Alerts This indicator does not include built-in alerts. Users can create custom alerts based on price crossing session levels using TradingView's alert functionality. ⚠️ Disclaimer Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results. Pine Script® indicatorby CandelaCharts27
test 2 EMA RSI VOL ATR Strategy VC2.51.14//@version=5 // EMA RSI VOL ATR Strategy VC2.51.14 - alertfix + optional emergency SL (strategy.close) strategy("EMA RSI VOL ATR Strategy VC2.51.14", overlay=true, initial_capital=1000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, pyramiding=0, commission_type=strategy.commission.percent, commission_value=0.08, slippage=20, calc_on_order_fills=true, calc_on_every_tick=false, margin_long=0, margin_short=0) // ── State ───────────────────────────────────────────────────────────────────── var bool in_long = false var bool in_short = false var int last_alert_time = 0 var float long_entry_price = na var float short_entry_price = na // One-action-per-candle guard (ENTRIES ONLY) var int last_action_bar = na can_act() => na(last_action_bar) or bar_index > last_action_bar // ── Inputs ──────────────────────────────────────────────────────────────────── entry_ema_length = input.int(7, "Entry EMA Length") exit_ema_length = input.int(21, "Exit EMA Length") // this is the normal SL used only when trailing is OFF (same as original) stop_loss_pct = input.float(2.2, "Stop Loss % (no trailing)", minval=0.1, maxval=20.0) // trailing config (unchanged) trail_mode = input.string("Legacy (close-ATR)", "Trailing Stop Mode", options= ) use_trailing_stop = input.bool(true, "Use Trailing Stop") atrLookback = input.int(14, "ATR Lookback") atrMultiplier = input.float(2, "ATR Multiplier", minval=0.5, step=0.1) fixed_usd = input.float(40.0, "Fixed USD Distance", minval=0.01) trail_pct_of_price = input.float(2.6, "% of Price (for Percent mode)", minval=0.05, maxval=10.0) init_offset_usd = input.float(2.0, "Initial Offset USD", minval=0.00) show_trail_usd = input.bool(false, "Show Trail Distance (USD)") breakeven_pct = input.float(3, "Breakeven Trigger %", minval=0.5, step=0.1) // NEW: emergency hard SL that always works on top of everything use_emergency_sl = input.bool(true, "Use Emergency Hard SL") emergency_sl_pct = input.float(14.0, "Emergency Hard SL %", minval=0.5, maxval=50.0) rsi_length = input.int(14, "RSI Length") rsi_long_threshold = input.int(55, "RSI Long Threshold") rsi_short_threshold = input.int(51, "RSI Short Threshold") use_volume_filter = input.bool(true, "Use Volume Filter") volume_sma_length = input.int(14, "Volume SMA Length") min_bars_between_trades = input.int(1, "Min Bars Between Trades") min_minutes_between_signals = input.int(10, "Min Minutes Between Signals") min_amount = 0.05 show_rsi = input.bool(false, title="Show RSI on Chart") show_rsi_levels = input.bool(true, title="Show RSI Levels") rsi_level_dash_interval = input.int(3, "RSI Level Dash Interval", minval=1) rsi_lookback = input.int(200, "RSI Overlay Lookback", minval=50) rsi_bottom_buffer = input.float(5.0, "RSI Bottom Buffer %", minval=0.0, maxval=20.0) / 100 rsi_height_pct = input.float(20.0, "RSI Height %", minval=10.0, maxval=50.0) / 100 start_time = input.time(1735689600000, "Start Date") // 2025-01-01 allow_shorts = input.bool(true, title="Allow Shorts") show_labels = input.bool(false, title="Show Signal Labels") show_quantity = input.bool(false, title="Show Quantity") use_ema200_short = input.bool(true, "Use EMA200 for Shorts") adx_length = input.int(14, "ADX Length for Trend Confirm (Shorts)") adx_threshold = input.int(20, "ADX Threshold for Shorts") secret_code = input.string("secret.code.xxx", title="Secret Code") bot_uuid = input.string("bot.uuid.xxx", title="Bot UUID") // ── Filters & calcs ────────────────────────────────────────────────────────── ema200 = ta.ema(close, 200) ema_entry = ta.ema(close, entry_ema_length) ema_exit = ta.ema(close, exit_ema_length) ascending_entry = ema_entry > ema_entry descending_entry = ema_entry < ema_entry and ema_entry < ema_entry rsi = ta.rsi(close, rsi_length) atr = ta.atr(atrLookback) volume_sma = ta.sma(volume, volume_sma_length) adx = ta.ema(ta.tr(true), adx_length) // preserved behavior // Bar spacing & time spacing var int bars_since_last_exit = 0 if strategy.position_size != 0 and strategy.position_size == 0 bars_since_last_exit := 0 else bars_since_last_exit := nz(bars_since_last_exit ) + 1 var int last_signal_time = 0 time_cond_time = time - last_signal_time >= min_minutes_between_signals * 60000 // RSI overlay visuals price_high = ta.highest(high, rsi_lookback) price_low = ta.lowest(low, rsi_lookback) price_range = price_high - price_low rsi_height = price_range * rsi_height_pct rsi_bottom = price_low - price_range * rsi_bottom_buffer rsi_scaled = rsi_bottom + (rsi / 100) * rsi_height rsi_30_scaled = rsi_bottom + 0.3 * rsi_height rsi_50_scaled = rsi_bottom + 0.5 * rsi_height rsi_70_scaled = rsi_bottom + 0.7 * rsi_height // Conditions volume_cond = not use_volume_filter or volume > volume_sma time_cond = bars_since_last_exit >= min_bars_between_trades long_cond_base = ascending_entry and close > ema_entry and rsi > rsi_long_threshold and close > ema200 and time >= start_time and volume_cond and time_cond and time_cond_time short_cond_base = allow_shorts and descending_entry and close < ema_entry and rsi < rsi_short_threshold and (not use_ema200_short or close < ema200) and adx > adx_threshold and time >= start_time and volume_cond and time_cond and time_cond_time // ── Alert helpers ──────────────────────────────────────────────────────────── iso_ts() => t = time_close str.tostring(year(t)) + "-" + str.tostring(month(t), "00") + "-" + str.tostring(dayofmonth(t), "00") + "T" + str.tostring(hour(t), "00") + ":" + str.tostring(minute(t), "00") + ":" + str.tostring(second(t), "00") + "Z" build_payload(_action) => act = _action if _action == "exit_long" act := "exit_long" else if _action == "exit_short" act := "exit_short" s1 = "{" + "\"secret\":\"" + secret_code + "\"," + "\"max_lag\":\"300\"," + "\"timestamp\":\"" + iso_ts() + "\"," s2 = "\"trigger_price\":\"" + str.tostring(close, format.mintick) + "\"," + "\"tv_exchange\":\"" + syminfo.prefix + "\"," + "\"tv_instrument\":\"" + syminfo.ticker + "\"," s3 = "\"action\":\"" + act + "\"," + "\"bot_uuid\":\"" + bot_uuid + "\"" + "}" s1 + s2 + s3 send_alert(_action) => alert(build_payload(_action), alert.freq_once_per_bar) // ── Entries (BAR CLOSE ONLY, ONE ACTION PER BAR) ───────────────────────────── if barstate.isconfirmed and can_act() // LONG branch if long_cond_base if strategy.position_size < 0 send_alert("exit_short") strategy.close("Short") strategy.entry("Long", strategy.long) long_entry_price := close last_signal_time := time if strategy.position_size <= 0 and not in_long send_alert("enter_long") last_alert_time := timenow in_long := true in_short := false last_action_bar := bar_index // SHORT branch else if short_cond_base if strategy.position_size > 0 send_alert("exit_long") strategy.close("Long") strategy.entry("Short", strategy.short) short_entry_price := close last_signal_time := time if strategy.position_size >= 0 and not in_short send_alert("enter_short") last_alert_time := timenow in_short := true in_long := false last_action_bar := bar_index // ── Breakeven (same logic as before, no can_act guard) ─────────────────────── if barstate.isconfirmed if strategy.position_size > 0 and not na(long_entry_price) and close > long_entry_price * (1 + breakeven_pct / 100) strategy.exit("BE Long", "Long", stop = long_entry_price) if strategy.position_size < 0 and not na(short_entry_price) and close < short_entry_price * (1 - breakeven_pct / 100) strategy.exit("BE Short", "Short", stop = short_entry_price) // ── Trailing exits (original logic) ────────────────────────────────────────── mintick = syminfo.mintick to_ticks(usd) => int(math.max(1, math.round(usd / mintick))) legacy_points = int(close - atr * atrMultiplier) legacy_offset = int(atr * atrMultiplier) true_atr_ticks = to_ticks(atr * atrMultiplier) fixed_usd_ticks = to_ticks(fixed_usd) percent_ticks = to_ticks(close * (trail_pct_of_price / 100.0)) init_offset_ticks = to_ticks(init_offset_usd) trail_ticks = 0 offset_ticks = 0 if trail_mode == "True ATR" trail_ticks := true_atr_ticks offset_ticks := true_atr_ticks else if trail_mode == "Fixed USD" trail_ticks := fixed_usd_ticks offset_ticks := init_offset_ticks else if trail_mode == "Percent of Price" trail_ticks := percent_ticks offset_ticks := init_offset_ticks else trail_ticks := legacy_points offset_ticks := legacy_offset current_trail_usd = trail_ticks * mintick legacy_trail_usd = legacy_points * mintick plot(show_trail_usd ? current_trail_usd : na, title="Trail Distance (USD)", color=color.new(color.teal, 0)) plot(show_trail_usd and trail_mode == "Legacy (close-ATR)" ? legacy_trail_usd : na, title="Legacy Trail (USD)", color=color.new(color.orange, 0)) if use_trailing_stop and barstate.isconfirmed if strategy.position_size > 0 strategy.exit("Trail Long", "Long", trail_points = trail_ticks, trail_offset = offset_ticks) else if strategy.position_size < 0 strategy.exit("Trail Short", "Short", trail_points = trail_ticks, trail_offset = offset_ticks) // ── Fixed SL if trailing OFF (same as original) ────────────────────────────── if not use_trailing_stop and barstate.isconfirmed and can_act() if strategy.position_size > 0 and not na(long_entry_price) strategy.exit("SL Long", "Long", stop = long_entry_price * (1 - stop_loss_pct / 100)) last_action_bar := bar_index else if strategy.position_size < 0 and not na(short_entry_price) strategy.exit("SL Short", "Short", stop = short_entry_price * (1 + stop_loss_pct / 100)) last_action_bar := bar_index // ── EMERGENCY HARD SL (independent, optional) ──────────────────────────────── if barstate.isconfirmed and strategy.position_size != 0 and use_emergency_sl float emergency_long_entry = na(long_entry_price) ? strategy.position_avg_price : long_entry_price float emergency_short_entry = na(short_entry_price) ? strategy.position_avg_price : short_entry_price // Long: if low pierces emergency SL if strategy.position_size > 0 and not na(emergency_long_entry) float long_em_sl = emergency_long_entry * (1 - emergency_sl_pct / 100) if low <= long_em_sl strategy.close("Long") // Short: if high pierces emergency SL if strategy.position_size < 0 and not na(emergency_short_entry) float short_em_sl = emergency_short_entry * (1 + emergency_sl_pct / 100) if high >= short_em_sl strategy.close("Short") // ── Exit alerts when flat ──────────────────────────────────────────────────── if strategy.position_size != 0 and strategy.position_size == 0 and barstate.isconfirmed send_alert(strategy.position_size > 0 ? "exit_long" : "exit_short") last_alert_time := timenow if strategy.position_size > 0 in_long := false long_entry_price := na else in_short := false short_entry_price := na // ── Plots ──────────────────────────────────────────────────────────────────── plot(ema_entry, "EMA Entry", color=color.blue, linewidth=1) plot(ema_exit, "EMA Exit", color=color.yellow, linewidth=1) plot(ema200, "EMA 200 (Trend Filter)", color=color.gray, linewidth=2) plot(show_rsi ? rsi_scaled : na, "RSI Overlay", color=color.purple, linewidth=1) plot(show_rsi and show_rsi_levels and bar_index % rsi_level_dash_interval == 0 ? rsi_30_scaled : na, "RSI 30", color=color.gray, style=plot.style_circles, linewidth=1) plot(show_rsi and show_rsi_levels and bar_index % rsi_level_dash_interval == 0 ? rsi_50_scaled : na, "RSI 50", color=color.gray, style=plot.style_circles, linewidth=1) plot(show_rsi and show_rsi_levels and bar_index % rsi_level_dash_interval == 0 ? rsi_70_scaled : na, "RSI 70", color=color.gray, style=plot.style_circles, linewidth=1) buy_signal = long_cond_base and strategy.position_size == 0 exit_long_signal = not long_cond_base and strategy.position_size > 0 short_signal = short_cond_base and strategy.position_size == 0 exit_short_signal = not short_cond_base and strategy.position_size < 0 reverse_to_long = long_cond_base and strategy.position_size < 0 reverse_to_short = short_cond_base and strategy.position_size > 0 plotshape(show_labels and buy_signal and not reverse_to_long ? true : na, title="Buy", style=shape.circle, location=location.belowbar, color=color.green, size=size.tiny) plotshape(show_labels and short_signal and not reverse_to_short ? true : na, title="Short", style=shape.circle, location=location.abovebar, color=color.red, size=size.tiny) plotshape(show_labels and exit_long_signal and not reverse_to_short ? true : na, title="Exit Long", style=shape.circle, location=location.abovebar, color=color.orange, size=size.tiny) plotshape(show_labels and exit_short_signal and not reverse_to_long ? true : na, title="Exit Short", style=shape.circle, location=location.belowbar, color=color.orange, size=size.tiny) plotshape(show_labels and reverse_to_long ? true : na, title="Exit -> Buy", style=shape.circle, location=location.belowbar, color=color.green, size=size.tiny, offset=-1) plotshape(show_labels and reverse_to_short ? true : na, title="Exit -> Short", style=shape.circle, location=location.abovebar, color=color.red, size=size.tiny, offset=-1)Pine Script® strategyby Fre_Fre119
Fractal Sweep Strategy# Fractal Sweep Strategy A trend-following strategy that trades **sweeps** of fractal highs and lows, using two complementary entry models that can run in parallel. --- ## Concept The strategy identifies **fractal points** (local highs/low over N bars) and enters when price **sweeps** them—breaking above a fractal high or below a fractal low—then closes back in the opposite direction. This often signals a rejection and potential reversal. **Sweep High** → Short bias **Sweep Low** → Long bias --- ## Entry Models ### 1. Attempted Candle - **Immediate trade:** The sweep candle itself is bearish (for short) or bullish (for long). - **Delayed trade:** If the sweep candle is not in the right direction, the strategy waits for the first **Attempted candle**: - **Short:** Bearish candle with `high > high ` (takes out the prior candle’s high). - **Long:** Bullish candle with `low < low ` (takes out the prior candle’s low). - **Entry:** At the close of the Attempted candle (repainting-safe). - **SL:** Low of the Attempted candle (short) / High of the Attempted candle (long). - **TP:** CRV × risk (default CRV = 2). ### 2. Trigger Level - **Setup:** Fractal high is swept by a **bullish** candle, and the **next candle is not** an Attempted candle. - **Trigger level:** Body low of the sweep candle (`min(open, close)`), ignoring the wick. - **Activation:** Any later candle closes **below** the trigger level. - **Entry:** At the close of the breaking candle, or at the open of the next candle if the break is detected one bar late. - **SL:** High of the sweep candle (Trigger Level candle). - **TP:** CRV × risk (default CRV = 2). ### Parallel Mode With **"Both"** selected, both models run at the same time. Pyramiding allows up to 2 short positions (one from each model) when both trigger. --- ## Risk Management - **Stop Loss:** High/Low of the reference candle (Attempted or Trigger Level candle). - **Take Profit:** Entry ± (CRV × risk), with separate CRV for each model. - **Max Trades per Day:** Limits total entries across both models (default: 5). --- ## Optional Filters ### Supertrend H1 (Directional Bias) - **Off:** No filter. - **With Trend:** Long only in H1 uptrend, short only in H1 downtrend. - **Counter Trend:** Long only in H1 downtrend, short only in H1 uptrend. ### Session Filter - Restricts trades to a time window (e.g. 08:00–17:00) in the selected timezone. --- ## Fractal Settings - **Bars in Fractal:** 3, 5, 7, or 9 (default: 5). - **Fractals Timeframe:** Chart TF or higher (e.g. M15 for MTF fractals). - **Max Age:** Fractals older than N bars are ignored. --- ## Visuals - Fractal lines and markers (▲/▼). - SL/TP lines for open trades. - Optional debug labels (trade explanation, sweep labels, no-trade reasons). - Optional H1 Supertrend overlay when bias is active. --- ## Repainting Safety Entries are placed only on **confirmed bars** (`barstate.isconfirmed`), so signals are fixed once the candle closes. --- ## Credits - **Fractal logic:** Based on MTF Fractals - **Strategy:** Lean Strategy Blueprint - **License:** CC BY-NC-SA 4.0 Pine Script® strategyby Lean_Trading27
RaVen V2.3.16RaVen V2.3.16:Polymarket 15分钟加密货币市场狙击手 本脚本专为 Polymarket 15分钟加密货币 UP/DOWN 市场设计,是一个追求高确定性机会的专业交易系统。它融合了超过14种技术指标,通过复杂的加权评分系统和严格的宽容确认机制,旨在过滤掉市场噪音,捕捉高质量的趋势信号。 核心特色: • 价值预测:集成 Black-Scholes 模型,提供理论价格参考,并作为信号的最终“铁壁”过滤器。 • 多维面板:包含趋势监控、参数、价值预测和回测记录四个面板,提供从宏观到微观的完整决策支持。 • 高标准信号:默认仅提示≥90分的信号,强调耐心和纪律,而非频繁交易。 此脚本是交易员的决策辅助工具,而非全自动系统。请结合自身风险管理使用。 RaVen V2.3.16: Sniper for Polymarket 15-Min Crypto Markets This script is a professional trading system designed specifically for Polymarket's 15-minute crypto UP/DOWN markets, focusing on high-certainty opportunities. It fuses over 14 technical indicators, utilizing a complex weighted scoring system and a strict confirmation mechanism to filter out market noise and capture high-quality trend signals. Core Features: • Value Prediction: Integrates the Black-Scholes model to provide theoretical price references and act as a final "iron wall" filter for signals. • Multi-Dimensional Panels: Includes four panels—Trend Monitoring, Parameters, Value Prediction, and Backtest Records—offering comprehensive decision support from macro to micro levels. • High-Standard Signals: By default, it only alerts for signals with a score of ≥90, emphasizing patience and discipline over frequent trading. This script is a decision-support tool for traders, not a fully automated system. Please use it in conjunction with your own risk management. Pine Script® indicatorby RavenAnalytics26
ROC(2) Pivot (Linda Raschke)A daily bias level based on Linda Bradford Raschke's adaptation of the Taylor Trading Technique. The indicator plots a single price level — the point where the 2-period rate of change flips sign — and colors it by the current bias direction. Concept George Douglas Taylor observed in the 1950s that markets tend to swing in 2–3 day cycles: a buy day, a sell day, a sell-short day. Raschke formalized this with a simple calculation that captures where short-term momentum shifts. The pivot is known before the session opens because it uses only prior daily closes: Pivot = (Yesterday's Close − Close 3 days ago) + Close 2 days ago Price above the pivot → long bias. Price below → short bias. One number, one rule. Features - Pivot line with bias-colored shading (long/short fill between price and pivot) - Info table showing current bias, pivot price, streak, and respect score - Streak — how many consecutive days the bias has held the same direction. - Respect score — over the last N completed sessions, how many times did price stay entirely on one side of the pivot vs. crossing through it? Higher respect = the pivot is acting as meaningful support/resistance - Alerts for bias flips (price crossing the pivot) - Configurable colors, line width, fill transparency, table position/size, dark/light theme How to use it Check the pivot before the session. If price is above, favor long setups. If below, favor short setups. Use your own entry signals — the pivot provides directional context, not entries. The respect score helps gauge conviction: if the pivot has been respected 7+ out of 10 sessions, traders are treating that level seriously. If only 3–4, the market is chopping through it and the bias carries less weight. Non-repainting behavior The pivot line itself does not repaint — it is calculated entirely from prior daily closes and is fixed at the open. The streak and respect scores use only completed daily bars (no intraday repainting). The real-time bias (line color, fill, table) updates as price crosses the pivot during the session, which is intended behavior — it reflects the current state, not a prediction. Credits Based on the 2-Period Rate of Change concept from Linda Bradford Raschke (Street Smarts, Chapter 8) and George Douglas Taylor's Taylor Trading Technique (1950). This indicator is a visualization and context tool — it does not generate buy/sell signals and is not a standalone trading system. Pine Script® indicatorby const19
ICT Levels & GapsICT Levels & Gaps displays key ICT reference levels directly on your chart — fully configurable and designed for clean, distraction-free price action analysis. Features: Period Highs/Lows — Today, Previous Day, Week, and Month with configurable lookback (e.g. show the last 2 days, 2 weeks, 2 months) All-Time High/Low Session Highs/Lows — Asia, London, New York Kill Zones — Asia, London, NY AM, NY PM with separate color styling Opening Gaps — New Day Opening Gap (NDOG) & New Week Opening Gap (NWOG) with midline and fill EHPDA — Event Horizon of Price Delivery Algorithm (midpoints between sorted gaps) Retracement Filter — counts sweeps since level creation; filtered levels shown at reduced opacity Smart Label Combining — overlapping levels at the same price are merged into a single label Pin Labels to Screen — labels stay visible at the chart edge when the line start is off-screen Today's H/L Noise Filter — excludes levels formed within the last N bars All levels support custom colors, line styles, line widths, short/long label formats, and timezone configuration. Line start mode can be set to Period Start or Formation Candle. Pine Script® indicatorby z0mt3c23
powered rsi oscillatorPowered RSI Oscillator is a volume-weighted RSI oscillator designed to highlight momentum strength and potential trend reversals. The indicator enhances traditional RSI behavior by incorporating volume into price changes and automatically detects: Regular Bullish & Bearish Divergences Hidden Bullish & Bearish Divergences Overbought / Oversold conditions Momentum shifts around the 50 midline This tool is best used as a confirmation indicator alongside price action, structure, and trend analysis.Pine Script® indicatorby ASSAF-ALGOS21
Multi-Timeframe Strength Scanner [JOAT]Multi-Timeframe Strength Scanner Introduction The Multi-Timeframe Strength Scanner is an open-source indicator that combines higher timeframe trend analysis with current timeframe momentum indicators to create a comprehensive market strength assessment system. This mashup integrates ADX (Average Directional Index), Donchian Channels, VWAP (Volume Weighted Average Price), RSI divergence detection, and multi-timeframe EMA analysis into a unified scanner that identifies when trend strength aligns across multiple timeframes. The indicator addresses a critical trading challenge: signals that look strong on one timeframe often fail because higher timeframes are moving in the opposite direction. By analyzing 15-minute, 1-hour, and 4-hour timeframes simultaneously while monitoring current timeframe momentum, this tool helps traders avoid counter-trend trades and identify high-probability setups where multiple timeframes align. Chart showing multi-timeframe alignment dashboard and strength indicators on 15M timeframe Why This Mashup Exists This indicator combines five analytical frameworks that address different aspects of trend strength: ADX Analysis: Measures trend strength regardless of direction using directional movement Donchian Channels: Identifies breakouts and trend continuation using price extremes VWAP: Shows institutional average price and volume-weighted fair value RSI Divergence: Detects momentum exhaustion at current timeframe swing points Multi-Timeframe EMAs: Confirms trend direction across 15M, 1H, and 4H timeframes Each component serves a specific purpose: ADX quantifies trend strength, Donchian Channels identify breakout momentum, VWAP reveals institutional positioning, RSI divergences warn of reversals, and multi-timeframe EMAs ensure directional alignment. Together, they create a strength scanner that filters out weak, counter-trend setups and highlights only those with multi-timeframe confirmation. The mashup is justified because these components use fundamentally different data (directional movement, price extremes, volume-weighted averages, momentum oscillators, moving averages) that respond to different market conditions. When they align, it indicates genuine trend strength rather than temporary momentum. Core Components Explained 1. ADX Trend Strength System ADX (Average Directional Index) measures trend strength on a scale of 0-100: = ta.dmi(adxLength, adxLength) // Trend strength classification strongTrend = adx > adxThreshold // Default: 20 veryStrongTrend = adx > 40 extremeTrend = adx > 60 // Direction determination bullishTrend = plus > minus bearishTrend = minus > plus ADX interpretation: ADX < 20: Weak trend or ranging market - avoid trend-following strategies ADX 20-40: Moderate trend strength - standard trend-following viable ADX 40-60: Strong trend - high-probability trend continuation ADX > 60: Extreme trend - potential exhaustion or very strong momentum The indicator plots ADX as a line with color coding: Green: Strong bullish trend (ADX > 20, +DI > -DI) Red: Strong bearish trend (ADX > 20, -DI > +DI) Gray: Weak trend or ranging (ADX < 20) 2. Donchian Channel Breakout System Donchian Channels track the highest high and lowest low over a specified period: donchianLength = 20 // Configurable upperChannel = ta.highest(high, donchianLength) lowerChannel = ta.lowest(low, donchianLength) midChannel = (upperChannel + lowerChannel) / 2 Breakout signals: Bullish Breakout: Close above upper channel = new 20-bar high Bearish Breakout: Close below lower channel = new 20-bar low Channel Position: Price near upper channel = bullish strength, near lower = bearish strength The indicator uses Donchian breakouts to confirm trend strength. When price breaks out of the channel with strong ADX, it signals high-momentum trend continuation. 3. VWAP Analysis VWAP (Volume Weighted Average Price) calculates the average price weighted by volume: vwap = ta.vwap(hlc3) // Position analysis aboveVWAP = close > vwap // Bullish positioning belowVWAP = close < vwap // Bearish positioning // Distance from VWAP vwapDistance = ((close - vwap) / vwap) * 100 VWAP significance: Institutional traders use VWAP as benchmark for execution quality Price above VWAP = buyers in control, institutions paying premium Price below VWAP = sellers in control, institutions getting discount Large distance from VWAP = potential mean reversion opportunity VWAP acts as dynamic support/resistance level The indicator plots VWAP with dynamic coloring based on price position and uses it for trend confirmation. 4. RSI Divergence Detection The indicator detects divergences using pivot-based analysis: rsi = ta.rsi(close, 14) // Identify swing points pivotHigh = ta.pivothigh(rsi, 5, 5) pivotLow = ta.pivotlow(rsi, 5, 5) // Compare current pivot with previous pivot bullishDivergence = price makes lower low AND rsi makes higher low bearishDivergence = price makes higher high AND rsi makes lower high Divergence types: Regular Bullish: Price LL, RSI HL - momentum improving, potential reversal up Regular Bearish: Price HH, RSI LH - momentum deteriorating, potential reversal down Hidden Bullish: Price HL, RSI LL - trend continuation signal in uptrend Hidden Bearish: Price LH, RSI HH - trend continuation signal in downtrend Divergences are marked with "DIV" labels and used to warn of potential trend exhaustion or continuation. 5. Multi-Timeframe EMA Analysis The indicator analyzes trend direction across three higher timeframes: // Request higher timeframe data htf15mEMA = request.security(syminfo.tickerid, "15", ta.ema(close, 21)) htf1hEMA = request.security(syminfo.tickerid, "60", ta.ema(close, 21)) htf4hEMA = request.security(syminfo.tickerid, "240", ta.ema(close, 21)) // Determine trend direction htf15mBullish = close > htf15mEMA htf1hBullish = close > htf1hEMA htf4hBullish = close > htf4hEMA // Count aligned timeframes bullishCount = (htf15mBullish ? 1 : 0) + (htf1hBullish ? 1 : 0) + (htf4hBullish ? 1 : 0) bearishCount = (!htf15mBullish ? 1 : 0) + (!htf1hBullish ? 1 : 0) + (!htf4hBullish ? 1 : 0) Alignment classification: STRONG BULL: All 3 timeframes bullish (3/3 alignment) BULL: 2 out of 3 timeframes bullish MIXED: Timeframes conflicting (1-1-1 or 2-1 split) BEAR: 2 out of 3 timeframes bearish STRONG BEAR: All 3 timeframes bearish (3/3 alignment) Example showing multi-timeframe alignment dashboard with all three timeframes bullish Strength Scoring System The indicator calculates a comprehensive strength score (0-100) by evaluating: Strength Score Components: - ADX Strength: Up to 25 points (ADX > 40 = 25, ADX > 20 = 15, ADX < 20 = 0) - ADX Direction: Up to 15 points (+DI > -DI = 15 for bull, -DI > +DI = 15 for bear) - Donchian Position: Up to 15 points (breakout = 15, near channel = 10, mid-channel = 5) - VWAP Position: Up to 15 points (above VWAP = 15 for bull, below = 15 for bear) - MTF Alignment: Up to 20 points (3/3 = 20, 2/3 = 13, 1/3 = 7) - RSI Level: Up to 10 points (healthy range = 10, extreme = 5, divergence = -5) Score interpretation: 80-100: Extremely strong trend - high-probability continuation 60-79: Strong trend - favorable for trend-following 40-59: Moderate trend - selective trend trades 20-39: Weak trend - caution, potential reversal 0-19: Very weak or counter-trend - avoid trend-following The dashboard displays the strength score with color coding and individual component breakdown. Visual Elements ADX Line: Main trend strength indicator with dynamic coloring +DI/-DI Lines: Directional movement indicators ADX Threshold: Horizontal line at 20 (configurable) Donchian Channels: Upper, middle, and lower channel lines VWAP Line: Volume-weighted average price with dynamic coloring Divergence Labels: "DIV" markers at RSI divergence points Strength Bars: Background coloring based on strength score Dashboard: Comprehensive table showing: - Current strength score - ADX value and direction - Donchian position - VWAP position - MTF alignment (15M, 1H, 4H status) - RSI level - Overall trend classification Chart showing strength dashboard with component breakdown and visual indicators How Components Work Together The mashup creates a layered strength analysis: Layer 1 - Trend Strength: ADX quantifies how strong the trend is Layer 2 - Breakout Momentum: Donchian Channels identify momentum surges Layer 3 - Institutional Positioning: VWAP shows where smart money is positioned Layer 4 - Momentum Health: RSI divergences warn of exhaustion Layer 5 - Multi-Timeframe Confirmation: HTF EMAs ensure directional alignment Layer 6 - Synthesis: Strength score combines all factors into actionable metric Example scenario: ADX is 45 (Layer 1), price breaks above Donchian upper channel (Layer 2), trading above VWAP (Layer 3), no RSI divergence (Layer 4), and all three higher timeframes are bullish (Layer 5). The strength score reaches 90 (Layer 6), signaling extremely strong bullish trend with high continuation probability. Input Parameters ADX Settings: ADX Length: Period for ADX calculation (default: 14) ADX Threshold: Minimum ADX for strong trend (default: 20) Show +DI/-DI: Toggle directional indicators (default: enabled) Donchian Settings: Donchian Length: Period for channel calculation (default: 20) Show Channels: Toggle channel display (default: enabled) Breakout Sensitivity: Threshold for breakout signals (default: close beyond channel) VWAP Settings: Show VWAP: Toggle VWAP line (default: enabled) VWAP Reset: Session, Week, Month, or Never (default: Daily) Distance Alert: Alert when price moves X% from VWAP (default: 2%) RSI Settings: RSI Length: Period for RSI calculation (default: 14) Show Divergences: Toggle divergence markers (default: enabled) Pivot Lookback: Bars for pivot detection (default: 5) Multi-Timeframe Settings: HTF 1: First higher timeframe (default: 15 minutes) HTF 2: Second higher timeframe (default: 1 hour) HTF 3: Third higher timeframe (default: 4 hours) EMA Length: Period for HTF EMAs (default: 21) Min Alignment: Minimum timeframes aligned for signal (default: 2/3) Display Options: Show Dashboard: Toggle strength score table (default: enabled) Show Strength Bars: Toggle background coloring (default: enabled) Dashboard Position: Top-right, top-left, bottom-right, bottom-left Color Theme: Choose between multiple color schemes How to Use This Indicator Step 1: Check Multi-Timeframe Alignment Review the dashboard MTF section. Look for 2/3 or 3/3 alignment in your intended trade direction. Avoid trades when timeframes are mixed or opposing. Step 2: Verify ADX Strength Ensure ADX is above 20 (preferably above 30) for trend-following trades. ADX below 20 suggests ranging market where trend strategies underperform. Step 3: Confirm Donchian Position Check if price is near or breaking through Donchian channels. Breakouts with strong ADX signal high-momentum moves. Step 4: Assess VWAP Position For long trades, prefer price above VWAP. For short trades, prefer price below VWAP. Large distances from VWAP may indicate overextension. Step 5: Check for Divergences Look for RSI divergence warnings. If divergence appears with extreme strength score, consider taking profits or tightening stops. Step 6: Review Strength Score Use the overall strength score as final filter. Scores above 70 indicate strong trend conditions favorable for trend-following. Scores below 40 suggest caution. Best Practices Use on 5-minute to 1-hour timeframes for optimal multi-timeframe analysis Wait for 2/3 or 3/3 MTF alignment before entering trend trades Strong ADX (> 30) with MTF alignment produces highest-probability setups Donchian breakouts with ADX > 25 often lead to sustained moves VWAP acts as dynamic support/resistance - use for entry refinement RSI divergences in strong trends often lead to pullbacks, not reversals Strength score above 80 suggests strong trend continuation potential Avoid trading when strength score is below 40 unless counter-trend trading Combine with price action and key levels for precise entries Indicator Limitations ADX is lagging indicator - trend strength confirmed after move has started Donchian breakouts can produce false signals in choppy markets VWAP resets daily, may not reflect longer-term institutional positioning Multi-timeframe analysis requires sufficient data history Strength score is mathematical calculation, not prediction of future movement Strong trends can reverse suddenly despite high strength scores Divergences can persist for extended periods in strong trends Higher timeframe data may repaint on lower timeframes Requires understanding of trend analysis concepts for effective use Technical Implementation Built with Pine Script v6 using: DMI/ADX calculation with directional indicators Donchian Channel calculation with breakout detection VWAP calculation with session reset options Pivot-based RSI divergence detection request.security() for multi-timeframe EMA analysis Comprehensive strength scoring algorithm Dynamic dashboard with component breakdown Background coloring based on strength levels The code is fully open-source and can be modified to adjust timeframes, thresholds, and scoring weights. Originality Statement This indicator is original in its multi-timeframe strength integration approach. While individual components (ADX, Donchian Channels, VWAP, RSI divergence, EMAs) are established tools, this mashup is justified because: It combines trend strength measurement with multi-timeframe directional confirmation The strength scoring system quantifies trend quality across multiple dimensions Multi-timeframe analysis prevents counter-trend trades on lower timeframes Integration of volume-weighted analysis (VWAP) with momentum indicators Divergence detection provides early warning within trend strength context Comprehensive dashboard presents complex multi-timeframe data clearly Each component contributes unique information: ADX measures trend strength, Donchian identifies breakout momentum, VWAP shows institutional positioning, RSI divergences warn of exhaustion, and MTF EMAs ensure alignment. The mashup's value lies in filtering out weak, counter-trend setups and highlighting only those with genuine multi-timeframe strength confirmation. Disclaimer This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors. Trend strength indicators are lagging tools that confirm trends after they've begun. Strong trends can reverse suddenly, and high strength scores do not guarantee trend continuation. Multi-timeframe analysis does not eliminate the risk of losses. The strength score is a mathematical calculation based on current market data, not a prediction of future price movement. Past trend strength does not guarantee future performance. Market conditions change, and trends that appear strong can reverse without warning. Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions. The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool. -Made with passion by officialjackofalltradesPine Script® indicatorby officialjackofalltrades21
MACD Renko Locked SignalsMACD Renko Locked SignalsMACD Renko Locked SignalsMACD Renko Locked SignalsPine Script® indicatorby bhavneetsinghwalia33
MIDAS Curves[5 groups]This indicator can plot up to 5 groups of MIDAS lines from an anchor candles.Pine Script® indicatorby max_ple75
[blackcat] L1 Divergence of CCI for BS Signal█ OVERVIEW This indicator identifies potential market reversal points by detecting CCI (Commodity Channel Index) divergence patterns combined with extreme oversold/overbought conditions. It generates clear Buy and Sell signals with visual labels, helping traders spot high-probability entry and exit opportunities. █ CONCEPTS This indicator utilizes CCI divergence analysis to identify potential trend reversals. Key principles: • Bullish Divergence : Price makes a new low while CCI fails to make a corresponding new low, suggesting weakening downward momentum and potential reversal upward • Bearish Divergence : Price makes a new high while CCI fails to make a corresponding new high, indicating weakening upward momentum and potential reversal downward • Extreme Level Confirmation : Signals are filtered by requiring CCI to reach extreme levels (-150/-200 for buys, +150/+200 for sells) to ensure high-quality setups █ HOW TO USE 1 — Add the indicator to your chart from the indicators menu 2 — Configure the CCI period and divergence detection parameters based on your trading style 3 — Wait for "B" (Buy) or "S" (Sell) labels to appear on the indicator panel 4 — Use divergence lines and auxiliary signals for additional confirmation Input Parameters • CCI Period : The lookback period for CCI calculation (default: 14) • Oversold Level : The threshold below which indicates oversold conditions (default: -100) • Overbought Level : The threshold above which indicates overbought conditions (default: +100) • Extreme Oversold : The extreme oversold threshold for signal confirmation (default: -200) • Extreme Overbought : The extreme overbought threshold for signal confirmation (default: +200) • Divergence Detection Period : Lookback period for identifying CCI highs/lows (default: 20) • Price New Low Detection Period : Lookback period for identifying price extremes (default: 50) █ SIGNALS Visual Elements • "B" Label (Blue) : Buy signal - Bullish divergence detected with CCI in oversold territory and prior extreme oversold confirmation • "S" Label (Orange) : Sell signal - Bearish divergence detected with CCI in overbought territory and prior extreme overbought confirmation • ↑ Arrow (Green) : Bullish divergence marker appearing in oversold zone • ↓ Arrow (Red) : Bearish divergence marker appearing in overbought zone • ★ Star (Aqua/Orange) : CCI crossing above oversold line or below overbought line • ● Dot (Lime/Red) : CCI crossing above or below zero axis • Divergence Lines : Green lines connect bullish divergence points; Red lines connect bearish divergence points CCI Visualization • Red Line : CCI value when rising • Green Line : CCI value when falling • Green Histogram : CCI above +100 (overbought zone) • Red Histogram : CCI below -100 (oversold zone) • Blue Histogram at +220 : Buy signal strength indicator • Orange Histogram at -220 : Sell signal strength indicator Zone Fills • Blue Fill : Overbought zone (CCI > +100) • Red Fill : Oversold zone (CCI < -100) • Dark Red Fill : Extreme overbought danger zone (CCI > +200) • Dark Green Fill : Extreme oversold opportunity zone (CCI < -200) █ ALERT CONDITIONS The indicator includes built-in alert conditions for: • Buy Signal : Triggered when bullish divergence buy signal appears • Sell Signal : Triggered when bearish divergence sell signal appears • Cross Above Oversold : CCI crosses above the oversold level • Cross Below Overbought : CCI crosses below the overbought level • Bullish Divergence : Any bullish divergence pattern detected • Bearish Divergence : Any bearish divergence pattern detected █ LIMITATIONS • Divergence signals may produce false positives during strong trending markets • Signals should be used in conjunction with other technical analysis tools • Past performance does not guarantee future results • Best suited for ranging or reversing markets rather than strong trends • The profit percentage display is for reference only and tracks from the most recent buy signal █ NOTES • This indicator works best on timeframes from 15 minutes to daily charts • Consider using support/resistance levels for additional confirmation • The "B" and "S" signals represent the highest probability setups with multiple confirmations • Auxiliary signals (stars and dots) provide earlier warnings but may be less reliable ═════════════════════════════════════════════════════════════════════════ For questions or feedback, use comments section below. Pine Script® indicatorby blackcat140230
Elliott Wave Predictor - Smart Algos📈 Elliott Wave Predictor with Fibonacci Projections A comprehensive Elliott Wave analysis tool that automatically identifies wave structures, projects future price targets using Fibonacci ratios, and overlays key moving averages — all in one indicator. 🔍 What It Does This indicator combines ZigZag pivot detection with Elliott Wave theory to label impulse waves (1-2-3-4-5) and corrective waves (A-B-C) directly on your chart. It then projects the next 5 waves into the future using textbook Fibonacci relationships, giving you actionable price targets. ✨ Key Features Automatic ZigZag Detection — Identifies swing highs and lows using configurable pivot depth Wave Labeling (1-5, A-B-C) — Labels are auto-detected using structural scoring (longest leg = Wave 3) or manually overridden Fibonacci Projections — Projects future waves with proper Elliott Wave ratios: Wave 2: 61.8% retracement of Wave 1 Wave 3: 161.8% extension of Wave 1 Wave 4: 38.2% retracement of Wave 3 Wave 5: 100% of Wave 1 Corrective waves A, B, C with standard ratios Projection Table — Displays projected wave targets, % change from current price, and the Fibonacci ratio used Wave 5 Two-Year Target — Long-term price target shown in the table (not plotted on chart) 50 & 200 WMA — Weighted Moving Averages for trend confirmation Trend Direction — Auto-detects bullish/bearish impulse, or set manually Manual Wave Override — Tell the script which wave just completed for precise alignment ⚙️ Settings Setting Description ZigZag Depth Pivot lookback period (default: 5) Trend Direction Auto / Bullish / Bearish Last Completed Wave Auto-detect or manually set (1-5, A-C) Show Wave Labels Toggle historical wave labels Show Projections Toggle projected zigzag + table Show WMAs Toggle 50/200 WMA overlays 📖 How to Use Apply the indicator to any chart and timeframe The ZigZag will automatically draw with wave labels Check if the auto-detected wave labels make sense for your chart If not, use "Last Completed Wave" to manually set which wave the last pivot represents Set "Trend Direction" to Bullish or Bearish based on your analysis Use the projection table and dashed lines to identify potential price targets Confirm with the 50/200 WMA for trend direction ⚠️ Disclaimer This indicator is for educational and analytical purposes only. Elliott Wave analysis is inherently subjective — wave counts can differ between analysts. Always use proper risk management and combine with other forms of analysis before making trading decisions. Past wave structure does not guarantee future price movement. Pine Script® indicatorby TheTankTrades40