EMA Pullback + Liquidity Sweep (Daily)Swing trading indicator that shows stocks bouncing off the 8, 21, or 50 EMA while also swiping previous day liquidity.Penunjuk Pine Script®oleh StockStallion0
17 PA Checklistchecklist to determine whether PA is choppy or cleanPenunjuk Pine Script®oleh Aleisha17Telah dikemas kini 4
DkS Morning Start PRO 3.0DkS Morning Start PRO — FX Live Guide (Auto Entry / SL / TP + Asia Range) DkS Morning Start PRO is a professional trading tool designed for Forex and intraday traders who want precise, rule-based entries using the Asian session breakout, with fully automated Entry, Stop Loss, and Take Profit levels. The script automatically detects the Asian session range, monitors breakout conditions during the morning session, and generates a complete trading plan with clean, continuous visual levels directly on the chart. Key Features • Automatic Asian Range (Daily High & Low) Draws the current day’s Asian High and Low and automatically removes previous levels, keeping your chart clean and focused. • Automatic Entry, Stop Loss, and Take Profit Calculated using professional logic based on: Asian range breakout Optional retest confirmation Configurable risk management Custom Risk/Reward ratio • Clean and Professional Visual Display Includes: Continuous Entry, SL, and TP lines Professional labels (Entry / SL / TP) Real-time informational panel Clear and minimal chart design • Live Trading Plan (Before Confirmation) Displays potential Entry, SL, and TP levels in advance, allowing traders to prepare before the signal confirms. • Professional Confirmation Filters Built-in filters for higher-probability setups: Fast and Slow EMA trend filter RSI confirmation filter One trade per day option (ideal for FTMO and prop firms) • Designed for Forex Intraday and Scalping Highly effective on: EURUSD GBPUSD AUDUSD XAUUSD Recommended timeframes: M5 M15 M30 Advantages • Eliminates emotional decision-making • Provides clear, rule-based entries • Improves consistency and discipline • Ideal for FTMO and prop firm trading • Clean, professional interface • Non-repainting logic How It Works Detects the Asian session range Waits for breakout during morning session Confirms retest (optional) Calculates Entry, Stop Loss, and Take Profit Displays full trading plan automaticallyPenunjuk Pine Script®oleh dksniewiedersTelah dikemas kini 118
T&G House Indicator█ OVERVIEW Institutional Flow Pro — Quant (IFP-Q) is a multi-module probability engine that combines momentum, volume, volatility, and structural analysis into a single adaptive system. The indicator detects the current market regime and adjusts its thresholds, cooldowns, and signal requirements accordingly. v4.0 adds order flow modules: absorption detection, trapped trader patterns, fair value gaps, market structure breaks (BOS/CHoCH), liquidity pool mapping, volatility squeeze detection, and opening range breakout — all feeding into a unified confluence scoring system. Works on any market with volume data. Optimized for 1m–15m timeframes. █ HOW IT WORKS IFP-Q calculates a composite probability score (-100 to +100) from four weighted components: ◆ Momentum Composite (25%) RSI regime detection, MACD histogram acceleration, Stochastic %K/%D, ROC velocity, ADX trend strength — normalized and Z-scored ◆ Volume-Price Composite (15%) OBV trend, MFI divergence, VWAP deviation, volume momentum, buy/sell pressure ratio — requires real volume data ◆ Trend Composite (40%) EMA ribbon (9/21/50), price vs VWAP, Supertrend, linear regression slope ◆ Volatility Composite (20%) Bollinger Band %B, ATR percentile, Keltner Channel position, historical volatility ratio The raw probability is then adjusted by: → Candle confirmation (engulfing, pin bars, inside bars) → Higher timeframe alignment (15m/1H/4H bias) → Probability momentum and acceleration → v4.0 confluence from order flow modules █ MARKET REGIME DETECTION The indicator classifies each bar into one of five regimes using ADX, ATR percentile, and Bollinger Band width: TRENDING — Directional move detected VOLATILE TREND — Trending with elevated volatility RANGING — Sideways price action VOLATILE — Elevated volatility without clear direction QUIET — Low volatility, compression Each regime adjusts: • Signal threshold • Stop distance multiplier • Cooldown between signals █ ADAPTIVE THRESHOLD SYSTEM The indicator tracks signal outcomes per regime using a rolling window. Based on this data, it adjusts signal thresholds: - If recent signals in a regime have poor outcomes, the threshold tightens (requires stronger readings to trigger) - If recent signals have favorable outcomes, the threshold loosens slightly - Consecutive losing signals increase the cooldown temporarily - Consecutive winning signals decrease the cooldown This creates a feedback loop where the indicator becomes more selective during difficult conditions and more responsive during favorable ones. IMPORTANT: This adaptive system does not guarantee future results. Past signal outcomes do not predict future performance. The threshold adjustments are mechanical responses to historical data on the visible chart, not predictive intelligence. █ v4.0 ORDER FLOW MODULES ◆ ABSORPTION DETECTION Identifies candles with high volume and small body at key levels. Uses delta confirmation (estimated buy/sell volume ratio). Tracks multi-bar clustering at the same price zone. Dashboard shows which level is being tested (VWAP, POC, previous day, value area). ◆ TRAPPED TRADER PATTERNS Detects breakout failures followed by price reclaim. Filters out sustained multi-bar breakouts. Requires decisive reclaim candle. Combined with liquidity sweep detection when both conditions align. ◆ DELTA DIVERGENCE Flags when candle direction disagrees with estimated volume pressure. Tracks consecutive divergence bars. ◆ FAIR VALUE GAPS (FVG) Detects price imbalances where gaps exist between candle wicks. Draws gap zones on chart. Monitors when price returns to the zone. ◆ MARKET STRUCTURE (BOS / CHoCH) Break of Structure — swing level broken in trend direction. Change of Character — first break against the prevailing structure. ◆ LIQUIDITY POOL MAPPING Identifies clusters of equal highs/lows. Tracks touch count. Detects when price sweeps through and reverses. ◆ KELTNER/BB VOLATILITY SQUEEZE When Bollinger Bands compress inside Keltner Channels. Tracks squeeze duration. Detects release candle. ◆ IMPLIED MOVE CALIBRATION Compares historical ATR to external volatility reference if available. ◆ TIME-AT-EXTREME Counts bars spent beyond 2 standard deviations from VWAP. ◆ OPENING RANGE BREAKOUT Configurable time window (default 30 min). Draws OR high/low. Detects volume-confirmed breakouts. ◆ INTERMARKET COMPARISON Compares instrument to a correlated symbol for divergence. ◆ BREADTH PROXY Uses external breadth symbol for market-wide context. All modules feed into a confluence score displayed as a grade (S/A/B/C) with a module count. █ REVERSAL DETECTION Six-layer filter system for reversal signals: 1. Regime-Adaptive Threshold — different requirements per regime 2. Trend Strength Gate — suppresses counter-trend signals in strong directional moves 3. Waterfall/Meltup Filter — blocks signals when consecutive bars make new extremes 4. Cooldown — minimum bars between reversal signals 5. Volume Requirement — elevated volume Z-score required 6. Momentum Divergence — price at swing extreme with RSI divergence Reversal components: Band Rejection, Volume Spike, Momentum Divergence, and Time at Extreme. Each scored and combined for a composite reading. █ SIGNAL SYSTEM Signals require multiple conditions: ✓ Probability above regime-adjusted threshold ✓ Candle pattern confirmation ✓ Higher timeframe alignment ✓ Probability momentum in signal direction ✓ Not overextended from VWAP (unless reversal active) ✓ Pullback condition in trending regimes ✓ Session filter (configurable) ✓ Dynamic cooldown satisfied Signals are graded by probability magnitude: A+ (85%+), A (70%+), B (55%+). Each signal includes a trade plan with calculated stop (anchored to nearby structure), target, and position size based on user-defined risk parameters. IMPORTANT: Signals are not trading recommendations. They represent conditions where multiple technical factors align according to the indicator's logic. Users must apply their own judgment and risk management. █ DASHBOARD Two display modes: BEGINNER — 7-row view showing direction, probability, action label, regime, reversal status, and signal count. ADVANCED — 20-row view showing probability, gauge, conviction, regime, reversal detail, edge state, all four composite scores, HTF alignment, trade plan, quality gate status, signal tracker, market structure, order flow, squeeze, liquidity, v4 confluence, and adaptive state. █ LEVEL MAP Auto-sorted table showing active levels by proximity to price: VWAP, developing POC/VAH/VAL, previous day high/low, opening range, and liquidity pools. Closest levels highlighted with context tags. █ ALERTS (25+) • Long / Short Signal • Squeeze Release • Change of Character (CHoCH) • Break of Structure (BOS) • Liquidity Sweep • Absorption Detected • Trapped Trader Pattern • Delta Divergence Stack • Fair Value Gap Formed • ORB Breakout • dVAH / dVAL Break • dPOC Migration • Level Squeeze • Probability Threshold (70%+) • Regime Change • Near Edge • Divergence • Reversal • Dual Squeeze • v4 Confluence (4+ modules) █ SETTINGS Sensitivity: Aggressive / Normal / Conservative Beginner Mode: Simplified dashboard Modules: All v4 modules individually toggleable Levels: VWAP, POC, Dev Levels, Prev Day, Projections Signals: Toggle signals, reversals, markers, action label Risk: Account size, risk %, R:R ratio, stop multiplier Session: Timezone, session filter, OR window Intermarket: Comparison symbol, breadth symbol Colors: All colors customizable █ LIMITATIONS • Volume-dependent features require real volume data. Results will differ on instruments without reliable volume (some forex pairs, CFDs). • The adaptive threshold system uses visible chart history. Shorter chart histories provide less data for calibration. • Higher timeframe alignment uses security() calls. On some broker feeds, HTF data may have slight delays. • Signal generation uses bar close values. Signals do not repaint after the bar closes, but the probability reading updates intrabar. • This indicator is a technical analysis tool, not a trading system. It does not account for fundamentals, news events, or market microstructure beyond what is visible in price and volume. █ USAGE NOTES • The probability number is the primary output. Positive values indicate bullish technical conditions; negative values indicate bearish conditions. Magnitude indicates strength of the reading. • Triangle markers appear when signals fire. Check the dashboard for the quality gate status and trade plan details. • The Adapt row shows whether the adaptive system has tightened or loosened the threshold for the current regime. • Reversal diamonds indicate potential exhaustion points. They are not entry signals — they flag conditions where the indicator detects multiple reversal components aligning. • Order flow markers (ABS, TRAP) provide context about volume behavior at key levels. They supplement the probability reading. This indicator combines multiple technical approaches. Users should understand each component's logic before incorporating signals into their trading process.Penunjuk Pine Script®oleh maxpitts133
SHARP TURN (Visual Levels)here is a script looking for trades on the 15 minute chart but closing each trade whenever there is a reversal of 2% on the highest price reached on the 5 minute chart. I have tested this trading strategy indicator and appears to be giving good results. the build is still in progress and colaborators are welcomePenunjuk Pine Script®oleh RonnieX50
Price Action Checklist - Choppy vs CleanA checklist to determine whether price action is clean or choppy.Penunjuk Pine Script®oleh Aleisha173
SK v2.0 (Clean UI + Locked Labels + MTF Fib Alerts)🔍 What the script does This SK indicator finds clean 0–A–B–C structures, draws the zones, and shows where price could re‑enter and extend. 🧠 Core logic (SK style) 0 → A = first strong move B = pullback zone (Entry area) C = extension targets (where price often reacts) ✅ What you see on the chart Zones (GP / Deep) for entries Entry box (between Entry 1 & 2) C targets (C1 / C2 / C3 / C4) Extra Fibs (for key levels you choose) 0‑A‑B‑C line + labels 📌 Important options Swing/Fib Source: Body or Wick Body = cleaner structure (default) Wick = more sensitive BOS Filter: optional trend confirmation HTF Filter: only show structures that match higher timeframe 🔔 Alerts SK SEQ = new structure found SK FIB (MTF) = price gets close to your active fibs (only triggers for fibs you actually enabled) 🎨 Visual controls Choose label position (Left / Middle / Right) Change colors per level Toggle labels on/offPenunjuk Pine Script®oleh caspa_123321Telah dikemas kini 5
Side by Side PRO (Perfect + Broken + Table) - Box Zone English (simple & clear) Side by Side PRO spots price clusters where candles close at similar levels. It draws a zone box on the chart and signals when price breaks out. A table shows the same view across multiple timeframes for 5 coins. 🧭📦🔔 Highlights: Zone box on the chart 📦 Breakout signals up/down 🚀⬇️ 5 coins × 5 timeframes overview 🧭 Alerts for new zones & breakouts 🔔 Penunjuk Pine Script®oleh caspa_1233211
Hidden Divergence with BB & Triple Filterthis stargies use for intraday best for structure trading and breakout and breakdown helpful for all beginer and expernices traderPenunjuk Pine Script®oleh HINDFX1
MTF Countdown (tablouh)it simple just showing all timeframes countdown it simple just showing all timeframes countdown it simple just showing all timeframes countdown Penunjuk Pine Script®oleh amazighin4
TrendLines + Calendar LevelsIntroduction: This is a powerful charting tool designed to help traders and analysts visualize key support and resistance levels alongside trendlines across multiple timeframes. The indicator automatically identifies trendlines based on recent price action and plots critical highs from multiple periods, including last week, last month, last year, the 52-week high, and all-time high. Key Features: Dynamic Trendlines: Automatically draws rising support and falling resistance trendlines based on user-defined short and long lookback periods. Multi-Timeframe High Levels: Last Week High: Plots the high of the most recently completed week. Last Month High: Plots the high of the most recently completed calendar month. Last Year High: Plots the high of the previous calendar year. 52-Week High: Tracks the highest price over the past 52 weeks. All-Time High (ATH): Highlights the all-time historical high for the symbol. Customizable Appearance: Independent control for each level: show/hide, label visibility, line color, style (solid, dashed, dotted), and width. Trendline colors are adjustable to highlight support (green) and resistance (red). Ease of Use: Simple input options for lookback periods and visual preferences. Ideal for trend analysis, breakout detection, and historical level reference. Inputs & Customization: Short Period and Long Period for trendline calculation. Show/hide options for last week, month, year, 52-week, and all-time highs. Label toggle for all levels. Color, line style (solid/dashed/dotted), and width for each level. Penunjuk Pine Script®oleh UAE_Stock_ProTelah dikemas kini 4
HS CVD + DivergenceThis indicator visualizes Cumulative Volume Delta (CVD) and detects price-vs-volume divergences that signal potential reversals. It uses TradingView's built-in requestVolumeDelta from a lower timeframe to build a real-time CVD line, delta candles, and automatic divergence alerts. It was split from the HS Plotter GEX indicator to stay under Pine Script's 64-plot limit. Use both together for the full picture — GEX levels + options flow on the main chart, CVD + divergences in a separate pane below. How to Read It The indicator lives in its own pane (below the price chart). There are four visual layers: Delta Bars (candles) Green candles = net buying pressure on that bar. Red candles = net selling pressure. The taller the candle, the more aggressive the directional volume. Think of these as "who's in control right now" on a bar-by-bar basis. CVD Line (cyan) The running total of all delta bars. When CVD is rising, buyers are accumulating over time. When CVD is falling, sellers are distributing. The slope matters more than the absolute value — a flattening CVD after a strong trend = momentum fading. CVD EMA (faded cyan) A smoothed version of the CVD line (default 14 periods). When CVD crosses above its EMA, buying momentum is accelerating. When it crosses below, selling momentum is picking up. The gap between CVD and its EMA shows conviction. Divergence Labels ("DIV") Green "DIV" label at bottom = Bullish divergence — price made a new low but CVD is holding higher. Smart money is accumulating while price drops. Look for long entries. Red "DIV" label at top = Bearish divergence — price made a new high but CVD is fading. Distribution is happening under the surface. Look for short entries or exits. Background tints green/red on divergence bars so you don't miss them. Quick Read Guide What You See What It Means Action Green delta bars + CVD rising Buyers in control Favor longs, hold runners Red delta bars + CVD falling Sellers in control Favor shorts, tighten stops CVD rising but price flat Stealth accumulation Watch for breakout CVD falling but price flat Stealth distribution Watch for breakdown Green DIV label Bullish divergence Look for long entry at support Red DIV label Bearish divergence Look for short entry at resistance CVD crosses above EMA Buying momentum accelerating Bullish confirmation CVD crosses below EMA Selling momentum accelerating Bearish confirmation Settings Smooth Length (default 14) — EMA period for the CVD smoothing. Lower = more responsive, higher = less noise. Divergence Lookback (default 10) — How many bars to scan for new highs/lows. Lower catches faster divergences, higher catches bigger ones. Toggle each layer on/off independently: CVD line, CVD EMA, delta bars, divergences. Custom colors for CVD line, buy delta, and sell delta. Alerts "Bullish CVD Divergence" — fires when price makes a new low but CVD holds. Accumulation signal. "Bearish CVD Divergence" — fires when price makes a new high but CVD fades. Distribution signal. Best Used With Pair this with the HS Plotter GEX indicator on the main chart. When a CVD divergence fires AT a GEX level (King Node, Flip, or OI wall), the signal is significantly stronger. For example: bearish CVD divergence at the Ceiling level = high-probability short setup. Requirements: Works on any symbol with volume data. If you see a "No volume data" error, the symbol doesn't report volume (some indices, forex pairs).Penunjuk Pine Script®oleh Mr-Anubis6
Faze 3 Levels and Signal Screener⚡ FAZE 3 SIGNAL INDICATOR ⚡ Strategy Made Simple Using the Weekly Template The Faze 3 Signal Indicator is a structured trading tool designed to remove noise, save time, and keep traders aligned with the weekly market template. This is not a standalone signal system and signals are not 100%. All signals are meant to be traded within your own strategy, rules, and risk management. 📊 FEATURES • Daily, Weekly & Monthly Levels • Days of the Week displayed on chart • Signals printed directly on the chart • Built-in screener to scan custom watchlists ⚡ SIGNALS INCLUDED • FRD – First Red Day • FGD – First Green Day • CIB – Close In Breakout • ID – Inside Day • 3DL – 3 Day Long • 3DS – 3 Day Short 📆 3-DAY LONG / SHORT LOGIC Signals are based on weekly timing, not random conditions. • Frontside: Monday–Tuesday → Wednesday = Trade Day • Backside: Wednesday–Thursday → Friday = Trade Day This keeps traders patient, aligned, and focused on higher-probability days. 🧠 IMPORTANT • Signals do not repaint • Signals are informational, not financial advice • Always trade with proper risk management Sharpen the sword ⚔️⚡Penunjuk Pine Script®oleh Qurissa1527
Champion Indicator version 2It is derived from a combining EMA smoothing and price deviation to detect overbought and oversold market conditions. Penunjuk Pine Script®oleh Indicator-Master1114
NTrades [IFVG Model + SMT]NTrades – IFVG Model + SMT NTrades – IFVG Model + SMT is a multi-concept market structure indicator designed to identify high-probability intraday trading opportunities by combining Directional Fair Value Gaps (IFVG), Smart Money Technique (SMT) divergences, and Higher Timeframe (HTF) candle projections into one streamlined tool. Key Features ✅ Directional IFVG Model Detects and plots 15-minute Fair Value Gaps aligned with a selected daily market bias (Bullish or Bearish). Filters FVGs using customizable lookback days and automatically extends zones for forward reference. Focuses on post-NY open price inefficiencies for higher institutional relevance. ✅ SMT Divergence Detection Identifies pivot-based SMT divergences between the main chart symbol and up to two external correlated markets. Highlights bullish and bearish liquidity displacements using customizable styling. Allows timeframe-specific SMT visibility for cleaner chart analysis. ✅ Adjacent 15M SMT Confirmation Detects short-term SMT shifts between consecutive 15-minute candles. Provides rapid confirmation of potential liquidity grabs and reversals using visual divergence lines. ✅ Higher Timeframe Candle Overlay Displays projected HTF candles directly on the chart with optional Heikin Ashi smoothing. Includes projected Open, High, Low, and Close levels for precision execution and context. Supports automatic timeframe selection or fully customizable HTF settings. ✅ Advanced Customization Adjustable visual styling for FVGs, SMT signals, and HTF candles. Custom session opening time support. Flexible projection levels and display options for cleaner workflow integration. Penunjuk Pine Script®oleh Nishann71
Sri - Multi - Timeframe Candles with 20/50/200 EMA Overlay✅ TradingView Full Script Description (Moderator-Safe) Sri — Multi-Timeframe Candles with 20/50/200 EMA Overlay This indicator displays higher-timeframe price candles directly on the current chart, allowing traders to view larger-timeframe market structure without switching chart timeframes. The script renders a mini candlestick chart aligned to the right side of the price chart and overlays 20-EMA, 50-EMA, and 200-EMA trend lines calculated from the selected higher timeframe. 🔹 What Makes This Script Unique Unlike standard multi-timeframe indicators that only plot higher-TF lines or signals, this tool reconstructs full OHLC candles from a higher timeframe, visually preserving trend structure, momentum, and candle behavior inside the current timeframe. Key originality includes: Rendering full mini-candlestick charts using higher-TF OHLC arrays Drawing EMA trend lines synchronized to each candle Supporting Auto or Manual timeframe detection Offering precise control over candle spacing, thickness, and chart alignment Maintaining a clean price chart without replacing native candles This creates a compact market structure panel that helps traders analyze trend alignment, breakout zones, and higher-TF bias in real time. 🔹 How the Script Works (Concept Overview) The script requests historical OHLC data from a higher timeframe using multi-timeframe data retrieval. It stores recent candles into arrays to preserve historical candle structure. It programmatically draws candlestick bodies and wicks using box and line objects. It calculates EMA 20, EMA 50, and EMA 200 from the same higher timeframe data. EMA values are plotted as trend-tracking lines across the mini-chart candles. Traders can adjust display properties such as number of candles, offset position, thickness, spacing, colors, and EMA styling. 🔹 Key Features ✔ Higher-timeframe candlestick mini-chart ✔ Auto or manual timeframe selection ✔ 20 / 50 / 200 EMA trend overlay ✔ Adjustable candle count (up to 50+) ✔ Custom candle thickness & spacing ✔ Custom bullish, bearish & wick colors ✔ Overlay mode for main price chart ✔ Lightweight visual footprint for clarity ✔ Ideal for trend, bias & structure analysis 🔹 How Traders Can Use It 📈 Trend Confirmation Check if lower-timeframe trades align with the higher-timeframe EMA trend. 📊 Market Structure Analysis Visualize higher-TF candle patterns such as: Higher highs / lower lows Rejection wicks Breakout candles Consolidation zones ⚡ Entry Timing Use lower-TF entries while confirming direction from higher-TF candles & EMA slope. 🛡 Risk Management Avoid counter-trend trades when higher-TF candles show strong directional bias. 🔹 Best Use Cases Intraday traders confirming Daily / 4H structure Swing traders tracking Weekly bias Trend traders filtering false breakouts Multi-timeframe technical analysts Traders who want higher-TF clarity without switching charts 🔹 Recommended Timeframe Pairings Chart TF Higher TF 5m / 15m 1H / 4H 30m / 1H 4H / Daily Daily Weekly / Monthly 🔹 Why This Script Is Closed-Source This script uses custom candle reconstruction logic, array-based historical MTF storage, and optimized rendering methods to ensure smooth performance and accurate synchronization between timeframes. These proprietary techniques are intentionally protected to maintain performance integrity and originality. 🔹 Disclaimer This tool is intended for technical analysis and educational use. It does not provide financial advice. Always combine with risk management and confirmation tools.Penunjuk Pine Script®oleh venkat_27221
Polynomial Regression Clustering [LuxAlgo]The Polynomial Regression Clustering indicator utilizes K-Means clustering to categorize historical price data into discrete levels and fits polynomial regression curves to each identified cluster. This tool allows traders to visualize non-linear trends within specific price regimes, providing a unique perspective on support, resistance, and price momentum. 🔶 USAGE The indicator identifies "K" number of clusters based on the vertical distribution of price over a user-defined lookback period. Each cluster represents a group of bars that share similar price levels, and a polynomial regression line is calculated to represent the localized trend for that specific group. 🔹 Cluster Identification The script groups price action into color-coded dots. By default, it uses the HL2 (Average price) to determine which cluster a bar belongs to. This is particularly useful for identifying historical value areas where price has spent a significant amount of time. 🔹 Polynomial Fitting Unlike standard linear regression, which produces a straight line, the polynomial regression curves can bend to fit the data more accurately. A Polynomial Degree of 1 will result in a standard linear regression (straight lines). A Polynomial Degree of 2 or higher allows for curves that capture parabolic moves or cyclical swings within each cluster. 🔹 Future Projections The current active cluster (the one containing the most recent price point) can be projected into the future. This allows you to see where the localized trend for the current price regime is heading based on the mathematical fit of historical data. 🔶 DETAILS 🔹 K-Means Algorithm The script uses an iterative K-Means algorithm to find the optimal centroids (center points) for the price levels. It calculates the distance of each price point to the nearest centroid and refines the centroid position until the clusters are stable or the maximum iterations are reached. 🔹 Regression Logic Once price points are assigned to a cluster, the script solves for the coefficients of a polynomial equation that minimizes the distance between the line and the cluster's data points. To ensure numerical stability with higher degrees, the horizontal (time) axis is normalized before performing matrix operations. 🔶 SETTINGS 🔹 K-Means Number of Clusters (K): Defines how many price levels the indicator should look for. Higher values create more granular levels. Lookback Period: The number of recent bars used to perform the clustering and regression calculation. Max Iterations: The maximum number of refinement steps for the K-Means algorithm. 🔹 Regression Polynomial Degree: Controls the "bend" of the regression lines. Higher degrees allow for more complex curves. Extend All Fits to Current Bar: When enabled, the regression lines for all historical clusters are extended to the rightmost edge of the chart. Project Current Cluster into Future: Extends the current regime's regression line into the future (empty space) using a dashed line. 🔹 Visual Style Show Regression Lines: Toggles the visibility of the polynomial curves. Show Cluster Dots: Toggles the visibility of the colored dots on each price bar. Dot Size: Adjusts the size of the cluster dots. Cluster Colors: Customizable colors for each of the identified clusters.Penunjuk Pine Script®oleh LuxAlgo33740
SMC Valid/Invalid PullbacksThis indicator helps to identify valid / invalid price pullbacks from smc perspectivePenunjuk Pine Script®oleh fantor7010
MACD Support/Resistance(Ayhan)1) Support/Resistance from MACD crosses (your blue/orange horizontal lines) When MACD crosses DOWN (macdDown): it looks back ~5 bars and takes the highest high → saves it as a Resistance (orange horizontal line + diamond). When MACD crosses UP (macdUp): it looks back ~5 bars and takes the lowest low → saves it as a Support (blue horizontal line + diamond). So the blue line you circled is: a new Support level created right after a MACD UP cross. 2) Removes levels when they break If price low goes below a Support level → “Support Broken” event, and that level is removed. If price high goes above a Resistance level → “Resistance Broken” event, and that level is removed. 3) Finds nearest Support/Resistance + calculates risk/reward From all active levels it finds: Nearest Support below price (nearSup) Nearest Resistance above price (nearRes) Then it calculates: Distance to each in %, R/R for a long (buy) (stop at support, target at resistance), Position size (lots) using account size + risk % per trade. 4) ADX (trend strength) + table It calculates ADX (Wilder style) and shows Weak / Medium / Strong in the table. 5) Alerts (this is what you choose in TradingView) Alert conditions included: MACD Crossover Up MACD Crossunder Down New Support Created New Resistance Created Support Broken Resistance Broken In TradingView alarms, you select one of these under Condition. 6) ATF (if enabled) ATF searches different periods, chooses the one with best fit (Pearson R), and draws: A sloped midline + upper/lower channel, plus a small ATF table. If you tell me which exact event should be your “BUY” (New Support? MACD UP? plus ADX filter?), I can align the alert to that logic and make the alert message clean (Telegram-ready if needed).Penunjuk Pine Script®oleh ayhanuzun55011
Sam BB V14 Bollinger Bands Ribbon with custom inter-band fills looks well-structured and mostly correct for Pine Script v5. It implements: Four independent, customizable Bollinger Band sets (different lengths, MA types, multipliers, sources, colors) Individual inner fills (inside each band) Inter-band "ribbon" fills (the zones between bands on both upper and lower sides) Toggle visibility per band Clean input grouping Design by Sam Mahboubeh, V1Penunjuk Pine Script®oleh sammahboubeh1
XAUUSD Power @ Strict Pivot S/RThis indicator identifies who is in control (buyers or sellers) when price reaches key support and resistance zones, defined using strict pivot points. How it works Automatically plots support and resistance using confirmed pivots. Analyzes candle structure: candle direction (bullish / bearish) body size wick dominance A signal is shown only when: price is near support or resistance (ATR-based filter) there is clear buying or selling strength Signals appear only after the candle closes (no repaint). Signals 🔺 Green triangle → buyers gain control at support 🔻 Red triangle → sellers gain control at resistance Best use Scalping / intraday trading Recommended timeframe: 5-minute Works well on volatile markets such as XAUUSD, US30, NASDAQ Important Confirmation tool, not a prediction system Not an automated trading strategy Should be used with proper risk managementPenunjuk Pine Script®oleh Arduzai1999Telah dikemas kini 8
Put Spread Signals Daily v5 (NO ta.sum)//@version=5 indicator("Put Spread Signals Daily v5 (NO ta.sum)", overlay=true) // Inputs ma20Len = input.int(20, "MA20") ma50Len = input.int(50, "MA50") ma200Len = input.int(200, "MA200") pullbackPct = input.float(0.01, "Pullback near MA20 (1%=0.01)", step=0.005) minRedDays = input.int(1, "Min red days (last 5)", minval=0, maxval=5) stopBelow200Pct = input.float(0.005, "Stop below MA200 %", step=0.0025) // MAs ma20 = ta.sma(close, ma20Len) ma50 = ta.sma(close, ma50Len) ma200 = ta.sma(close, ma200Len) // Trend + pullback bullTrend = close > ma50 and close > ma200 and ma50 > ma200 nearMA20 = close <= ma20 * (1 + pullbackPct) // Red candle count last 5 bars (NO ta.sum) red0 = close < open ? 1 : 0 red1 = close < open ? 1 : 0 red2 = close < open ? 1 : 0 red3 = close < open ? 1 : 0 red4 = close < open ? 1 : 0 redCount = red0 + red1 + red2 + red3 + red4 hasMinRed = redCount >= minRedDays // Bounce bounce = close > open and close > close // Signals enter = bullTrend and nearMA20 and hasMinRed and bounce takeProfit = ta.crossover(close, ma20) stopOut = close < ma200 * (1 - stopBelow200Pct) // Plots plot(ma20, "MA20", linewidth=2) plot(ma50, "MA50", linewidth=2) plot(ma200, "MA200", linewidth=2) plotshape(enter, title="ENTER", style=shape.labelup, location=location.belowbar, text="ENTER", size=size.small) plotshape(takeProfit, title="EXIT_TP", style=shape.labeldown, location=location.abovebar, text="TP", size=size.small) plotshape(stopOut, title="EXIT_STOP", style=shape.labeldown, location=location.abovebar, text="STOP", size=size.small) // Alerts alertcondition(enter, title="ENTER Alert", message="ENTER: Trend up + pullback near MA20 + bounce. Consider selling put credit spread (30-45 DTE).") alertcondition(takeProfit, title="EXIT TP Alert", message="EXIT TP: Price reclaimed MA20. Consider taking profit.") alertcondition(stopOut, title="EXIT STOP Alert", message="EXIT STOP: Close below MA200 threshold. Consider closing/rolling.") Penunjuk Pine Script®oleh JosephGanapathy228
Put Spread Signals Daily v5 (NO ta.sum)//@version=5 indicator("Put Spread Signals Daily v5 (NO ta.sum)", overlay=true) // Inputs ma20Len = input.int(20, "MA20") ma50Len = input.int(50, "MA50") ma200Len = input.int(200, "MA200") pullbackPct = input.float(0.01, "Pullback near MA20 (1%=0.01)", step=0.005) minRedDays = input.int(1, "Min red days (last 5)", minval=0, maxval=5) stopBelow200Pct = input.float(0.005, "Stop below MA200 %", step=0.0025) // MAs ma20 = ta.sma(close, ma20Len) ma50 = ta.sma(close, ma50Len) ma200 = ta.sma(close, ma200Len) // Trend + pullback bullTrend = close > ma50 and close > ma200 and ma50 > ma200 nearMA20 = close <= ma20 * (1 + pullbackPct) // Red candle count last 5 bars (NO ta.sum) red0 = close < open ? 1 : 0 red1 = close < open ? 1 : 0 red2 = close < open ? 1 : 0 red3 = close < open ? 1 : 0 red4 = close < open ? 1 : 0 redCount = red0 + red1 + red2 + red3 + red4 hasMinRed = redCount >= minRedDays // Bounce bounce = close > open and close > close // Signals enter = bullTrend and nearMA20 and hasMinRed and bounce takeProfit = ta.crossover(close, ma20) stopOut = close < ma200 * (1 - stopBelow200Pct) // Plots plot(ma20, "MA20", linewidth=2) plot(ma50, "MA50", linewidth=2) plot(ma200, "MA200", linewidth=2) plotshape(enter, title="ENTER", style=shape.labelup, location=location.belowbar, text="ENTER", size=size.small) plotshape(takeProfit, title="EXIT_TP", style=shape.labeldown, location=location.abovebar, text="TP", size=size.small) plotshape(stopOut, title="EXIT_STOP", style=shape.labeldown, location=location.abovebar, text="STOP", size=size.small) // Alerts alertcondition(enter, title="ENTER Alert", message="ENTER: Trend up + pullback near MA20 + bounce. Consider selling put credit spread (30-45 DTE).") alertcondition(takeProfit, title="EXIT TP Alert", message="EXIT TP: Price reclaimed MA20. Consider taking profit.") alertcondition(stopOut, title="EXIT STOP Alert", message="EXIT STOP: Close below MA200 threshold. Consider closing/rolling.") Penunjuk Pine Script®oleh JosephGanapathy1