Darvas Box (1D)to have buy and sell signal acuracy. already try this signal and the result is very good. enjoyyyyy created by DAW, BanyuwangiPine Script® indicatorby dwiarisw6
WEALTHCON BLASH indicatorThis indicator is developed only for NIFTY. It shows a cycle of overvaluation and undervaluation. If the indicator is below 10% then nifty is undervalued. If the indicator is above 10% then nifty is overvalued Pine Script® indicatorby pradhanred5
golden crossoverpositional buying and selling system. when multiple crossover met and candlestick pattern is open take positional buyPine Script® indicatorby rlygangesh1
Super StochasticAdded Features (Originality Enhancements) Divergence Detection: Instead of relying solely on price action for "BUY/SELL" signals, we've integrated an algorithm that identifies discrepancies between price movement and the oscillator. This helps in spotting potential trend reversals before they happen. Alarm System: We have added code and features that allow you to set alerts based on Buy and Sell conditions directly on the indicator. You can now easily catch signals and set up alerts. Dynamic Background & Alert Infrastructure: To enhance visual clarity, we’ve added dynamic background coloring for trend changes. Additionally, the script includes a robust alert system compatible with trading bots and real-time notifications. Refined Signal Logic: The downward momentum triggered when the %K line crosses below the %D line at peaks has been redesigned for higher clarity and directly reflected on the %K line. User-Friendly Visuals: Added "Buy" and "Sell" labels to help traders—especially beginners—identify entry and exit points more easily within extreme zones. Improved Navigation: Made it simpler for new traders to capture market movements effectively.It enables novice traders to capture buy and sell opportunities more easily. "It works best on the daily timeframe with settings of K: 14 / D: 3 / Smooth: 3." Good Luck!Pine Script® indicatorby Rmzn4406116
Super SMA 5 8 13 + EMA 20/200 Regime Filter (ALIZET)Love this indicator. Super SMA 5 8 13 + EMA 20/200 Regime Filter (ALIZET) is a trend‑following indicator that combines the classic 5‑8‑13 moving average setup with a 20/200 EMA regime filter. It plots SMA 5/8/13 for short‑term momentum and EMA 20/200 to define market environment (bullish, bearish, or both). Buy signals trigger when SMA 5 crosses above SMA 13 under the selected regime; sell signals trigger when SMA 5 crosses below SMA 8 and SMA 13. The “Regime Filter” input lets you limit signals to only bullish (EMA20 > EMA200), only bearish (EMA20 < EMA200), or run in both modes, helping you focus entries and exits on the type of market you want to trade. Pine Script® indicatorby afdzjr6942
Smooths Trend BreakerSmooths Trend Breaker Overview Smooths Trend Breaker is a trend identification and entry timing tool that combines an adaptive ATR-based supertrend, a higher timeframe EMA trend filter, volume confirmation, an RSI gate, a price compression range detector, and FVG-gated star candlestick pattern recognition. Each component was chosen to address a specific weakness in standalone supertrend systems — noise in choppy markets, late entries, and signals that contradict the larger trend — and all components work together as a single decision framework rather than as separate overlapping indicators. Component Methodology Adaptive Supertrend Engine The core engine uses an ATR-based supertrend calculation. True Range is computed on each bar as the maximum of the current high-low range, the absolute distance from the prior close to the current high, and the absolute distance from the prior close to the current low. ATR is then derived using Wilder's smoothing method — a modified exponential moving average with a smoothing factor of 1/N — rather than a simple average, which gives more weight to recent volatility while maintaining memory of past conditions. The upper and lower bands are calculated as the midpoint of the bar's high-low range plus or minus the ATR multiplied by a user-defined multiplier. Bands are then locked directionally — the lower band can only move upward and the upper band can only move downward — preventing the line from retreating when price moves against the trend. The trend direction flips only when a closing price crosses the opposite band, not on intrabar wicks, ensuring signals are close-confirmed. Rather than using fixed ATR settings across all timeframes, the indicator auto-selects ATR length and multiplier based on the chart's timeframe in seconds. Shorter timeframes receive a shorter ATR period and higher multiplier to account for proportionally larger noise relative to signal. Longer timeframes receive a longer period and lower multiplier to avoid over-sensitivity on slower-moving instruments. This eliminates the need to manually adjust parameters when switching timeframes. Higher Timeframe EMA Filter When enabled, the indicator uses `request.security()` to retrieve a 50-period EMA from a higher timeframe selected automatically based on the chart timeframe — for example a 15-minute EMA is referenced when viewing a 5-minute chart, and a 4-hour EMA is referenced when viewing a 1-hour chart. A Buy label is only confirmed when price closes above this EMA and a Sell label is only confirmed when price closes below it, aligning entries with the larger structural trend. Volume Confirmation The volume filter computes a 20-bar simple moving average of volume. A signal is confirmed only when the flip bar's volume exceeds this average by a user-defined threshold, defaulting to 1.2 times the average. This filters out supertrend flips that occur on low-participation bars, which have historically higher failure rates. RSI Gate A 14-period RSI using Wilder's smoothing is computed on each bar. Buy signals are blocked when RSI exceeds a user-defined overbought level (default 70) and Sell signals are blocked when RSI falls below a user-defined oversold level (default 30). This prevents chasing exhausted moves at extremes. Range Breaker The Range Breaker compares the current N-bar rolling range (highest high minus lowest low) against the prior N-bar rolling range from the equivalent lookback window shifted N bars back. When the current range is less than a defined ratio of the prior range — meaning price has compressed significantly relative to its recent volatility — a consolidation zone is declared. Horizontal lines are drawn at the highest high and lowest low of the active zone and extend forward with the current bar. When a closing price breaks outside either level the zone is sealed and a breakout marker fires. Star Pattern Detection with FVG Gate Morning Star, Morning Doji Star, Evening Star, and Evening Doji Star patterns are detected using strict 3-candle criteria. The first candle must be a strong directional bar with a body filling at least 50% of its range. The middle candle — the star — must have a body of 25% or less of its range and a total range smaller than 80% of the first candle's body. The confirmation candle must be directionally opposite to the first candle with a body filling at least 40% of its range, closing past the midpoint of the first candle's body. Additionally, a Fair Value Gap check is applied to the candle immediately before the star. A bearish FVG exists when the high of bar N is below the low of bar N+2, creating a downward price gap. A bullish FVG exists when the low of bar N is above the high of bar N+2, creating an upward price gap. An Inverse FVG check scans back 45 bars for a prior FVG zone whose price range overlaps with the pre-star candle, indicating price has returned to fill an old imbalance. If neither an FVG nor an IFVG is present on the candle before the star, the pattern does not fire regardless of candle structure. This ensures every star signal is anchored to a real price imbalance. How to Use It The highest probability setups occur when the supertrend line has already established direction, the range detector is not showing an active chop zone, and a signal fires with volume and HTF agreement. The Range Breaker lines are a caution flag — while they are active and unbroken, the supertrend will produce lower quality signals due to market compression. The star patterns provide a precision entry trigger that can be used to time entries at reversal points, particularly when a star fires near an active Range High or Range Low level. Trend continuation Wait for a pullback toward the supertrend line, then enter when the next Buy or Sell label prints in the direction of the established trend. Breakout entries When a range zone has been active for several bars and the supertrend is already pointing in one direction, a range breakout marker firing in that same direction is a high-quality entry trigger. Star entries A star pattern firing at or near a Range High or Range Low, with the supertrend already in agreement, represents the highest confluence setup available in the indicator. What to avoid Do not enter trend signals while a range zone is active with no breakout. Do not take signals that contradict the HTF EMA. Do not enter late into an extended trend where price is far from the supertrend line. Settings ATR Length and Multiplier auto-scale by timeframe but can be manually overridden. Volume threshold multiplier defaults to 1.2× the 20-bar average. RSI overbought and oversold levels default to 70 and 30. Range sensitivity has three modes controlling lookback period, compression ratio, and minimum bar count. Past zones to display defaults to 5, maximum 20. Pine Script® indicatorby CaptainSmooth84
AI Neural Trend Predictor [identityKa]The AI Neural Trend Predictor is a professional-grade, zero-lag trend tracking system designed to keep traders in massive moves while aggressively filtering out market noise. Traditional moving averages suffer from two fatal flaws: they either lag heavily behind the price, or they whipsaw the trader out of positions during minor pullbacks. This script solves both issues by combining a zero-lag mathematical smoothing algorithm with a dynamic volatility shield. Core Mechanics & Detection Zero-Lag Base Engine: The core of the algorithm utilizes a highly responsive, smoothed proxy to track the live price instantly, eliminating the delayed entry problem found in SMA or EMA based indicators. Volatility Shield (Noise Filter): Instead of flipping signals the moment price crosses the baseline, the engine projects a dynamic ATR-based shield around the trend. During a bullish run, minor price drops will simply compress into the shield without triggering a premature SELL signal. The trend only flips when the institutional order flow breaks through the true volatility threshold. Clear BUY / SELL Labels: The engine prints highly visible, definitive BUY (Green) or SELL (Red) labels directly on the chart, taking the guesswork out of your entries. HUD Dashboard & AI Logic The strictly positioned on-chart intelligence panel evaluates the live market state: Dangerous (Orange): Displayed actively whenever the internal volatility ratio drops below the algorithmic threshold, indicating a Choppy or Ranging market. This warns the trader to avoid taking new positions until momentum returns. LONG / SHORT: The engine generates a clear directional bias when the market shifts to a "TRENDING" state and the volatility shield remains unbreached in the direction of the trend. How to Use It This tool is built for capturing massive swings. When an AI BUY label appears, you ride the trend until the opposing SELL label is printed. Do not panic-sell during minor red candles (pullbacks); trust the Volatility Shield to keep you in the trade. For optimal results, ignore signals generated while the dashboard reads "Dangerous."Pine Script® indicatorby IdentityKa736
ISV-200 - PRO The indicator automatically finds peaks or troughs in combination with Bollinger Bands and MACD divergence to enable entry points.Pine Script® indicatorby Tieu_VuongUpdated 99804
Pro Levels & Zones [MTE]Pro Levels & Zones An intraday futures overlay that combines pivot-based supply and demand zones with multi-session key levels and a confluence-based signal filter. The core idea is that zones alone generate too many potential entries — by requiring alignment across multiple independent factors before labeling a zone touch, the indicator filters out low-conviction setups and highlights where several references converge. HOW IT WORKS Supply & Demand Zone Detection Zones are built from 60-minute pivot highs and pivot lows using a 3-bar left / 3-bar right pivot structure. When a pivot high is confirmed, the area between the candle's high and the top of its body becomes a supply zone (red). When a pivot low is confirmed, the area between the candle's low and the bottom of its body becomes a demand zone (green). Zones extend forward in real time and are automatically removed when price closes beyond the zone boundary or when the zone exceeds a configurable age limit (default: 500 bars). Only the 3 most recent zones per side are kept to avoid chart clutter. Confluence Scoring (signal filter) When price enters a fresh (unused) zone, the indicator checks up to 5 independent factors before printing a signal: 1. Volume delta direction — estimated from the bar's close position within its range. A buy signal requires positive delta; a sell signal requires negative delta. 2. VWAP proximity — whether price is near the session VWAP (within 0.15% of current price). 3. Key level proximity — whether price is near a relevant prior-session level (PDH, PDL, PMH, PML). 4. POC proximity — whether price is near the intraday volume Point of Control. 5. VWAP trend bias — whether price is on the "right side" of VWAP for the signal direction (buy below VWAP, sell above). Each matching factor adds 1 to the score. The signal label displays the count (e.g., "Buy 4/5") so traders can see at a glance how many factors aligned. A configurable cooldown (default: 12 bars) prevents repeated signals in the same area. An additional filter requires bearish candle close for sells and bullish candle close for buys. Note: The confluence score is simply a count of how many factors happen to align at the moment of zone contact. A higher count does not predict or guarantee a successful trade. It is a filtering tool, not a performance metric. SESSION LEVELS & KEY LEVELS The indicator tracks and displays levels from multiple sessions: - London session high/low — plotted as live-updating steplines during the session, then held after session close. - Asia session high/low — same behavior, off by default. - Key levels drawn as dashed horizontal lines: Previous Day High/Low/Close (PDH/PDL/PDC), Pre-Market High/Low (PMH/PML), Previous Week High/Low (PWH/PWL), Overnight High/Low (ONH/ONL), and the RTH Opening Print. All are off by default and individually toggleable. Previous day and week values use request.security() with a offset and lookahead_on, which is the standard method to reference the prior completed period without future data leakage. ADDITIONAL TOOLS (all off by default) - VWAP — standard session-anchored VWAP using ohlc4 as source. - POC — intraday volume Point of Control calculated by distributing each bar's volume into a 100-bin histogram across the RTH price range, then finding the bin with the highest accumulated volume. Resets daily. - Fair Value Gaps — bullish and bearish imbalances detected when a gap exists between bar 's low and bar 's high (or vice versa), filtered by a minimum percentage size (default: 0.15%). FVGs auto-expire after 40 bars. Maximum 6 active FVGs. - Opening Range — plots the RTH opening range as a box (15 or 30 minute, configurable). Extends through the session. WHY THIS COMBINATION Most zone-based approaches generate signals every time price touches a zone, regardless of context. This indicator addresses that by requiring zone contact AND directional volume AND candle confirmation before printing anything, then layering additional context (VWAP, key levels, POC) as a visible confluence count. The result is fewer signals that occur only at zones where multiple independent references happen to converge. The session levels (London, Asia, pre-market, overnight) are included because futures often react at session boundaries, and having them as toggleable overlays avoids needing separate indicators cluttering the chart. HOW TO USE 1. Apply to a 1-15 minute intraday futures chart (defaults tuned for NQ on 5 min). 2. Adjust "Min Zone Size" for your instrument (NQ: 20-50 pts, ES: 5-15 pts). 3. Watch for Buy/Sell labels at zone touches. Higher confluence counts (4/5, 5/5) mean more factors aligned — use your own judgment on whether the context supports a trade. 4. Toggle key levels on/off depending on which session references matter to your trading approach. 5. All features are independently toggleable. Start with zones + signals, then add levels as needed. DEFAULT SETTINGS - Zones: ON, min size 20 pts, max age 500 bars - Signals: ON, cooldown 12 bars, volume delta confirmation ON - London session levels: ON - All other levels and tools: OFF LIMITATIONS - Volume delta is estimated from bar close position within range — it is not true order flow data. - POC uses a 100-bin histogram which is an approximation, not tick-level volume profile. - Confluence scoring counts factor alignment but does not predict outcomes. Past confluence patterns do not guarantee future results. - Zone detection has a 3-bar lag due to pivot confirmation. - Designed for futures instruments. Adjust zone size settings for other markets. Pine Script® indicatorby blu3manx51
A++ Signals [Scalping-Algo]This indicator is a high-probability trend-following system designed for scalping and intraday trading (3M, 5M, 15M). It combines volatility-based signals with institutional trend filters to maintain a high winrate. 1. How to Enter a Trade Long Entry: Wait for the green "Long" bubble. Price must be above both the Gold VWAP and the Blue EMA 13. Short Entry: Wait for the red "Short" bubble. Price must be below both the Gold VWAP and the Blue EMA 13. Trend Filter: Ensure the price is trading in the direction of the EMA 200 (thin gray line) for the highest probability of success. 2. Managing the Trade (TP/SL) Once a signal appears, the indicator draws two dynamic boxes: Green Zone (TP): Your target area. The trade is a "Win" when price hits the top of this box (marked by a purple "Long TP" bubble). Red Zone (SL): Your protection area. The trade is a "Loss" if price hits the bottom of this box (marked by a red "Long SL" bubble). The "76% Winrate" Secret: The indicator uses Asymmetric Risk. By setting a smaller Take Profit (1.0) and a wider Stop Loss (3.0), you allow the trade to "breathe" through market noise, significantly increasing the chance of hitting your profit target. 3. Using the Dashboard Win %: Displays the real-time accuracy of the strategy on your current chart. Multiplier/Period: Shows your active sensitivity settings. If the winrate drops below 70%, try increasing the Multiplier slightly to filter out more noise. 4. Pro Tips for Maximum Success Trade the "Session": The best signals occur during the London/New York crossover (active by default in the settings). Volume is King: Only take signals where the volume is high (the indicator filters this automatically, but always look for "strong" candles). Avoid Flat Markets: If the Gold VWAP and Blue EMA 13 are crossing each other frequently (moving sideways), stay out of the market until a clear trend emerges.Pine Script® indicatorby A1TradingHub92
Hidden Markov Model: Baum-Welch [UAlgo]Hidden Markov Model: Baum-Welch is a regime detection and reversal signaling indicator that applies a 3 state Hidden Markov Model to normalized log returns and continuously adapts its parameters using an online Baum Welch expectation maximization routine. The script is designed to classify the market into three latent regimes, then express that classification as real time probabilities for Bull, Range, and Bear conditions. The indicator runs in its own pane ( overlay=false ) and outputs: Probability curves for the three regimes A dominant regime score scaled to 0 to 1 A regime strip visualization for quick bias reading Adaptive background coloring based on the dominant regime and confidence Optional regime shift markers Optional buy and sell reversal markers driven by strict multi condition logic The core idea is that price behavior can be modeled as transitions between hidden states that each have their own return distribution. The script fits a Gaussian emission model for each state, estimates state transition probabilities, and updates the posterior probability of each state on every bar. It retrains the full model at fixed intervals, while using a faster one step forward update between retrains for efficiency. This implementation is not a simple threshold oscillator. It is a full mini HMM engine built in Pine with: Scaled forward and backward algorithms Expectation step producing gamma and xi posteriors Maximization step updating initial distribution, transition matrix, state means, and state variances Safeguards such as variance floors and transition floors to maintain numerical stability The output is a regime aware probability system that can be used for bias, context, and reversal confirmation rather than simple entry signals. Educational tool only. Not financial advice. 🔹 Features 🔸 1) Three State Hidden Markov Model Regime Engine The model uses three hidden states and continuously estimates the probability of being in each state: Bull regime Range regime Bear regime This gives a probabilistic regime map rather than a single hard classification. 🔸 2) Baum Welch Training with Scheduled Retraining The script retrains its parameters using an EM routine at a user defined interval in bars. Each retrain runs a configurable number of EM iterations. Between retrains, the indicator performs a one step forward Bayesian update of the posterior state probabilities. This structure balances adaptability with performance. 🔸 3) Normalized Log Return Observations The observation series is a z score normalized log return: Log returns convert price changes into additive units An EMA and rolling standard deviation normalize the series to stabilize the HMM fit This helps the HMM learn regimes based on relative return behavior rather than raw price scale. 🔸 4) Automatic Bull, Range, and Bear Role Assignment The model learns state means. The script then assigns roles by ranking those learned means: The state with the lowest mean becomes the Bear state The state with the highest mean becomes the Bull state The remaining state is treated as Range This keeps regime labeling consistent even as the internal state ordering shifts during training. 🔸 5) Probabilities and Dominant Regime Visualization The script plots: Bull probability curve Range probability curve Bear probability curve It also plots an area for the dominant probability and a regime strip that makes it easy to see the dominant regime quickly without reading the full curves. 🔸 6) Regime Score Line (Bull minus Bear) A continuous score is calculated as Bull probability minus Bear probability, then scaled to a 0 to 1 range. This score becomes the main regime momentum signal used for rebound and reversal logic. 🔸 7) Adaptive Background Coloring by Regime and Confidence The pane background color changes based on the dominant regime. Transparency adapts according to confidence, so strong regime certainty produces a more visible background while low certainty remains subtle. 🔸 8) Strict Signal Filters for Bias and Reversal The indicator provides bias filters: Bull bias when Bull probability and confidence exceed thresholds and the dominant regime is Bull Bear bias when Bear probability and confidence exceed thresholds and the dominant regime is Bear It also provides reversal style buy and sell signals based on a multi condition framework described in the calculations section. 🔸 9) Reversal Logic Combining Extremes, Rebounds, and Transition Edge Reversal signals are not generated by a single crossover. The script requires: An extreme score pivot An extreme regime probability at that pivot A rebound trigger through predefined rebound levels A minimum probability and confidence filter A transition asymmetry and edge condition that favors switching toward the target regime A momentum condition requiring Bull probability rising and Bear probability falling for buys, and the inverse for sells A time window limit so reversals must occur within a limited number of bars after the extreme This creates a high selectivity reversal engine. 🔸 10) Transition Matrix Insight and Switch Edge Metrics The script computes predicted transition probabilities toward Bull and Bear using the current posterior and the transition matrix. It also measures transition asymmetry between Bull to Bear and Bear to Bull and uses these values as part of reversal confirmation. This adds structural information that classic oscillators do not capture. 🔸 11) Anti Duplicate Reversal Signals Once a pivot extreme has been used to generate a reversal signal, it is marked as consumed so the same pivot cannot repeatedly trigger additional buy or sell signals. This helps avoid signal repetition. 🔸 12) Full Informational Label Output A live info label prints: Current regime Current signal text Confidence Bull, Range, Bear probabilities Log likelihood Key trigger thresholds Reversal settings and edge settings This provides transparency into what the model is currently seeing and why signals are or are not appearing. 🔹 Calculations 1) Observation Series: Normalized Log Returns The script uses log returns: logRet = math.log(close / nz(close , close)) Then normalizes them with an EMA mean and rolling standard deviation: retMean = nz(ta.ema(logRet, normLength), 0.0) retStd = math.max(nz(ta.stdev(logRet, normLength), 0.0), 1e-6) obs = (logRet - retMean) / retStd This creates an observation series with more stable scale properties across time. 2) Rolling Observation Window The HMM is trained on a rolling window of length windowLen . Only the most recent processRecentBars are processed to control load: startBar = last_bar_index - processRecentBars activeRange = bar_index >= (startBar < 0 ? 0 : startBar) If active, the observation is appended and the oldest one is removed: if array.size(obsWindow) < windowLen array.push(obsWindow, obs) else array.shift(obsWindow) array.push(obsWindow, obs) The model is ready only when the window is full. 3) Model Initialization The script initializes a 3 state model with: Uniform initial state probabilities A transition matrix seeded with high persistence and equal small jump probabilities State means initialized around zero with a configured separation State variances initialized to a configured starting value Key logic: Stay probability equals initialPersistence Jump probability equals the remaining probability split across other states This gives the HMM a stable starting point before training. 4) Emission Model: Gaussian per State Each state emits observations using a Gaussian density: math.exp(-0.5 * d * d / varS) / math.sqrt(TWO_PI * varS) Variance uses a floor: float varS = math.max(array.get(this.vr, s), varMin) This prevents variance collapse and numeric instability. 5) Forward Algorithm with Scaling The script computes the forward probabilities alpha and applies scaling coefficients c to prevent underflow. It then recovers log likelihood from the scaling coefficients: this.logLik := -sum(log(c )) This is essential because HMM sequences quickly underflow without scaling. 6) Backward Algorithm with Scaling The backward probabilities beta are computed using the scaling values from the forward pass, ensuring alpha and beta remain numerically stable across the entire window. 7) Expectation Step: Gamma and Xi Gamma represents posterior probability of being in state i at time t . Xi represents posterior probability of transitioning from i to j between t and t+1 . Xi is normalized per time step: xij = xi_raw / denom Gamma is computed as the sum of xi across outgoing transitions for each state: gamma(t, i) = sum_j xi(t, i, j) 8) Maximization Step: Updating Parameters Initial probabilities update from gamma at time 0: pi = gamma(0, i) Transition probabilities update from xi sums divided by gamma sums, with a transition floor and row normalization: Each transition is clamped to transitionFloor Each row is normalized to sum to 1 Means update as weighted averages of observations using gamma weights. Variances update as weighted squared deviation sums with a variance floor. 9) Retraining Schedule and Online Updates The model retrains when: It is not initialized yet Or the bar index matches the retrain interval shouldRetrain = ready and (not modelInitialized or bar_index % retrainEveryBars == 0) On retrain, Baum Welch is run for emIterations . Between retrains, the script performs a one step forward update of the posterior: hmm.forwardOne(posterior, obs, varianceFloor, posteriorTmp) This provides continuous posterior updates without full retraining on every bar. 10) Role Mapping to Bull, Range, Bear The script assigns which internal state corresponds to Bear and Bull by looking at the learned means: Bear state is the state with the minimum mean Bull state is the state with the maximum mean Range is the remaining state index This mapping updates dynamically as the model learns. 11) Regime Score and Confidence The regime score is: score = pBull - pBear It is then scaled to 0 to 1: score01 = 0.5 + 0.5 * score Confidence is: confidence = max(pBull, pRange, pBear) This confidence drives background alpha and signal gating. 12) Probability Filters for Bias Bull filter requires: Bull probability above bullProbTrigger Confidence above signalConfidenceMin Bear filter requires similar conditions for Bear probability. Bias validity adds the requirement that the dominant regime role matches the direction: Bull bias requires dominantRole equals 1 Bear bias requires dominantRole equals minus 1 13) Extreme Pivot Logic for Reversal Candidates The script looks for pivots in the score line: ta.pivotlow(score01, pivotStrength, 1) ta.pivothigh(score01, pivotStrength, 1) It stores the most recent pivot low and pivot high along with the associated Bull or Bear probability at the pivot bar. A low extreme is valid if: Score at pivot is below dipScoreLevel Bear probability at pivot exceeds extremeProbMin A high extreme is valid if: Score at pivot is above topScoreLevel Bull probability at pivot exceeds extremeProbMin 14) Rebound Triggers After an extreme, the script waits for rebound triggers: Up rebound: ta.crossover(score01, reboundUpLevel) Down rebound: ta.crossunder(score01, reboundDownLevel) Rebound must occur within the reversal window bars from the extreme pivot. 15) Transition Edge and Asymmetry Logic The script computes predicted probabilities of switching toward Bull or Bear using the transition matrix and current posterior. It also computes transition asymmetry between the Bull to Bear and Bear to Bull transitions. A bullish switch condition requires: Switch edge greater than hmmEdgeMin Transition asymmetry favoring Bear to Bull at or above transitionAsymMin Bull probability greater than Bear probability A bearish switch condition uses the mirrored logic. This adds a model based confirmation that a regime switch is plausible, not only that the score bounced. 16) Momentum Confirmation Bull momentum requires: Bull probability rising Bear probability falling Bear momentum requires the opposite. These conditions prevent signals when probabilities are flat or conflicting. 17) Final Reversal Signal Construction Buy reversal requires: Valid low extreme Not consumed Inside reversal window Rebound up Bull probability and confidence filter Bullish HMM switch condition Bull momentum Sell reversal requires the mirrored set of conditions. The sell is suppressed if a buy is simultaneously true so conflicting signals do not print on the same bar. 18) Visualization Output The script plots: Probability curves for each regime A dominant probability area A thick score line colored by regime A regime strip column plot Fills between Bull and Bear curves and between rebound levels Adaptive background Optional markers for regime shifts Reversal markers as glow plus label style plots The info label consolidates the most important current state and threshold data for transparency.Pine Script® indicatorby UAlgo1143
Adaptive Momentum Classifier [WillyAlgoTrader]📡 Adaptive Momentum Classifier is an overlay indicator that evaluates four independent market dimensions — momentum, trend, volatility position, and money flow — ranks each one against its own historical distribution using percentile scoring, and combines them into a single composite score (0–100%) that drives signal generation. Signals fire only when the composite score crosses a threshold with minimum feature agreement across axes, passes through five independent filters, and is confirmed on bar close. The core idea: instead of using one indicator to generate signals, this tool treats four market dimensions as independent measurement axes, normalizes each to a uniform 0–1 scale via percentile ranking, weights and combines them into a consensus score, and then requires both the score threshold AND a minimum number of agreeing axes before allowing a signal. This multi-axis + agreement gate architecture filters out situations where a single strong reading (e.g., RSI spike) would trigger a false signal while the other dimensions disagree. 🧩 WHY THESE COMPONENTS WORK TOGETHER Traditional signal generators face a fundamental problem: a single indicator measures one market dimension. RSI measures momentum speed but is blind to trend direction. MACD measures trend but ignores where price sits within its volatility envelope. Volume-based indicators measure flow but know nothing about price momentum. Using any one of these alone produces signals that ignore critical market context. Simply combining indicators with AND/OR logic (e.g., "buy when RSI > 50 AND MACD > 0") doesn't solve the deeper problem: the indicators are on different scales, have different distributions, and their raw values aren't comparable. RSI = 55 and MACD histogram = 0.002 both "lean bullish" but you can't meaningfully average them. This indicator solves both problems: Step 1 — Orthogonal axis design: Each axis measures a genuinely different market dimension. Momentum (how fast), Trend (which direction), Volatility Position (where within the range), Flow (where is money going). They are deliberately chosen to be as independent as possible. Step 2 — Percentile normalization: Each axis's raw value is ranked against its own recent history. "Is this RSI-ROC blend reading higher than 75% of the last 89 readings?" This converts every axis to a uniform 0–1 scale where 0.5 = median. Now all four axes are directly comparable and combinable. Step 3 — Weighted consensus: The four normalized scores are combined with weights (Trend 1.2×, Momentum 1.0×, Flow 1.0×, Volatility 0.8×) into a single composite score. The weighting reflects that trend conviction is slightly more predictive than raw momentum. Step 4 — Agreement gate: Even with a high composite score, the signal is blocked unless at least half the axes independently agree (each reading > 0.6 for bullish or < 0.4 for bearish). This prevents one extreme axis from dominating the composite and producing a false consensus. Step 5 — Filter stack: Five independent filters (trend alignment, volatility regime, volume, score acceleration, HTF bias) provide additional context gates. The signal only fires when all enabled filters pass simultaneously. No single component is useful alone. Percentile ranking without multiple axes just normalizes one indicator. Multiple axes without percentile ranking can't be meaningfully combined. A combined score without the agreement gate can be dominated by one outlier. And all of this without filters would still fire in unsuitable market conditions. The full pipeline is required. 🔍 WHAT MAKES IT ORIGINAL 1️⃣ Four-axis percentile scoring engine. Each axis is built from two sub-components blended together, then converted to a 0–1 percentile rank against the scoring lookback window (default 89 bars). The percentile function counts what fraction of historical values are below the current value — producing a uniform distribution with no dead zones (unlike z-score normalization which compresses values near the mean). Axis 1 — Momentum (weight 1.0): Sub-components: RSI(13) centered at 50, and ROC(9). Each is percentile-ranked independently, then blended 60% RSI + 40% ROC. RSI provides stable momentum reading, ROC provides faster reaction to price acceleration. The blend captures both speed (ROC) and sustained momentum (RSI) in a single axis. Axis 2 — Trend (weight 1.2): Sub-components: MACD histogram (12/26/9), and EMA slope normalized by ATR. EMA slope = (EMA − EMA ) / (ATR × 5), making it scale-independent across instruments. Each percentile-ranked, blended 60% MACD + 40% slope. MACD histogram captures momentum of the trend itself (acceleration), while EMA slope captures sustained directional movement. This axis receives the highest weight (1.2) because directional conviction is the strongest single predictor of continuation. Axis 3 — Volatility Position (weight 0.8): Sub-components: Bollinger %B (21-period, showing where price sits within the band envelope, 0 = lower band, 1 = upper band), and ATR expansion ratio (current ATR / SMA of ATR over lookback). Combined as: (BB%B − 0.5) × min(ATR_ratio, 2.5), then percentile-ranked. This creates a directional volatility signal: price at upper band during volatility expansion scores high (strong bullish breakout), price at upper band during contraction scores lower (potential mean-reversion). The ATR ratio is capped at 2.5 to prevent extreme volatility spikes from distorting the axis. Lower weight (0.8) reflects that volatility position is a confirming factor, not a primary driver. Axis 4 — Flow (weight 1.0, auto-disabled without volume): Sub-components: MFI(13) centered at 50, and OBV slope (smoothed OBV EMA(21), slope = (OBV_EMA − OBV_EMA ) / |OBV_EMA|). Each percentile-ranked, blended 50/50. MFI combines price and volume into a single money flow reading, OBV slope shows whether accumulation is accelerating or decelerating. On instruments without volume data (forex), this axis returns 0.5 (neutral) and its weight drops to 0, so the composite score is calculated from three axes only. 2️⃣ Composite score with symmetric thresholds. The four axes are combined: composite = (1.0 × momentum + 1.2 × trend + 0.8 × volatility_position + 1.0 × flow) / total_weight. Result is 0–1 where 0 = maximum bearish consensus, 0.5 = neutral, 1 = maximum bullish consensus. A buy signal fires when the composite crosses above the threshold (default 0.618). A sell signal fires when it crosses below (1 − threshold = 0.382). This creates symmetric entry conditions: the same strength of consensus is required for both directions. 3️⃣ Feature agreement gate. Independent of the composite score, each axis is evaluated for directional agreement: > 0.6 = bullish vote, < 0.4 = bearish vote, 0.4–0.6 = abstain. The agreement ratio = max(bull_votes, bear_votes) / active_axes. Signals require agreement ≥ 0.5 (at least half the axes independently confirming the same direction). This prevents false signals from composite score averaging: if momentum = 0.95 but trend = 0.3 and volatility = 0.4, the composite might cross the threshold but only 1/4 axes agree — signal is blocked. 4️⃣ Score acceleration filter. The rate of change of the composite score: acceleration = score − score . Signals require |acceleration| ≥ Min Score Acceleration (default 0.02). This filters out slow-drift crossovers where the score gradually creeps past the threshold without any decisive move — these typically represent noise, not genuine momentum shifts. Only fast, decisive threshold crosses produce signals. 5️⃣ Five-filter stack. Each filter is independently toggleable: — Trend Alignment (default On): price must be above EMA(50) for longs, below for shorts — prevents counter-trend entries — Volatility Regime (default On): ATR ratio must be between 0.4 and 3.0 — suppresses signals during dead markets (ATR < 40% of average) and crash conditions (ATR > 300% of average) — Volume Confirmation (default On): volume must exceed 80% of its 20-period SMA — confirms market participation. Auto-disabled on instruments without volume data — Score Acceleration (default 0.02): described above. Set to 0 to disable — Higher TF Bias (default disabled): when a timeframe is selected, price must be above/below EMA(21) on the higher timeframe for longs/shorts. Uses + lookahead_on for non-repainting HTF data 6️⃣ Direction lock — no consecutive same-direction signals. After a buy signal fires, the next signal can only be a sell (and vice versa). This prevents signal clustering where multiple buy signals fire in sequence during a strong trend — you get one entry per direction until the trend reverses. 7️⃣ Four sensitivity presets. Each preset overrides two parameters simultaneously: — Conservative : threshold 0.80, lookback 150 — requires very strong consensus over a long history, fewer but higher-conviction signals — Default : uses your manual settings (threshold 0.618, lookback 89) — Aggressive : threshold 0.60, lookback 60 — lower bar for signals, shorter history, faster adaptation — Scalping : threshold 0.55, lookback 40 — minimum consensus required, very short history, designed for 1–5M charts The lookback affects all four axes simultaneously (percentile ranking window), so the entire scoring engine adapts as a unit. 8️⃣ Dynamic trend band. A visual EMA ± 0.5× ATR band colored by the composite score: green (score > 55%), red (< 45%), yellow (neutral). This provides an at-a-glance trend context without needing to read the dashboard. The band width adapts to volatility automatically. 9️⃣ Signal strength classification. Each signal is classified based on the composite score at the moment of firing: Strong (score ≥ 85%), Medium (≥ 75%), Weak (< 75%). Displayed in the dashboard and available in alert messages. This helps you size positions or filter setups based on conviction level. ⚙️ HOW IT WORKS — CALCULATION FLOW Step 1 — Raw feature calculation: RSI(13), ROC(9), MACD(12/26/9) histogram, EMA slope (normalized by ATR), BB%B(21), ATR ratio, MFI(13), OBV slope — eight raw values computed from price and volume. Step 2 — Percentile ranking: Each raw value is ranked against its own history over the scoring lookback (default 89 bars). The pctRank function iterates through the lookback window and counts what fraction of past values are below the current value. Result: 0.0 (lower than all history) to 1.0 (higher than all history). This normalization is performed for each of the eight sub-components independently. Step 3 — Axis blending: Each pair of sub-components is blended into one axis score: momentum = 0.6 × pctRSI + 0.4 × pctROC, trend = 0.6 × pctMACD + 0.4 × pctSlope, volatility = pctVolPosition (single combined raw), flow = 0.5 × pctMFI + 0.5 × pctOBV. Step 4 — Weighted composite: composite = (1.0 × momentum + 1.2 × trend + 0.8 × volatility + 1.0 × flow) / total_weight. On instruments without volume: flow weight = 0, total_weight = 3.0 instead of 4.0. Step 5 — Threshold crossing: Buy triggers when composite crosses above the threshold (default 0.618) from below. Sell triggers when composite crosses below (1 − 0.618 = 0.382) from above. Both require barstate.isconfirmed. Step 6 — Agreement check: Each axis is independently classified as bullish (> 0.6), bearish (< 0.4), or neutral. At least 50% of active axes must agree with the signal direction. Step 7 — Filter stack: All five enabled filters must pass. Any failure blocks the signal. Step 8 — Direction lock: Signal must be opposite to the last confirmed signal. Step 9 — Emission: Buy (▲) or Sell (▼) label placed on the confirmed bar. 📖 HOW TO USE 🎯 Quick start: 1. Add the indicator to your chart 2. Select a sensitivity preset matching your style (or use Default) 3. The trend band immediately shows the current momentum bias (green/red/yellow) 4. Wait for a ▲ (buy) or ▼ (sell) label — check the dashboard for score and strength 5. Use the agreement ratio (e.g., 3/4) to confirm multi-axis consensus 👁️ Reading the chart: — 🟢 Green trend band = bullish momentum (score > 55%) — 🟡 Yellow trend band = neutral / transition zone — 🔴 Red trend band = bearish momentum (score < 45%) — 🟢 ▲ label below bar = confirmed buy signal — 🔴 ▼ label above bar = confirmed sell signal — Band width = current volatility (wider = more volatile) 📊 Dashboard fields: — Trend: current composite direction (Bullish / Bearish / Neutral) — Last Signal: most recent signal with bars elapsed — Strength: signal quality (Strong / Medium / Weak) — Score: current composite as percentage — Agreement: how many axes confirm (e.g., 3/4) — Volatility: ATR regime (High / Normal / Low) — TF and version 🔧 Tuning guide: — Too many signals: increase threshold (0.70–0.85), enable more filters, use Conservative preset — Too few signals: decrease threshold (0.55–0.60), reduce lookback (50–70), use Aggressive preset — Signals too late: shorten RSI/ROC/MACD lengths, reduce lookback — Too many false signals in ranging markets: enable ADX-aware Volatility Regime filter, increase Min Score Acceleration to 0.03–0.05 — Scalping 1–5M: use Scalping preset (threshold 0.55, lookback 40), lower filter aggressiveness — Swing 4H–1D: use Conservative preset (threshold 0.80, lookback 150), enable HTF bias filter ⚙️ KEY SETTINGS REFERENCE ⚙️ Main: — Sensitivity Preset (default Default): Conservative / Default / Aggressive / Scalping — Scoring Lookback (default 89): percentile ranking window — higher = more stable, lower = faster adaptation — Signal Threshold (default 0.618): minimum composite score for buy signals (sell = 1 − threshold) 📊 Feature Engine: — RSI Length (default 13) / ROC Length (default 9): momentum axis sub-components — MACD Fast/Slow/Signal (default 12/26/9): trend axis MACD — Bollinger Length (default 21): volatility position axis — MFI Length (default 13) / OBV Smooth (default 21): flow axis 🔍 Filters: — Trend Alignment (default On): EMA(34) trend direction gate — Volatility Regime (default On): ATR ratio 0.4–3.0 range gate — Volume Confirmation (default On): volume > 80% of 20-SMA — Min Score Acceleration (default 0.02): minimum speed of score change — Higher TF Bias (default Off): optional HTF EMA(21) alignment 🎨 Visual: — Trend band (EMA ± 0.5× ATR, scored coloring) — Background tint / Dynamic bar coloring (optional) — Auto / Dark / Light theme 🔔 Alerts — 🟢 BUY — ticker, price, timeframe, composite score — 🔴 SELL — same fields Both support plain text and JSON webhook format. Bar-close confirmed, direction-locked (no consecutive same-direction alerts). ⚠️ IMPORTANT NOTES — 🚫 No repainting. All signals require barstate.isconfirmed. HTF bias uses + lookahead_on. A warmup period (max of lookback, MACD slow period, and trend EMA length, minimum 50 bars) prevents signals during insufficient data. — 📐 The composite score is not a probability . A score of 80% means four market dimensions, percentile-ranked against recent history, strongly agree on bullish conditions. It measures consensus quality, not prediction accuracy. — ⚖️ Percentile ranking is relative to the lookback window . A score of 0.9 means "higher than 90% of the last N bars" — it does not mean the same thing on different instruments or timeframes. Each chart creates its own distribution. — 📊 The Flow axis (MFI + OBV) auto-disables on instruments without volume data (many forex pairs). The composite then runs on three axes with adjusted total weight. Signal quality is slightly lower without flow data but the other three axes remain fully functional. — 🔒 Direction lock means you get one signal per trend leg . After a buy, only a sell can fire next. This prevents clustering but means you won't get "add to position" signals — the tool provides one entry per direction. — 🔄 The agreement gate requires ≥ 50% of axes to independently confirm. On 4-axis instruments, this means ≥ 2. On 3-axis (no volume), ≥ 2. This is a deliberately moderate threshold — raising it to 75%+ would make signals extremely rare. — 🛠️ This is a signal and analysis tool , not an automated trading bot. It classifies momentum consensus and generates signals — trade decisions remain yours. — 🌐 Works on all markets and timeframes. Volume-dependent features auto-adapt to available data.Pine Script® indicatorby WillyAlgoTrader22227
TX Smooth ReversalOverview: The CDSA Smooth Reversal is a quantitative trading tool designed to identify high-probability price exhaustion and reversal points. By combining Multi-Timeframe (MTF) alignment with a sophisticated Band Engine based on KAMA (Kaufman Adaptive Moving Average), this indicator filters out market noise and focuses on institutional-grade reversal zones. Key Features: KAMA-Adaptive Bands: Unlike standard Bollinger Bands, our bands use an Efficiency Ratio (ER) to adapt to market volatility, expanding during trends and contracting during consolidations. Probabilistic Reversal Scoring: A proprietary logic that calculates the likelihood of a reversal based on price deviation, volume characteristics, and trend exhaustion. MTF Fusion Gate: Ensures that signals only appear when multiple timeframes (Micro, Operational, and Regime) are in alignment, significantly reducing false signals. Heikin Ashi Integration: Optional HA logic processing to smooth out erratic price action for long-term trend analysis. Live Dashboard: Real-time monitoring of Bull/Bear reversal probabilities and MTF status directly on your chart. How to Trade: Bullish Reversal (BUY): Look for the "BUY" label when the Bull Probability is high (>75%) and price touches the lower outer bands. Bearish Reversal (SELL): Look for the "SELL" label when the Bear Probability is high (>75%) and price reaches the upper outer bands. MTF Confirmation: Ensure the "MTF Alignment" on the dashboard matches your trade direction for the highest win-rate setups. Settings: Algorithm Mode: Choose between Conservative (fewer, higher quality signals), Normal, or Aggressive. Alignment Threshold: Adjust how strictly the different timeframes must agree before a signal is triggered.Pine Script® indicatorby Tonzlnxz97
Adaptive Volatility Trend [WillyAlgoTrader]Adaptive Volatility Trend (AVT) is a trend-following overlay indicator that dynamically adjusts its sensitivity to market conditions using the Kaufman Efficiency Ratio and ATR-based volatility bands. Unlike static moving averages or fixed-width channels, AVT continuously adapts: it accelerates in strong directional moves and slows down during choppy, range-bound price action — reducing whipsaws where most trend indicators fail. 🔍 WHAT MAKES IT ORIGINAL The core innovation is a self-tuning mechanism built on three adaptive layers: 1. Kaufman Efficiency Ratio (ER) as an adaptive engine. The ER measures how "efficient" price movement is — the ratio of net directional change to total path traveled over N bars. An ER near 1.0 means price moved in a clean straight line (strong trend); near 0.0 means it went sideways with lots of noise. AVT uses the smoothed ER to dynamically blend between a fast constant (2-period EMA speed) and a slow constant (30-period EMA speed), producing an Adaptive Moving Average that responds quickly in trends and becomes sluggish in chop. 2. ER-scaled ATR bands. The volatility channel doesn't just use raw ATR × multiplier. It incorporates the Efficiency Ratio to narrow the bands during trending conditions (where ER is high) and widen them during ranging markets (where ER is low). This means the channel contracts when the trend is clean — keeping signals tight — and expands when price is noisy — filtering out false breakouts. 3. Composite Signal Scoring System (0–100). Every signal receives a quality score based on three weighted components: — Trend strength (0–40 pts): derived from the Efficiency Ratio magnitude — Momentum (0–30 pts): RSI distance from the neutral 50-level in the signal direction — Volume confirmation (0–30 pts): current volume relative to its 20-period average Only signals exceeding the user-defined minimum score threshold are displayed — letting you filter out low-conviction setups. ⚙️ HOW IT WORKS Trend detection: The indicator calculates an Adaptive Moving Average using the Kaufman method. The slope of this line determines trend direction: if the line rises by more than 5% of current ATR, the trend is classified as bullish; if it falls by the same threshold, bearish. A small dead zone (ATR × 0.05) prevents noise from flipping the trend. Signal generation: A BUY signal fires when: — Trend flips from bearish/neutral to bullish (slope turns positive) — Price is above the adaptive line — RSI is not in overbought territory (if RSI filter is enabled) — Volume exceeds its moving average × threshold (if volume filter is enabled; auto-disabled on forex) — Composite score meets the minimum threshold — Bar is confirmed (close-based, no repainting) SELL signals use the mirror logic. Anti-repaint compliance: All signals require barstate.isconfirmed — they only trigger on the close of the bar and never change on historical data. A warmup period (minimum 50 bars or 2× Trend Length) prevents unreliable early signals. Volume filter on forex: The indicator automatically detects instruments with no volume data (common on forex pairs) and bypasses the volume filter for those symbols, so it works seamlessly across asset classes. 📖 HOW TO USE Reading the chart: — Green trend line + upward slope = bullish regime — Red trend line + downward slope = bearish regime — Yellow trend line = neutral / transitioning — ▲ labels below bars = confirmed BUY signal — ▼ labels above bars = confirmed SELL signal — The shaded channel around the trend line shows volatility-adjusted support/resistance zones Quick-start presets: — Conservative (Length 30 / ATR 20 / Mult 2.5): fewer signals, higher reliability — suited for swing trading on 4H–Daily — Default (Length 20 / ATR 14 / Mult 2.0): balanced for most timeframes — Aggressive (Length 12 / ATR 10 / Mult 1.5): more signals — suited for 15min–1H — Scalping (Length 8 / ATR 7 / Mult 1.2): fast response — optimized for 1–5min charts Signal quality: Use the Score value in the dashboard to gauge conviction: — 70–100: strong trend + momentum + volume alignment — 40–69: moderate setup, consider additional confluence — Below threshold: signal filtered out (not shown) Dashboard panel: Displays current trend direction, last signal with its score, Efficiency Ratio %, RSI value, timeframe, and indicator version. Position is adjustable to any corner of the chart. Alerts & automation: Supports both standard TradingView alert messages and JSON webhook format for integration with 3Commas, Alertatron, or custom bots. Alert messages include ticker, price, timeframe, and signal score. ⚙️ KEY SETTINGS REFERENCE — Trend Length (default 21): lookback for adaptive MA — higher = smoother, lower = faster — ATR Length (default 14): period for volatility bands — higher = wider bands — Band Multiplier (default 2.0): ATR multiplier for channel width — higher = fewer false signals — RSI Filter (on by default): blocks buy signals when RSI > 70, sell signals when RSI < 30 — Volume Filter (on by default): requires volume > SMA(20) × 1.2 — auto-disabled on forex — Min Signal Score (default 40): minimum composite score for signal display — Efficiency Smoothing (default 5): EMA smoothing of the Kaufman ER ⚠️ IMPORTANT NOTES — This indicator does not use future data. No lookahead, no repainting. — Past performance shown on any chart does not guarantee future results. — AVT is a tool for identifying trend direction and generating signal candidates — it is not a complete trading system. Always use proper risk management and consider additional confluence before entering trades. — The indicator works best in trending markets. In prolonged sideways conditions, even filtered signals may produce whipsaws — the Efficiency Ratio in the dashboard helps you assess whether the current market is trending enough for signal reliability.Pine Script® indicatorby WillyAlgoTrader22663
US30 3 SoldiersThe best strategy is to wait for it to break the high or the low with three consecutive candles and enter at the close of the third candle, placing the stop loss below the first candle.Pine Script® indicatorby carlosmauriciovalle1118
Gold Breakout Trader⚙️ Gold short-term entries off M1 timeframe every 2 hours every day with SL/TP targets. 📦 2-Hour Breakout Structure: The indicator plots a new set of dynamic zones every two hours, providing a fresh breakout structure based on the most recent price action. This is the default setting and is designed for intraday trading. 🎯 Precision Entry & Exit Levels: A central gray box is plotted, with Buy Stop and Sell Stop lines automatically placed 2 USD away from its borders. This buffer creates a neutral zone and helps filter out noise. 💰 Pre-Defined Profit Targets: Three Take Profit TP zones are plotted for both long and short trades TP1, TP2, TP3. These zones are spaced apart, providing clear targets for managing trades. ⚙️ Fully Customizable Spacing: Every element is adjustable. You can change the buffer between the gray box and stop lines, the gap between the stop lines and the first TP zone, and the gaps between each subsequent TP zone. 🔔 M1 Breakout Alerts: The indicator includes a powerful alerts module that triggers when an M1 candle closes above the Buy Stop level or below the Sell Stop level. This provides real-time notifications for potential trade entries. 🎨 Clean Visuals & Clear Labels: The zones are color-coded teal for buy-side, red/purple for sell-side for instant recognition. The Buy Stop and Sell Stop labels are also colored to match their respective directions, ensuring zero confusion. ⚙️ Trading Strategy & Logic This strategy is designed for precision and requires patience. The core idea is to wait for the market to confirm a breakout of the established 2-hour range before entering a trade. 📌 Entry Logic 1. 🕒 Wait for a New Zone: Allow the indicator to plot a new 2-hour structure. Do not trade old or expired zones. 2. 🔔 Set Your Alerts: In TradingView, create a new alert and select the indicator. For the condition, choose "Any alert() function call" and set it to trigger "Once Per Bar Close". This will notify you the moment a candle closes across a stop level. 3. 👀 Wait for the M1 Close: For a Long Buy Trade, wait for an M1 candle to close above the Buy Stop line. For a Short Sell Trade, wait for an M1 candle to close below the Sell Stop line. 4. ✅ Enter on Confirmation: Once you receive the alert and visually confirm the M1 candle has closed past the level, you can enter the trade. 🛑 Stop Loss SL Placement The stop loss is designed to be tight and objective, providing a clear invalidation of the trade idea. ⬇️ For a Long Trade, the Stop Loss should be placed at the Sell Stop line the level on the opposite side of the gray box. ⬆️ For a Short Trade, the Stop Loss should be placed at the Buy Stop line. 🎯 Take Profit TP Strategy The indicator provides three clear targets. How you use them depends on your trade management style. 🥇 TP1: The first level of resistance/support. This is an ideal target for taking partial profits and moving your stop loss to breakeven. 🥈 TP2 & TP3: Subsequent targets for scaling out of the position or for your final profit target. ⚠️ IMPORTANT NOTICE This indicator and the accompanying strategy are provided for educational purposes only. Trading financial markets involves substantial risk, and past performance is not indicative of future results. The logic described is based on a specific set of rules and does not guarantee profit. Always conduct your own analysis and risk management before entering any trade. The creators are not responsible for any financial losses incurred. Pine Script® indicatorby ProjectSyndicate1616 1 K
Adaptive Buy Sell Signal [AvantCoin] A comprehensive customized indicator for different markets 🔴Before you start🔴: Please note that this tool is designed to assist you in analyzing the market, and NOT to make buy/sell decisions for you. You should combine its data with your own strategies and indicators before making any trading choices ==================== Market-Specific Optimizations Auto-Detection (or Manual Selection) It automatically detects which market you're trading: Forex (EUR/USD, GBP/USD, etc.) Stocks (AAPL, TSLA, etc.) Indices (NAS100, SPX, etc.) Commodities (Gold, Silver, Oil) Crypto (BTC, ETH, etc.) avantcoin.com Forex-Specific Features: ✅ Session Filters: Avoids low-liquidity Asian session ✅ Session backgrounds: Green for London/NY overlap (best trading time) ✅ Tighter ADX threshold (20) - good for Forex trends ✅ Lower volatility filter - skips dead zones ⚙️ Min Confluence: 5 (balanced) ⚙️ Cooldown: 5 bars ⚙️ Volume threshold: 1.3x (Forex has consistent volume) avantcoin.com Stocks-Specific Features: ✅ Market hours filter: Only signals during NYSE hours. ✅ Gap detection: Avoids trading immediately after large gaps up/down ✅ Higher ADX threshold (22) - Stocks trend differently ✅ Stricter volume requirement (1.5x) - Stocks vary more ⚙️ Min Confluence: 6 (higher quality) ⚙️ Cooldown: 3 bars (stocks move faster) Indices (Nasdaq, S&P; 500): ✅ Similar to stocks but slightly more lenient ✅ Lower ADX (18) - Indices are smoother ⚙️ Min Confluence: 5 ⚙️ Cooldown: 4 bars Commodities (Gold, Silver, Oil): ✅ Highest ADX requirement (23) - Only trade strong trends ✅ Higher volatility filter (1.6x) - Commodities can be wild ⚙️ Min Confluence: 6 ⚙️ Cooldown: 6 bars (avoid whipsaws) Crypto: ✅ 24/7 trading (no session restrictions) ✅ Lower ADX (15) - Crypto is always volatile ✅ Much higher volume threshold (2.0x) - Crypto volume spikes ⚙️ Min Confluence: 4 (crypto moves fast) ⚙️ Cooldown: 3 bars 📊 Visual Enhancements: Market Type Badge at top of table (Forex, Stocks, etc.) Session Status: Forex: Shows 🟢 LDN/NY, 🔵 London, 🟠 NY, 🔴 Asian Stocks: Shows 🟢 Open or 🔴 Closed Session Background Colors on chart (optional) Current Settings Display: Shows your Min score, ADX threshold, Cooldown ⚙️ How to Use: For Forex: Enable "Avoid Asian Session" Best signals during London/NY overlap For Stocks: Enable "Trade Stock Hours Only" Watch for gap warnings avantcoin.comPine Script® indicatorby AvantCoin408
EMA Buy/Sell & Smart Zones(5Min TF only)### **Indicator Title:** **EMA Buy/Sell & Smart Zones** --- ### **Description:** **EMA Buy/Sell & Smart Zones** is a specialized intraday trading tool designed to combine trend analysis with precise market structure zones. This script utilizes a custom tracking algorithm to identify the **specific candle** that formed the previous session's high or low, allowing it to plot accurate Supply and Demand zones for the current trading day. This indicator has been rigorously tested on the **Nifty Index** and is optimized for use on the **5-minute timeframe**. ### **Key Features** **1. Smart Session Wick Zones ("True Wick" Logic)** The indicator automatically scans every candle of the previous session to locate the exact price action that formed the day's extremes. * **Smart High Zone:** Identifies the specific candle that made yesterday's High and plots a zone from that High down to that candle's Open or Close (based on body direction). * **Smart Low Zone:** Identifies the specific candle that made yesterday's Low and plots a zone from that Low up to that candle's Open or Close. * **Close Range:** Highlights the High-Low range of the very last candle of the previous session to show the closing sentiment. *All zones automatically stop extending at the end of the current session, ensuring the chart remains clean and historically accurate.* **2. EMA Trend System** The script plots three key Exponential Moving Averages to define market direction: * **EMA 21:** Captures short-term momentum. * **EMA 63:** Defines the medium-term trend. * **EMA 1575:** Establishes the long-term baseline. **3. Buy/Sell Signals** Clear signals are generated on the chart based on specific criteria: * **BUY Signal:** Generated when a green candle closes above the EMA 21 and EMA 63. * **SELL Signal:** Generated when a red candle closes below the EMA 21 and EMA 63. * *Note: The logic includes a filter to alternate signals (Buy -> Sell -> Buy), preventing clutter during choppy markets.* ### **How to Use** * **Recommended Timeframe:** **5 Minutes**. * **Recommended Markets:** Indices (Nifty, Bank Nifty) and high-volume stocks. * **Workflow:** * Use the **Smart Zones** (Red/Green boxes) to identify potential rejection areas or breakout targets. * Use the **Buy/Sell Labels** as confirmation triggers when price is reacting near these zones or trending strongly above/below the EMAs. ### **Settings & Customization** * **Visibility Control:** Toggle each box type (High, Low, Close) and text labels on or off individually. * **Color Customization:** Fully adjustable colors for all EMAs, Zone Backgrounds, Borders, and Text Labels to suit your chart theme. * **Label Size:** Adjust the text size of the zone labels directly from the settings menu. --- **Disclaimer:** This tool is for educational purposes and should be used to assist your analysis. Always manage your risk appropriately.Pine Script® indicatorby chaitu50cUpdated 299
Winners Scalper Pro - Bull/Bear (v1.5)best settings all standart but only change rsi 15 min rsi 8-9 30 min rsi 12-14 Pine Script® indicatorby sabritonyaliUpdated 11480
MidZone Breakout Pro 🚀 MidZone Breakout Pro — Smart Balance Zone Signals 🧭 Equilibrium-Based Market Insight MidZone Breakout Pro identifies key balance levels in the market and highlights directional opportunities when price decisively moves away from equilibrium. 📐 Dynamic Midpoint Zone Mapping Automatically plots a central price balance zone derived from recent market ranges, helping traders visualize fair value and expansion areas. 🎯 Clear Buy & Sell Signals Generates clean bullish and bearish signals when price exits the balance zone with momentum. 🎨 High-Visibility Zone Visualization Color-coded zones, background shading, and bold signal markers provide instant clarity without chart clutter. 🎚 Customizable Sensitivity Adjustable lookback period and zone width allow seamless adaptation across scalping, intraday, and swing trading. 🕰 Non-Repainting Signals All signals are calculated using confirmed price action and remain stable on historical charts. ⚡ Lightweight & Fast Performance Optimized design ensures smooth performance across all instruments and timeframes. 🛠 How to Use (Safe Version) 📉 **Buy Signal**: Appears when price moves strongly above the balance zone 📈 **Sell Signal**: Appears when price moves strongly below the balance zone 🟨 **Neutral Zone**: Indicates consolidation or equilibrium conditions Best used in combination with trend direction, support/resistance, or volume confirmation. ⚠️ Disclaimer: This indicator is for educational and analytical purposes only. It does not provide financial advice. Always apply proper risk management. Pine Script® indicatorby ChandraBose200244945
Volume Anomaly Reversal DetectionVolume Anomaly Reversal Detection (VARD System) 🎯 What This Indicator Does This indicator identifies potential trend reversals by detecting abnormal volume activity that often precedes significant price movements. It combines volume anomaly detection with dynamic trend analysis to generate actionable BUY/SELL signals. 📊 Core Concept & Methodology Volume Anomaly Detection The indicator analyzes directional volume (buying vs selling pressure) from a lower timeframe and calculates Z-scores to identify statistically significant volume spikes. Z-Score Formula: Z = (Current Volume - Average Volume) / Standard Deviation When volume exceeds the threshold (default: 3 standard deviations above mean), it signals unusual market activity - often caused by forced liquidations or capitulation. Dynamic Trend Filter A custom trend-following algorithm based on ATR (Average True Range) bands determines the current market direction: Price above lower band = Uptrend Price below upper band = Downtrend Signal Logic Volume anomaly detected during an existing trend Trend reversal confirmed within the confirmation window Signal generated = BUY or SELL label appears ⚙️ Settings Explained SettingDefaultDescriptionAnalysis Timeframe15minLower timeframe for volume samplingStatistical Lookback200Bars used for Z-score calculationAnomaly Sensitivity3.0Z-score threshold (lower = more signals)Confirmation Window50Max bars between anomaly and trend flipATR Multiplier2.0Trend band widthTrend Period10ATR calculation length 📖 How To Use Entry Signals BUY: Green label appears below bar - consider long positions SELL: Red label appears above bar - consider short positions Volume Anomaly Markers (⬥) Small diamonds indicate detected volume spikes These are early warnings before confirmed signals Useful for anticipating potential reversals Trend Bands Colored zones show active signal direction Stay with the trend until opposite signal appears Best Practices Confirm with price action - Look for support/resistance levels Use appropriate timeframes - Works on all timeframes, but 1H-4H recommended Manage risk - Always use stop losses Avoid ranging markets - Best in trending/volatile conditions ⚠️ Important Notes No indicator is perfect - Use as part of a complete trading strategy Volume data required - Will show warning if volume unavailable Not financial advice - Always do your own research 🔔 Alerts Available BUY Signal Confirmed SELL Signal Confirmed Volume Anomaly (Buy Setup) Volume Anomaly (Sell Setup)Pine Script® indicatorby A1TradingHubUpdated 66 1.3 K
Next Candle PredictorAdvanced TradingView Indicator for Precise Buy and Sell Signals Overview: The Predicta Futures - Next Candle Predictor is a cutting-edge TradingView indicator designed to forecast the next candle's direction in futures and cryptocurrency markets. Leveraging a multi-indicator confluence strategy, this tool provides traders with actionable long and short prediction percentages, enhanced by dynamic ADX-based thresholds and visual projection candles. Ideal for scalping, day trading, or swing trading on platforms like MEXC or Binance futures, it combines Supertrend, MACD, RSI, Stochastic, ADX, and volume analysis to deliver high-probability buy and sell signals while minimizing false positives. Key Features: • Multi-Indicator Confluence Scoring: Integrates Supertrend for trend direction, EMAs (8, 21, 50) for alignment, MACD for momentum crossovers, RSI for overbought/oversold conditions, Stochastic for divergence detection, ADX for trend strength, and volume ratios for confirmation. A customizable confluence score (0-6) ensures signals meet user-defined criteria, reducing whipsaws in volatile markets. • Dynamic Prediction Thresholds: ADX-driven adjustments lower the required prediction percentage (e.g., 60% in strong trends) for "PERFECT TIME" entries, adapting to market conditions like ranging or trending phases. • Visual Analysis Table: A sleek, color-coded dashboard displays progress bars for each indicator, prediction percentages, and status (e.g., "PERFECT TIME" or "WAIT"). Supports long and short analyses with intuitive ASCII bars for quick scans. • Projection Candles: Simulates potential next-candle outcomes with volatility-scaled (via Bollinger Bands width) green long and red short candles, aiding in visualizing price targets. • Buy/Sell Signals and Alerts: Generates labeled "BUY" and "SELL" arrows on EMA crossovers within confirmed trends, with separate alerts for basic signals and high-confluence "PERFECT TIME" opportunities. • Customizable Inputs: Adjust ATR periods, Supertrend factors, minimum confluence scores, and volume ratios to tailor the indicator for stocks, forex, or crypto perpetual futures. How It Works: This TradingView script calculates long and short scores using weighted contributions from key indicators, normalizing them into prediction percentages. A confluence check—factoring trend, EMA alignment, MACD, Stochastic, volume, and ADX—triggers "PERFECT TIME" only when conditions align robustly. For example: • In a downtrend (Supertrend red), with bearish MACD and Stochastic, and sufficient volume, the indicator highlights short opportunities. • Dynamic thresholds ensure aggressive entries in strong trends (ADX >25) and conservative ones in weak trends. • Backtested for reliability, it excels in identifying reversals and continuations, making it a must-have for traders seeking an edge in futures trading strategies. Usage Instructions: 1. Add the indicator to your TradingView chart. (Search: Next Candle Predictor) 2. Customize settings via the inputs panel (e.g., set minConfluence to 5 for stricter signals). 3. Monitor the analysis table for predictions and confluence scores. 4. Act on "BUY/SELL" labels or "PERFECT TIME" alerts, combining with your risk management. 5. Enable projection candles for visual forecasting of the next bar. Compatible with all timeframes, from 1-minute scalping to daily swings. Note: This is not financial advice; always verify signals with additional analysis. Join thousands of traders enhancing their strategies—add it to your charts today and elevate your trading performance! Please rate and review if it boosts your trades! Thank you!Pine Script® indicatorby PredictaFuturesUpdated 3939 5.5 K
Next Candle PredictorAdvanced TradingView Indicator for Precise Buy and Sell Signals Overview: The Predicta Futures - Next Candle Predictor is a cutting-edge TradingView indicator designed to forecast the next candle's direction in futures and cryptocurrency markets. Leveraging a multi-indicator confluence strategy, this tool provides traders with actionable long and short prediction percentages, enhanced by dynamic ADX-based thresholds and visual projection candles. Ideal for scalping, day trading, or swing trading on platforms like MEXC or Binance futures, it combines Supertrend, MACD, RSI, Stochastic, ADX, and volume analysis to deliver high-probability buy and sell signals while minimizing false positives. Key Features: * Multi-Indicator Confluence Scoring: Integrates Supertrend for trend direction, EMAs (8, 21, 50) for alignment, MACD for momentum crossovers, RSI for overbought/oversold conditions, Stochastic for divergence detection, ADX for trend strength, and volume ratios for confirmation. A customizable confluence score (0-6) ensures signals meet user-defined criteria, reducing whipsaws in volatile markets. * Dynamic Prediction Thresholds: ADX-driven adjustments lower the required prediction percentage (e.g., 60% in strong trends) for "PERFECT TIME" entries, adapting to market conditions like ranging or trending phases. * Visual Analysis Table: A sleek, color-coded dashboard displays progress bars for each indicator, prediction percentages, and status (e.g., "PERFECT TIME" or "WAIT"). Supports long and short analyses with intuitive ASCII bars for quick scans. * Projection Candles: Simulates potential next-candle outcomes with volatility-scaled (via Bollinger Bands width) green long and red short candles, aiding in visualizing price targets. Buy/Sell Signals and Alerts: Generates labeled "BUY" and "SELL" arrows on EMA crossovers within confirmed trends, with separate alerts for basic signals and high-confluence "PERFECT TIME" opportunities. * Customizable Inputs: Adjust ATR periods, Supertrend factors, minimum confluence scores, and volume ratios to tailor the indicator for stocks, forex, or crypto perpetual futures. How It Works: This TradingView script calculates long and short scores using weighted contributions from key indicators, normalizing them into prediction percentages. A confluence check—factoring trend, EMA alignment, MACD, Stochastic, volume, and ADX—triggers "PERFECT TIME" only when conditions align robustly. For example: In a downtrend (Supertrend red), with bearish MACD and Stochastic, and sufficient volume, the indicator highlights short opportunities. Dynamic thresholds ensure aggressive entries in strong trends (ADX >25) and conservative ones in weak trends. Backtested for reliability, it excels in identifying reversals and continuations, making it a must-have for traders seeking an edge in futures trading strategies. Usage Instructions: 1. Add the indicator to your TradingView chart. 2. Customize settings via the inputs panel (e.g., set minConfluence to 5 for stricter signals). 3. Monitor the analysis table for predictions and confluence scores. 4. Act on "BUY/SELL" labels or "PERFECT TIME" alerts, combining with your risk management. 5. Enable projection candles for visual forecasting of the next bar. Compatible with all timeframes, from 1-minute scalping to daily swings. Note: This is not financial advice; always verify signals with additional analysis. Rate and review if it boosts your trades! Thank you!Pine Script® indicatorby PredictaFuturesUpdated 543