PRASANNA TRENDLINES AND SUPPORT AND RESISTANCELegit indicator for trendline breakouts and support and resistancePine Script® göstergesimaramlikhitha355 tarafından55
Elite Session Volume Distribution Engine [JOAT]Elite Session Volume Distribution Engine Introduction The Elite Session Volume Distribution Engine is an open-source indicator that combines session-based analysis (London, New York, Asian sessions) with volume distribution profiling, VWAP analysis, volume-weighted momentum indicators, and session high/low tracking. This mashup creates a comprehensive session and volume analysis system designed to identify when institutional volume enters the market during specific trading sessions and how that volume is distributed across price levels. The indicator addresses a critical market reality: different trading sessions have distinct volume characteristics and institutional participation levels. London and New York sessions typically have highest volume and volatility, while Asian session is quieter. By tracking volume distribution, momentum, and key levels within each session, this tool helps traders identify optimal trading windows and understand how institutional volume shapes price action during different global market hours. Chart showing session boxes, volume distribution, and VWAP on 45M timeframe Why This Mashup Exists This indicator combines five analytical frameworks that address different aspects of session-based trading: Session Identification: Tracks London, New York, and Asian trading sessions Volume Distribution: Analyzes how volume is distributed across price levels within sessions VWAP Analysis: Calculates session-specific Volume Weighted Average Price Volume Momentum: Tracks volume trends and climax conditions Session High/Low: Identifies key levels established during each session Each component serves a specific purpose: Session identification shows when institutional traders are active, Volume Distribution reveals where volume concentrates (value areas), VWAP shows institutional average price, Volume Momentum identifies accumulation/distribution phases, and Session High/Low marks key reference levels. Together, they create a complete picture of how institutional volume flows through different trading sessions. The mashup is justified because these components work together in session-based trading: institutions enter during specific sessions (London/NY), create volume distribution patterns at key levels, establish VWAP as benchmark, show momentum through volume trends, and set session highs/lows that become support/resistance. Tracking all simultaneously reveals the complete session-based institutional flow. Core Components Explained 1. Session Identification System The indicator identifies three major trading sessions: // London Session (03:00-12:00 GMT) londonSession = input.session("0300-1200", "London Session") inLondonSession = not na(time(timeframe.period, londonSession)) // New York Session (08:30-17:00 EST) nySession = input.session("0830-1700", "NY Session") inNYSession = not na(time(timeframe.period, nySession)) // Asian Session (00:00-09:00 GMT) asianSession = input.session("0000-0900", "Asian Session") inAsianSession = not na(time(timeframe.period, asianSession)) // Session overlap (London + NY) sessionOverlap = inLondonSession and inNYSession Session characteristics: London Session: High volume, major currency pairs active, trend establishment NY Session: Highest volume, US markets active, major moves occur Asian Session: Lower volume, range-bound often, JPY pairs active London/NY Overlap: Highest volume period, most volatile, best liquidity The indicator can optionally display session boxes as background colors (disabled by default to reduce clutter). 2. Volume Distribution Analysis Volume distribution shows where volume concentrates within price ranges: // Calculate volume at different price levels volumeAtPrice = array.new_float() // For each price level in session range for i = sessionLow to sessionHigh by tickSize volumeAtLevel = sum of volume where price traded at level i array.push(volumeAtPrice, volumeAtLevel) // Identify Point of Control (POC) - price level with most volume poc = price level with maximum volume // Identify Value Area (VA) - price range containing 70% of volume valueAreaHigh = upper bound of 70% volume valueAreaLow = lower bound of 70% volume Volume Distribution concepts: Point of Control (POC): Price level with highest volume - strong support/resistance Value Area High (VAH): Upper bound of 70% volume distribution Value Area Low (VAL): Lower bound of 70% volume distribution High Volume Nodes: Price levels with significant volume - support/resistance zones Low Volume Nodes: Price levels with little volume - price moves through quickly The indicator plots volume distribution as a histogram or profile showing where institutional volume concentrated during the session. 3. Session-Specific VWAP VWAP resets at the start of each session: // Session VWAP calculation var float sessionVWAP = na var float cumulativeTPV = 0.0 // Typical Price * Volume var float cumulativeVol = 0.0 if session_start cumulativeTPV := 0.0 cumulativeVol := 0.0 typicalPrice = (high + low + close) / 3 cumulativeTPV := cumulativeTPV + (typicalPrice * volume) cumulativeVol := cumulativeVol + volume sessionVWAP = cumulativeTPV / cumulativeVol Session VWAP significance: Institutional traders use VWAP as execution benchmark Price above session VWAP = buyers in control during session Price below session VWAP = sellers in control during session VWAP acts as dynamic support/resistance within session Distance from VWAP indicates overextension The indicator plots session VWAP with dynamic coloring based on price position. 4. Volume Momentum Analysis Volume momentum tracks institutional accumulation/distribution: // Volume moving average volumeMA = ta.sma(volume, 20) // Volume classification highVolume = volume > volumeMA * 1.5 veryHighVolume = volume > volumeMA * 2.0 climaxVolume = volume > volumeMA * 3.0 // Volume trend volumeRising = volume > volume and volume > volume volumeFalling = volume < volume and volume < volume // Accumulation/Distribution accumulation = close > open and highVolume and volumeRising distribution = close < open and highVolume and volumeRising // Volume momentum indicator volumeMomentum = (volume - volumeMA) / volumeMA * 100 Volume Momentum signals: Rising Volume + Up Close: Accumulation - bullish Rising Volume + Down Close: Distribution - bearish Climax Volume: Potential exhaustion or strong institutional move Declining Volume: Lack of institutional interest Volume Momentum > 50%: Very strong institutional participation The indicator plots volume bars with color coding based on momentum and direction. 5. Session High/Low Tracking Session highs and lows become important reference levels: // Track current session high/low var float currentSessionHigh = na var float currentSessionLow = na if session_start currentSessionHigh := high currentSessionLow := low else currentSessionHigh := math.max(currentSessionHigh, high) currentSessionLow := math.min(currentSessionLow, low) // Previous session levels prevSessionHigh = currentSessionHigh prevSessionLow = currentSessionLow Session High/Low significance: Current session high/low show intraday range Previous session levels act as support/resistance Breaks above previous session high = bullish continuation Breaks below previous session low = bearish continuation Session range size indicates volatility and institutional activity The indicator plots only CURRENT session high/low (2 lines instead of 6) to keep chart clean. Previous session levels can be toggled on if needed. Example showing session VWAP, volume distribution, and session high/low levels Volume Distribution Dashboard The dashboard (bottom-right position) displays: Current Session: London/NY/Asian/Overlap Session VWAP: Current VWAP value Price vs VWAP: Distance from VWAP in % POC: Point of Control price level Value Area: VAH and VAL levels Volume Status: High/Normal/Low relative to average Volume Momentum: Rising/Falling/Climax Session Range: High - Low distance Accumulation/Distribution: Current phase Visual Elements Session Boxes: Optional background colors for each session (default: OFF) Session VWAP: Dynamic line with color based on price position Session High/Low: Horizontal lines for current session (2 lines only) Volume Bars: Color-coded based on momentum and direction Volume Distribution Profile: Histogram showing volume at price levels POC Line: Horizontal line at Point of Control Value Area: Shaded zone between VAH and VAL Accumulation/Distribution Markers: Labels for strong volume phases Dashboard: Bottom-right table with session and volume metrics Chart demonstrating session VWAP, volume bars, and dashboard How Components Work Together The mashup reveals session-based institutional flow: Session Trading Sequence: 1. Session Opens: New session begins (London/NY/Asian) 2. VWAP Establishes: Session VWAP forms as volume enters 3. Volume Distribution: Institutions create volume at key levels (POC, Value Area) 4. Session Range: High and low established through institutional activity 5. Volume Momentum: Accumulation or distribution phase identified 6. Session Close: Levels become reference for next session Example: London session opens, price trades above session VWAP with rising volume (accumulation). Volume distribution shows POC forming at 1.2500 level. Session high reaches 1.2550. NY session opens, price respects London session high and VWAP, continues higher with climax volume. Dashboard shows strong accumulation with volume momentum +75%. Input Parameters Session Settings: London Session: Time range (default: 0300-1200) NY Session: Time range (default: 0830-1700) Asian Session: Time range (default: 0000-0900) Show Session Boxes: Toggle background colors (default: OFF) Highlight Overlap: Emphasize London/NY overlap (default: enabled) VWAP Settings: Show Session VWAP: Toggle VWAP line (default: enabled) VWAP Reset: Session, Daily, Weekly (default: Session) VWAP Bands: Optional standard deviation bands (default: disabled) Distance Alert: Alert when price moves X% from VWAP (default: 2%) Volume Settings: Volume MA Length: Period for volume average (default: 20) High Volume Threshold: Multiplier for high volume (default: 1.5x) Climax Volume Threshold: Multiplier for climax (default: 3.0x) Show Volume Bars: Color-coded volume bars (default: enabled) Show Distribution Profile: Volume at price histogram (default: enabled) Session Levels: Show Current Session H/L: Toggle current session levels (default: enabled) Show Previous Session H/L: Toggle previous session levels (default: disabled) Show POC: Toggle Point of Control line (default: enabled) Show Value Area: Toggle VAH/VAL zone (default: enabled) Display Options: Show Dashboard: Toggle metrics table (default: enabled) Dashboard Position: Bottom-right, top-right, etc. (default: bottom-right) Color Theme: Choose color scheme Transparency: Adjust visual element transparency How to Use This Indicator Step 1: Identify Active Session Check dashboard to see which session is active. Focus trading during London and NY sessions for highest volume and best opportunities. Step 2: Monitor Session VWAP Use session VWAP as directional bias. Price above VWAP = bullish bias, below = bearish bias. VWAP often acts as support/resistance. Step 3: Check Volume Distribution Identify POC and Value Area. These levels often provide strong support/resistance. Price tends to return to POC (fair value). Step 4: Assess Volume Momentum Check if volume is rising (accumulation/distribution) or falling (lack of interest). Climax volume often marks important turning points. Step 5: Use Session High/Low Current session high/low define intraday range. Breaks above/below these levels signal potential breakout moves. Step 6: Watch for Session Transitions Session opens and closes often bring volatility. London open and NY open are particularly important for major moves. Best Practices Use on 5-minute to 1-hour timeframes for optimal session analysis London/NY overlap (08:30-12:00 EST) offers highest volume and best opportunities Session VWAP acts as magnet - price often returns to it POC from previous session often becomes support/resistance in current session Climax volume at session high/low often marks reversal points Accumulation during Asian session often leads to breakout during London open Value Area breaks signal strong directional moves Previous session high/low become key levels for current session Combine session analysis with other technical tools for best results Indicator Limitations Session times are fixed and may not account for daylight saving time changes Volume distribution requires sufficient data within session to be meaningful VWAP can be less relevant in very volatile or trending markets Session high/low can be broken multiple times in volatile conditions Lower timeframes may show choppy session transitions Volume data quality varies across different markets and brokers Asian session analysis less reliable due to lower volume Requires understanding of session-based trading concepts Visual elements can clutter chart if all options enabled Technical Implementation Built with Pine Script v6 using: Session detection using time() function with session strings Session-specific VWAP calculation with reset logic Volume distribution profiling with POC and Value Area calculation Volume momentum tracking with MA comparison Session high/low tracking with persistent variables Accumulation/distribution detection using volume and price Dynamic dashboard with real-time session metrics Optional session boxes with transparency control Color-coded volume bars based on momentum The code is fully open-source and can be modified to adjust session times, volume thresholds, and visual preferences. Originality Statement This indicator is original in its comprehensive session and volume integration approach. While individual components (session identification, VWAP, volume distribution, volume momentum, session high/low) are established concepts, this mashup is justified because: It combines session-based analysis with volume distribution profiling Session-specific VWAP provides more relevant institutional benchmark than daily VWAP Integration of volume momentum with session context reveals accumulation/distribution phases Simplified visual presentation (current session H/L only) reduces clutter Dashboard presents complex session and volume data clearly Focus on institutional trading sessions (London/NY) aligns with volume reality Each component contributes unique information: Session identification shows when institutions are active, Volume Distribution reveals where they're trading, VWAP shows their average price, Volume Momentum shows their intent, and Session High/Low marks their range. The mashup's value lies in presenting these complementary session-based perspectives simultaneously, allowing traders to understand how institutional volume flows through different global trading sessions. Disclaimer This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors. Session-based analysis and volume distribution are analytical tools that analyze past data. They do not predict future price movement or guarantee that institutional traders are active at identified levels. Market conditions change, and session patterns that worked historically may not work in the future. VWAP and volume distribution levels can fail to provide support/resistance. Session highs and lows can be broken without leading to sustained moves. Volume momentum can change rapidly. Past session behavior does not guarantee future session behavior. Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions. The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool. -Made with passion by officialjackofalltradesPine Script® göstergesiofficialjackofalltrades tarafından210
Rolling Trendline [LuxAlgo]The Rolling Trendline indicator provides a dynamic, self-adjusting trendline that tracks price action using linear regression slope projections and automatically resets when price deviates beyond a specific threshold. 🔶 USAGE The indicator is designed to provide a continuous trend bias without the "lag" often associated with static linear regression lines. It projects a line forward based on a calculated slope and only shifts its trajectory when the market demonstrates a significant change in momentum. The addition of ATR-based volatility zones allows traders to visualize a range of expected price action around the projected trend, providing a buffer that accounts for market volatility at the time of each trend reset. 🔹 Interpreting the Line and Zones Bullish Phase (Green): Indicates an upward-sloping trajectory. The trendline and its surrounding ATR zones will be colored green, suggesting a bullish bias. Bearish Phase (Red): Indicates a downward-sloping trajectory. The trendline and its surrounding ATR zones will be colored red, suggesting a bearish bias. ATR Zones: These shaded areas represent a volatility-adjusted range. As long as price remains within the deviation threshold, the zones follow the trendline's trajectory. Reset Points: Visualized by a small circle and a break in the line, these occur when price moves too far from the projection. At this moment, the indicator re-anchors to the current price and recalculates both the slope and the ATR zone width. 🔶 DETAILS The indicator follows a specific logic flow to maintain its "Rolling" characteristic: 1. Slope Calculation: It calculates the Linear Regression slope over a user-defined lookback period. This slope represents the average rate of change in price. 2. Projection: On every new bar, the indicator projects the next value of the trendline by adding the active slope to the previous trendline value. 3. Deviation Check: The indicator calculates a Standard Deviation threshold. If the distance between the current price and the projected trendline value exceeds this threshold, a reset is triggered. 4. Re-Anchoring: Upon a reset, the trendline "rolls" to the current price and adopts the most recent linear regression slope. Simultaneously, it captures the current ATR to set the width of the new trend zones. 🔶 SETTINGS 🔹 Trend Settings Slope Lookback: The period used to calculate the linear regression slope. Higher values result in a slope that considers more historical data. Deviation Multiplier: Determines how far price can deviate from the trendline before a reset occurs. Slope Divisor: This setting allows you to tame the trajectory of the line. Higher values divide the captured slope, resulting in flatter trendlines. Source: The price data used for all calculations (default is Close). 🔹 ATR Zones ATR Length: The lookback period used for the Average True Range calculation, which determines the width of the volatility bands. ATR Multiplier: Controls the width of the shaded zones around the trendline. 🔹 Visuals Bullish/Bearish Trend Colors: Customizes the colors for the trendline and zones based on the slope direction. Zone Color: Sets the base color for the ATR area fills. Line Width: Adjusts the thickness of the primary rolling trendline. Pine Script® göstergesiLuxAlgo tarafından22514
Liquidity Day Series V1 Short Description (English): Automatically tracks Previous Day High (PDH) and Low (PDL) as key institutional liquidity levels with customizable session visualizations and real-time alerts. Full Description (English): Liquidity Day Series V1 is a specialized tool designed to identify critical price action levels used by institutional traders. By focusing on the Previous Day’s High (PDH) and Previous Day’s Low (PDL), this script highlights zones where massive liquidity often rests, leading to significant breakouts or reversals. Key Features: High-Visibility Liquidity Lines: Automatically plots bold, high-contrast lines for daily levels. The thickness and colors are fully customizable to fit any chart theme. Smart Market Sessions: Features integrated background shading for Asia, London, and New York sessions. This helps traders identify market context and volatility windows where liquidity sweeps are most likely to occur. Precision Signals: Includes built-in Buy/Sell signals triggered when the price confirms a breakout above or below the daily liquidity walls. Advanced Alert System: Supports both static alertcondition and dynamic alert() functions, delivering real-time price data notifications directly to your device. How to Use: Monitor the Walls: Watch how price reacts as it approaches the bold PDH (Green) or PDL (Red) lines. Trade the Sessions: Focus on breakouts that occur during the London or New York sessions for higher probability setups. Confirm the Break: Look for the triangle signals which confirm a successful crossover/crossunder of the liquidity levels. Session Visibility: Toggle individual market sessions (Asia/London/NY) to clear chart clutter. Line Styles: Adjust the "Line Thickness" (1-5) for maximum visibility on high-resolution monitors. Data Source: Uses non-repainting request.security with lookahead enabled to ensure levels are plotted correctly from the start of the day. Past performance is not indicative of future results. This script is for educational purposes. Trading involves risk; please use appropriate risk management.Pine Script® göstergesiGodeyeThelasthope tarafından2230
Automatic Trendline [Metrify]Metrify Automatic Trendlines is an auto-drawing support/resistance channel built around pivot clustering + scoring, not “connect two perfect points”. The script continuously collects swing pivots (high/low) over a configurable lookback window, then searches for the best single support line and the best single resistance line that behave like a human-drawn trendline: multiple interactions, controlled slope, limited break-throughs, and (most importantly) still relevant to the current price. (configurable in "Max Relevance Distance" input) The fundamental problem with algorithmic trendlines is subjectivity. To solve this mathematically, we treat trendlines as a statistical regression problem with specific constraints. We do not use linear regression on all candles, instead, we use a brute-force iterative approach on specific "Pivot Points." The logic operates on a simple premise: Generate every possible line between past swing points, validate them against price history, score them based on fit, and render only the winner. The Calculation Engine (f_find_best_line) This function contains the primary computational load. It performs a nested loop operation: Outer Loop (newer): Iterates through recent pivots. Inner Loop (older): Iterates through older pivots to form a candidate line segment. For every pair of pivots (P1,P2), we calculate the slope (m) and the y-intercept concept. This gives us a tentative trendline equation: y=mx+c The Scoring Matrix We assign a score to each candidate line based on weighted heuristics: Touch Count (touches * 2.8): The primary driver. More touches = higher statistical significance. Recency (recency * 1.2): Lines originating closer to the current price action are weighted higher. Tightness (avgErr): We calculate the average distance of all touches from the line. A "tighter" fit (lower error) increases the score. Penalties: violations * 2.2: False breaks heavily penalize the score. barBreakRatio * 2.0: If the line cuts through candle bodies (even if pivots are fine). The line with the highest localBest score is returned as the dominant trendline. What you can use it for? This is a structure visualizer that tries to keep a clean, current S/R channel on screen with volatility-aware rules. It’s not a signal generator, it doesn’t predict breakouts, and it won’t always draw something, if the market is messy and no line survives the filters, it will show none instead of hallucinating geometry. If you need more lines (multiple concurrent channels), that’s a different design tradeoff (and usually becomes clutter + false confidence fast).Pine Script® göstergesiMetrify tarafından44699
Session Auction State Engine (SASE) Summary in one paragraph Session Auction State Engine (SASE) is a session context indicator for liquid futures, FX, equities, and crypto on intraday to daily timeframes. It classifies the current session into one of four auction regimes, Balanced, Early trend, Trend continuation, or Failed auction, so you act only when multiple acceptance and expansion conditions align. It is original because it outputs a single interpretable auction state, not buy and sell signals, by combining time acceptance, range expansion, and return to value logic into a compact dashboard. Add it to a clean chart, read the table for Action and permissions, and use the optional markers and bands for quick visual context. Shapes can move while the bar is open and settle on close, for conservative workflows use alerts on bar close. Scope and intent • Markets. Major index futures, major FX pairs, large cap equities, liquid crypto • Timeframes. 1 minute to daily • Default demo used in the publication. ES1! on 5 minute • Purpose. Prevent premature directional decisions by forcing regime confirmation before direction is considered actionable • Limits. Indicator only. No backtest, no execution, no performance claims Originality and usefulness This is not a mashup of common indicators. It is a session auction classifier with an explicit decision hierarchy. • Unique concept or fusion. A regime engine that gates trading by session auction state using Initial Balance, value acceptance, expansion, and return to value confirmation • What failure mode it addresses. False starts in chop, early breakouts that never gain acceptance, and trend chasing inside balanced sessions • Testability. Inputs expose each component and the table shows the state, direction, and pass or fail checklist so users can verify why a state appears and tune thresholds • Portable yardstick. Expansion is normalized by an expected range unit (ATR based), so thresholds scale across symbols with different point values Method overview in plain language SASE runs inside a user defined session window. It builds an Initial Balance (IB), then evaluates whether the market is accepting prices outside value and outside IB, whether the session is expanding beyond IB, and whether price returns to value after a failed excursion. Base measures • Range basis. Value width is ATR of the chart timeframe over the Width ATR length, multiplied by Width ATR multiplier • Normalization basis. Expected range is ATR, either daily or intraday based on Expected range mode, used to normalize session extension Components • Initial Balance (IB). High and low during the first IB minutes of the session. IB defines the first acceptance boundary • Value anchor. A session anchored VWAP or TWAP (or auto) used as a value center • Value width. ATR based band around value used to measure inside value and outside value • Acceptance. Two acceptance channels are tracked, closes outside value in the breakout direction and closes outside IB in the breakout direction. An EMA plus a short streak score turns this into an acceptance strength metric • Extension. Maximum distance beyond IB, normalized by expected range, measures range expansion • Balance. An EMA of time spent inside the value band measures how rotational versus directional the session is • Failed auction. Requires a real excursion outside value first, then a sustained return inside value, plus an acceptance collapse and a rebalance increase, optionally requiring price to be back inside IB Fusion rule SASE outputs exactly one state per bar inside the session. • Balanced. No confirmed breakout from IB, or conditions indicate rotational trade, high balance, low acceptance, low extension • Early trend. Breakout exists, but trend continuation checklist is not complete yet • Trend continuation. All trend gates pass at once: enough time since breakout, acceptance above threshold, extension above threshold, and balance below threshold • Failed auction. After an excursion outside value, price returns and holds inside value while acceptance collapses and balance rises, optionally requiring price back inside IB Signal rule This script does not issue trade signals. It outputs context. • Direction is shown only when state is not Balanced • The dashboard shows a Trend checklist (T, A, E). Trend continuation requires T pass, A pass, and E pass • Early trend indicates direction may be forming but confirmation is incomplete • Failed auction indicates the prior directional attempt was rejected and mean reversion conditions are stronger What you will see on the chart • Optional markers. Key markers appear on state transitions, typically when Trend continuation or Failed auction begins, depending on the Markers setting • Optional reference levels. IB high and IB low lines, and value center plus value bands • Optional background and bar color. Off by default for chart cleanliness • Compact dashboard. A table showing state, direction, Action, permissions, IB progress, checklist, and component gauges Table fields and quick reading guide • State badge. Current auction state • Direction. Up or Down when state is not Balanced, otherwise None • Action. Plain language instruction for the current state • Use. Two permissions, Trend and MeanRev, shown as ON or OFF • IB. Progress and status, Wait until Complete • Trend. Ready percent plus checklist T, A, E • Accept. Acceptance strength and whether it meets the trend threshold • Extend. Extension strength and whether it meets the trend threshold • Balance. Balance score and whether it is low enough for trend continuation • Fail. Excursion and return to value progress when relevant Reading tip. Trend continuation is only intended when T, A, and E are all passing. If Balanced, do not force direction. Inputs with guidance Setup • Session. Defines when the engine is active. Verify timezone and hours when changing symbol or venue • Session timezone. Exchange or a named timezone • Show last session snapshot when closed. When enabled, the table displays the last in session state after the session ends Logic • IB minutes. Typical 30 to 90. Higher reduces noise but delays classification • Value anchor. Auto is recommended. VWAP requires reliable volume, TWAP is volume agnostic • Value reference. Freeze at IB reduces value drift and makes acceptance and failed auction logic more stable • Width ATR length. Typical 14 to 30. Higher smooths value width • Width ATR multiplier. Typical 0.5 to 1.2. Higher widens value and increases Balanced time • Breakout buffer as width fraction. Typical 0.1 to 0.4. Higher requires cleaner breakouts • Acceptance EMA length. Typical 20 to 60. Higher reduces flicker • Acceptance streak bars. Typical 4 to 10. Higher requires sustained acceptance • Early trend acceptance threshold. Typical 0.25 to 0.45 • Trend continuation acceptance threshold. Typical 0.45 to 0.70 • Balance EMA length. Typical 30 to 80 • Trend continuation max balance. Typical 0.30 to 0.55. Lower makes trend continuation stricter • Balanced min balance. Typical 0.55 to 0.80 • Trend continuation min bars since breakout. Typical 10 to 30 • Extension thresholds. Early 0.10 to 0.25, Trend 0.20 to 0.50, in expected range units • Failed auction window bars. Typical 15 to 40. Larger windows require more sustained rejection • Failed auction thresholds. Acceptance max 0.10 to 0.30, Balance min 0.55 to 0.80 • State change confirm bars. Typical 1 to 4 • Return to Balanced confirm bars. Typical 4 to 12 • Minimum bars to keep non Balanced state. Typical 6 to 20, increases stability UI • Theme. Dark or Light • Dashboard position. Corner selection • Markers. Off, Key only, or All changes • Background tint and bar color. Off by default to keep charts readable • Show IB lines and Show value bands. Off by default, enable for learning or debugging Usage recipes Intraday trend focus • IB minutes 60 • Value reference Freeze at IB • Breakout buffer 0.25 • Trend confirm bars 18 • Accept trend threshold 0.55 • Extend trend threshold 0.30 • Trend max balance 0.40 Goal. Trade only when Trend continuation is active and checklist is fully passing Intraday mean reversion focus • IB minutes 30 to 60 • Value reference Freeze at IB • Wider value width, raise Width ATR multiplier to 0.9 to 1.2 • Raise Balanced min balance to 0.70 • Keep Markers on Key only Goal. Focus on Balanced and Failed auction states, avoid early trend and trend continuation trades Swing continuation • Use 60 minute or 240 minute chart • Expected range mode Daily ATR • Trend confirm bars 12 to 30 depending on timeframe • Raise Width ATR length to 30 Goal. Use Trend continuation as a higher level regime gate, then use your own entry timing tool inside that regime Realism and responsible publication • No performance claims. Past results never guarantee future outcomes • Intrabar motion reminder. Shapes and table values can update while a bar forms and settle on close • Session windows use the chart exchange time unless you override timezone. Verify hours when changing symbol or venue Honest limitations and failure modes • News releases and liquidity gaps can break normal auction behavior and can trigger rapid state transitions • Symbols with unreliable volume may work better using TWAP or Auto rather than VWAP only • Very quiet regimes can reduce contrast between Balanced and Early trend, consider longer windows or higher thresholds • Non standard chart types can distort session and IB calculations, use standard candles for evaluation Open source reuse and credits None Legal Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs in any external testing workflow.Pine Script® göstergesiexlux tarafından17
Luminous Market Flux [Pineify]Luminous Market Flux - Dynamic Volatility Channel with Breakout Detection The Luminous Market Flux indicator is a sophisticated volatility-based trading tool that combines dynamic channel analysis with breakout detection and squeeze identification. This indicator helps traders visualize market conditions by creating an adaptive envelope around price action, highlighting periods of compression (low volatility) and expansion (high volatility) while generating actionable buy and sell signals at key breakout moments. Key Features Dynamic volatility channel that adapts to changing market conditions using ATR-based calculations Visual squeeze detection system that warns traders when volatility is contracting Automatic breakout signal generation for both bullish and bearish scenarios Luminous gradient fill that provides instant visual feedback on price position within the channel Bar coloring feature that highlights strong volatility breakouts Built-in alert conditions for automated trading notifications How It Works The indicator operates on three core calculation layers: 1. Baseline Calculation (Central Tendency) The foundation uses a Running Moving Average (RMA) of the closing price over the specified Flux Length period. RMA was specifically chosen over SMA or EMA because it provides smoother trend detection similar to how RSI and ATR calculations work, reducing noise while maintaining responsiveness to genuine price movements. 2. Volatility Measurement The channel width is determined by the Average True Range (ATR) multiplied by the Flux Expansion Factor. ATR captures the true volatility of the market by accounting for gaps and limit moves, making the channel responsive to actual market conditions rather than just closing price variations. 3. Squeeze Detection Logic The indicator compares the current channel width against a 100-period simple moving average of historical channel widths. When the current range falls below 80% of this average, a squeeze condition is identified, signaling that volatility is compressing and a significant move may be imminent. Trading Ideas and Insights Breakout Trading: Enter long positions when price breaks above the upper flux channel with a BUY signal, and short positions when price breaks below the lower channel with a SELL signal. These breakouts indicate strong momentum in the direction of the move. Squeeze Anticipation: When squeeze circles appear at the top of the chart, prepare for a potential explosive move. Squeezes often precede significant breakouts as the market coils before releasing energy in one direction. Trend Confirmation: Use the bar coloring feature to confirm trend strength. Colored bars indicate that price is trading outside the volatility envelope, suggesting strong directional momentum. Mean Reversion: When price is within the channel (no bar coloring), the gradient fill helps identify whether price is closer to the upper or lower boundary, potentially useful for mean-reversion strategies. How Multiple Indicators Work Together This indicator integrates several technical concepts into a cohesive system: The RMA baseline provides the trend anchor, while the ATR-based envelope adapts to volatility conditions. These two components work together to create a channel that expands during volatile periods and contracts during quiet markets. The squeeze detection layer adds a third dimension by comparing current volatility to historical norms, alerting traders when the market is unusually quiet. The visual elements reinforce this analysis: the gradient fill shows price position within the channel at a glance, bar coloring confirms breakout strength, and shape markers provide discrete entry signals. This multi-layered approach ensures traders receive consistent information across different visualization methods. Unique Aspects The "Luminous" visual design uses color gradients that dynamically shift based on price position, creating an intuitive heat-map effect within the channel Unlike traditional Bollinger Bands that use standard deviation, this indicator uses ATR for volatility measurement, making it more responsive to actual price range movements The squeeze detection compares current volatility to a longer-term average (100 periods), providing context-aware compression signals rather than arbitrary thresholds Signal generation uses proper state tracking to ensure breakout signals only fire on the initial breakout, not on every bar during an extended move How to Use Add the indicator to your chart. It will overlay directly on price with the volatility channel visible. Watch for BUY labels appearing below bars when price breaks above the upper channel - these indicate bullish breakout opportunities. Watch for SELL labels appearing above bars when price breaks below the lower channel - these indicate bearish breakout opportunities. Monitor for small circles at the top of the chart indicating squeeze conditions - prepare for potential breakouts when these appear. Use the colored bars as confirmation of breakout strength - green bars confirm bullish momentum, red bars confirm bearish momentum. Set up alerts using the built-in alert conditions to receive notifications for buy signals, sell signals, and squeeze warnings. Customization Flux Length (default: 20): Controls the lookback period for both the baseline and ATR calculations. Lower values create more responsive but noisier channels; higher values create smoother but slower-reacting channels. Flux Expansion Factor (default: 2.0): Multiplier for the ATR value that determines channel width. Higher values create wider channels with fewer signals; lower values create tighter channels with more frequent signals. Smooth Signal : Toggle for signal smoothing preference. Bullish Energy : Customize the color for bullish breakouts and upper channel highlights. Bearish Energy : Customize the color for bearish breakouts and lower channel highlights. Compression/Neutral : Customize the color for squeeze indicators and neutral channel states. Conclusion The Luminous Market Flux indicator provides traders with a comprehensive volatility analysis tool that combines channel-based trend detection, squeeze identification, and breakout signaling into a single, visually intuitive package. By using ATR-based volatility measurement and RMA smoothing, the indicator adapts to changing market conditions while filtering out noise. Whether you are a breakout trader looking for momentum entries or a swing trader waiting for volatility expansion after compression periods, this indicator offers the visual clarity and signal precision needed to make informed trading decisions. Pine Script® göstergesiPineify tarafından20
Sumit' Trade line strategy (4PM-1AM)SUMIT INGOLE This is a custom-built trading indicator designed to help traders identify clear market direction and high-probability entry zones. The indicator focuses on: • Trend direction • Strong price levels • Clear buy and sell signals • Easy-to-read structure It is beginner-friendly and does not require complex market knowledge. The signals are based on pure price behavior and smart market movement, helping traders avoid confusion and overtrading. This indicator works best when used with proper risk management and discipline. It can be applied on multiple timeframes and is suitable for intraday as well as swing trading. Note: This indicator is a support tool, not a guarantee of profits. Always follow your trading plan and manage risk properly.Pine Script® göstergesirahulingole4712 tarafından149
x5-smooth-ema[t90]Overview The x5 Smoothed EMA Flow is a trend-visualization tool designed to filter out market "noise" by applying a secondary smoothing layer to a base Exponential Moving Average (EMA). How to Use Trend Filtering: The "Flow" helps identify the true trend. When the ribbon is expanding and colored for a bullish trend, it signals strong, sustained momentum. Noise Reduction: Unlike a standard EMA which can "whipsaw" during consolidation, the double-smoothed layers stay smoother for longer, helping traders stay in a position during minor pullbacks. Trend Confirmation: Use the alignment of all smoothing layers to confirm a trend. When all layers transition to the same color, it indicates a high-probability trend shift. Dynamic Support/Resistance: The ribbon acts as a depth-based support or resistance zone. Price often reacts to the "core" of the flow before continuing its primary move. Settings Source: Choose the price source (Close, HL2, etc.) for the initial calculation. Base Length: Adjust the sensitivity. Shorter lengths are better for scalping; longer lengths are optimized for swing trading. Color Settings: Fully customizable Bull and Bear colors to match your chart theme. Disclaimer: This indicator is for educational purposes only. Moving averages are lagging indicators and should be used in conjunction with other forms of analysis. Past performance is not indicative of future results.Pine Script® göstergesitraderninezero tarafından94
Blockcircle FTR - Follow Through ReversalWHAT THIS INDICATOR DOES Blockcircle FTR identifies failed directional moves followed by quality reversals. The indicator tracks structural pivot levels, monitors price interactions with those levels, and validates reversal sequences against a configurable threshold. A trend filter provides macro context so you can evaluate whether signals align with or oppose the broader direction. KEY FEATURES Reversal quality filtering via delivery threshold requirement Sweep confirmation when reversals follow liquidity grabs at structural levels ATR-adaptive origin zones marking reversal starting points Trend alignment indicator comparing signal bias to moving average direction Volume validation filter for participation confirmation Real-time dashboard with signal statistics and alignment status DETAILED BREAKDOWN Structural Level Tracking The indicator identifies pivot highs and lows based on the Structure Lookback parameter. These pivots serve as reference levels where liquidity typically accumulates. Levels remain active until price interacts with them or they exceed the Level Lifespan setting. When the price reaches a structural level, this interaction is logged. If a reversal then forms in the opposite direction within the Sweep Window, the signal qualifies as sweep-confirmed, indicating that stops were likely triggered before the move reversed. FTR Detection Logic The core detection looks for a specific sequence: a directional attempt that fails to follow through, followed by a counter-move that meets the Delivery Threshold ratio. This ratio measures the quality of the reversal relative to the failed move's structure. Higher threshold values (closer to 1.0) require cleaner, more convincing reversals. Lower values (closer to 0.1) allow weaker setups through. The default of 0.7 provides reasonable filtering without being overly restrictive. Trend Context Filter A moving average (EMA or SMA, configurable period) provides simple trend context. The dashboard displays three related metrics: Trend: Current price position relative to the MA (Bullish/Bearish) FTR Bias: Direction of the most recent confirmed signal (Long/Short) Aligned: Whether these two readings match (Yes/No) This helps identify situations where the FTR bias has become stale or is positioned against the prevailing trend. Signal Classification Standard signals appear as small triangles and represent FTR patterns that passed the delivery threshold and any active filters. Sweep-confirmed signals appear with an "S" label and represent the subset of signals where price swept a structural level shortly before the reversal formed. These carry higher conviction due to the additional liquidity context. Dashboard Metrics The information panel provides: Current trend direction and FTR bias Alignment status between the two Bars elapsed since the last signal Running totals for long and short signals Sweep-confirmed counts in parentheses Volume filter status Configuration Parameters Structure Lookback: Bars used for pivot detection. Higher values capture more significant swings. Delivery Threshold: Minimum ratio for valid reversals. Range 0.1 to 1.0. Level Lifespan: The maximum bars a structural level remains active. Sweep Window: Lookback period for sweep confirmation. Trend MA Period: Moving average length for trend context. Volume Spike Multiple: Required volume ratio when volume filter is active. Zone Depth: Origin zone width as ATR multiple. Practical Application Sweep-confirmed signals with trend alignment represent the highest-conviction setups. These combine a quality reversal pattern, liquidity sweep context, and trend support. Standard signals without sweep confirmation remain valid FTR patterns but warrant additional discretion. Counter-trend signals (Aligned showing NO) can still produce valid moves, but historically carry lower probability. Consider position sizing adjustments accordingly. Origin zones serve as potential support/resistance areas for subsequent price returns. Important Limitations The indicator may remain biased in the wrong direction during extended trends if no qualifying reversal pattern forms. The trend filter helps identify these situations, but does not automatically override the FTR bias. Signal counts are calculated on visible chart history and will vary based on the loaded timeframe and bar count. As with any technical tool, signals should be evaluated within the broader market context rather than traded mechanically. Hope you find it useful! If you have any questions, please don't hesitate to ask them!Pine Script® göstergesiblockcircle tarafından22110
Consolidating Trend MasterA complimentary Oscillator to the Hybrid ST/EMA Trend Table Indicator to help provide confident Confluence signals and when the market is consolidating/choppy/moving sideways. This Oscillator may also help someone with scalping. warning as always, no chart is 100% accurate. Pine Script® göstergesisubcoolnate tarafından149
eBacktesting - Learning: Trend LineseBacktesting - Learning: Trend Lines helps you spot clean trend lines automatically, using real swing points (highs/lows) and confirming a line only after it’s “respected” multiple times. What you’ll see on the chart - Uptrend lines (support) when price is making higher lows - Downtrend lines (resistance) when price is making lower highs - A simple way to study structure, spot “respect” of a trend line, and understand when a trend may be weakening - Trend line breaks are based on candle closes, not just quick wicks, so the signals are clearer You can also keep a few older lines on the chart, making it easy to review past reactions and build pattern recognition. These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance. Educational use only. Not financial advice.Pine Script® göstergesieBacktesting tarafından35
Trend Break Targets [MarkitTick]Trend Break Targets Trend Break Targets is a technical analysis tool designed to assist traders in identifying trendline breakouts and projecting potential price targets based on market geometry. Unlike fully automated indicators that guess trendlines, this tool provides you with precise control by allowing you to manually Pivot Point the trendline to specific points in time, while automating the complex math of target projection and structure mapping. Theoretical Basis & Concepts This indicator is grounded in classic technical analysis principles found in foundational trading literature. It automates the following methodology: Drawing a trend line between two key points to represent dynamic support or resistance. Identifying a breakout when the price closes above or below this line, potentially signaling a change in trend. Calculating a price target by measuring the vertical distance between the breakout line and the last high/low (pivot), then projecting that same distance in the direction of the breakout. This concept is based on methods and "Measured Move" theories explained in classic books such as "Technical Analysis of Stock Trends" by Edwards & Magee, "Technical Analysis of the Financial Markets" by John Murphy, and in Thomas Bulkowski's Price Pattern Studies. How It Works Pivot Pointed Trendline Construction The script draws a trendline between two user-defined points in time (Start Date and End Date). It calculates the slope between these points and extends the line infinitely to the right, allowing you to define the exact structure (e.g., a resistance trendline on a wedge). Breakout Detection The script monitors the "Price Source" (High, Low, or Close) relative to the extended trendline. A Bullish Breakout (BC) occurs when the Close crosses above a bearish trendline. A Bearish Breakout (BC) occurs when the Close crosses below a bullish trendline. Dynamic Target Projection (The Math) Upon a confirmed breakout, the script automatically calculates three distinct targets by identifying the most significant "Swing Point" (Pivot) prior to the breakout. Distance (D): The vertical distance between the Trendline and the Pivot Price at the specific bar where the pivot occurred. Target 1 (T1): The Breakout Price +/- (Distance × 1.0). This represents a classic 1:1 measured move. Target 2 (T2): The Breakout Price +/- (Distance × 1.618). Based on the Golden Ratio extension. Target 3 (T3): The Breakout Price +/- (Distance × 2.618). Market Structure (CHOCH) The script includes an optional Change of Character (CHOCH) module. This runs independently of the trendline logic, identifying local Swing Highs and Swing Lows based on the "Swing Detection Length." It plots dashed lines and labels to visualize immediate shifts in market structure. How to Use This Tool This is an interactive tool that requires user input to define the setup. Identify a Setup: Locate a clear trend, wedge, or flag pattern on your chart. Set Pivot Points: Go to the Indicator Settings. Input the exact Start Date and End Date corresponding to the two main touches of your trendline. Monitor for Breakout: The script will extend the line. Wait for a "BC" label to appear. Trade Management: Once "BC" prints, the T1, T2, and T3 lines will instantly render. These can be used as potential take-profit zones or areas to tighten stop-losses. Settings & Configuration Indicator Settings Start/End Date: The timestamp Pivot Points for your trendline. Price Source: Determines what price (High or Low) Pivot Points the line and triggers the breakout. Pivot Left/Right: Adjusts the sensitivity for finding the "Pivot Before Break" used for target calculations. Extend Target Line: How far forward the target lines are drawn. Visual Style Colors: Fully customizable colors for the Trendline, Breakout Labels, and each Target level (T1, T2, T3). Gold Bullish Reversal This analysis dissects a confirmed bullish reversal on Gold using a custom Trend Break system. The setup identifies a transition from a bearish corrective phase to bullish momentum, validated by a structural break and a geometric target projection. Trend Identification (The Pivot Points) The descending white trendline serves as the primary dynamic resistance, defining the bearish correction. Pivot Points: The line is drawn connecting two significant swing highs, marked by Label 1 and Label 2. Logic: These points represent the "lower highs" characteristic of the previous downtrend. As long as price remained below this trajectory, the bearish bias was intact. The Trigger: Breakout & Confirmation The transition occurs at the candle marked BC (Breakout Candle). Breakout Criteria: The indicator logic dictates that a signal is only valid when the bar closes above the trendline. This filters out intraday wicks and ensures genuine buyer commitment. CHOCH Confluence: Immediately following the breakout, a CHOCH (Change of Character) label appears. This signals a shift in market structure, indicating that the internal lower-high/lower-low sequence has been violated, adding probability to the reversal. Target Projection: The Measured Move The vertical green lines (T1, T2) represent profit objectives derived from the depth of the prior move. The logic calculates the distance between the breakout line and the lowest pivot prior to the break. T1 (Standard Target): This is a 1:1 projection of the pre-breakout volatility. We see price action initially stalling near this level, confirming it as a zone of interest. T2 (Golden Ratio Extension): The second target is calculated as the initial distance multiplied by 1.618 (Fibonacci Golden Ratio). The chart shows the price rallying aggressively through T1 to tap the T2 zone, often considered an exhaustion or major take-profit level in harmonic extensions. Conclusion Gold has successfully invalidated the 4-hour bearish trendline. The confluence of a confirmed close above resistance (BC) and a structural shift (CHOCH) provided a high-probability long setup. The price has now fulfilled the T2 (1.618) extension, suggesting traders should watch for consolidation or a reaction at this key Fibonacci resistance level. Bearish Trendline Breakdown The image displays a Bearish Trendline Breakdown on the Gold (XAUUSD) 4-hour chart. The indicator is actually functioning in "Low" mode here (connecting swing lows to form support), which triggers the bearish logic found in the code. Here is the step-by-step breakdown: The Setup: Pivot Points & Trendline Visual: The Blue Labels "1" and "2" connected by a white diagonal line. Code Logic: These are the user-defined start and end points. Pivot Point 1 (startDate): The starting pivot of the trendline. Pivot Point 2 (endDate): The ending pivot. Trendline: The code draws a line between these two points and extends it to the right (extend.right). In this specific image, the line acts as a Support Trendline. The Trigger: Break Candle (BC) Visual: The Red Label "BC" appearing just below the white trendline. Code Logic: This is the execution signal. The code detects a "Down Break" (dnBreak) because the Price Source was likely set to "Low" and the candle's Close was lower than the Trendline Price at that specific bar (close < currLinePrice). This confirms the support level has been breached. The Projection: Targets (T1 & T2) Visual: The Green Labels "T1" and "T2" with dotted horizontal lines projected downward. Code Logic: These are profit targets based on a "Measured Move." Pivot Calculation: The script looks back for a recent "Pivot High" (the peak before the crash) to calculate the volatility/distance (dist) between that peak and the trendline. T1 (Conservative): The price is projected downward by 1x that distance (currLinePrice - dist). T2 (Extended): The price is projected downward by 1.618x that distance (Golden Ratio extension). Market Context: CHOCH Visual: The small Red/Orange "CHOCH" labels appearing above the price action. Code Logic: This is a secondary confirmation system running independently of the trendline. It detects a Change of Character (structural shift). The red labels indicate a "Bearish CHOCH," meaning the price broke below a significant prior swing low (last_swing_low). This supports the bearish bias of the trendline break. Disclaimer This tool is for educational and technical analysis purposes only. Breakouts can fail (fake-outs), and past geometric patterns do not guarantee future price action. Always manage risk and use this tool in conjunction with other forms of analysis.Pine Script® göstergesiMarkitTick tarafındanGüncellendi 44 1.5 K
Trend detection zero lag Trend Detection Zero-Lag (v6) Trend Detection Zero-Lag is a high-performance trend identification indicator designed for intraday traders, scalpers, and swing traders who require fast trend recognition with minimal lag. It combines a zero-lag Hull Moving Average, slope analysis, swing structure logic, and adaptive volatility sensitivity to deliver early yet stable trend signals. This indicator is optimized for real-time decision-making, particularly in fast markets where traditional moving averages react too slowly. Core Features 🔹 Zero-Lag Trend Engine Uses a Zero-Lag Hull Moving Average (HMA) to reduce lag by approximately 40–60% versus standard moving averages. Provides earlier trend shifts while maintaining smoothness. 🔹 Multi-Factor Trend Detection Trend direction is determined using a hybrid engine: HMA slope (momentum direction) Rising / falling confirmation Swing structure detection (HH/HL vs LH/LL) ATR-adjusted dynamic sensitivity This approach allows fast flips when conditions change, without excessive noise. Adaptive Volatility Sensitivity Sensitivity dynamically adjusts based on ATR relative to price In high volatility: faster reaction In low volatility: smoother, more stable trend state This ensures the indicator adapts across: Trend days Range days Volatility expansion or contraction Trend Duration Intelligence The indicator tracks historical trend durations and maintains a rolling memory of recent bullish and bearish phases. From this, it calculates: Current trend duration Average historical duration for the active trend direction This helps traders gauge: Whether a trend is early, mature, or extended Probability of continuation vs exhaustion Strength Scoring A normalized Trend Strength Score (0–100) is calculated using: Zero-lag slope magnitude ATR normalization This provides a quick read on: Weak / choppy trends Healthy trend continuation Overextended momentum Visual Design Color-coded Zero-Lag HMA Bullish trend → user-defined bullish color Bearish trend → user-defined bearish color Designed for dark mode / neon-style charts Clean overlay with no clutter Trend Detection Zero-Lag is built for traders who need: Faster trend recognition Adaptive behavior across market regimes Structural confirmation beyond simple moving averages Clear, actionable visual signalsPine Script® göstergesiMomentumCraft_ tarafından41
Trend Vector Pro v2.0Trend Vector Pro v2.0 👨💻 Developed by: Mohammed Bedaiwi 💡 Strategy Overview & Coherence Trend Vector Pro (TVPro) is a momentum-based trend & reversal strategy that uses a custom smoothed oscillator, an optional ADX filter, and classic Pivot Points to create a single, coherent trading framework. Instead of stacking random indicators, TVPro is built around these integrated components: A custom momentum engine (signal generation) An optional ADX filter (trend quality control) Daily Pivot Points (context, targets & S/R) Swing-based “Golden Bar” trailing stops (trade management) Optional extended bar detection (overextension alerts) All parts are designed to work together and are documented below to address originality & usefulness requirements. 🔍 Core Components & Justification 1. Custom Momentum Engine (Main Signal Source) TVPro’s engine is a custom oscillator derived from the bar midpoint ( hl2 ), similar in spirit to the Awesome Oscillator but adapted and fully integrated into the strategy. It measures velocity and acceleration of price, letting the script distinguish between strong impulses, weakening trends, and pure noise. 2. ADX Filter (Trend Strength Validation – Optional) Uses Average Directional Index (ADX) as a gatekeeper. Why this matters: This prevents the strategy from firing signals in choppy, non-trending environments (when ADX is below the threshold) and keeps trades focused on periods of clear directional strength. 3. Classic Pivot Points (Context & Targets) Calculates Daily Pivot Points ( PP, R1-R3, S1-S3 ) via request.security() using prior session data. Why this matters: Momentum gives the signal, ADX validates the environment, and Pivots add external structure for risk and target planning. This is a designed interaction, not a random mashup. 🧭 Trend State Logic (5-State Bar Coloring) The strategy uses the momentum's value + slope to define five states, turning the chart into a visual momentum map: 🟢 STRONG BULL (Bright Green): Momentum accelerating UP. → Strong upside impulse. 🌲 WEAK BULL (Dark Green): Momentum decelerating DOWN (while positive). → Pullback/pause zone. 🔴 STRONG BEAR (Bright Red): Momentum accelerating DOWN. → Strong downside impulse. 🍷 WEAK BEAR (Dark Red): Momentum decelerating UP (while negative). → Rally/short-covering zone. 🔵 NEUTRAL / CHOP (Cyan): Momentum is near zero (based on noise threshold). → Consolidation / low volatility. 🎯 Signal Logic Modes TVPro provides two selectable entry styles, controlled by input: Reversals Only (Cleaner Mode – Default): Targets trend flips. Entry triggers when the current state is Bullish (or Bearish) and the previous state was not. This reduces noise and over-trading. All Strong Pulses (Aggressive Mode): Targets acceleration phases. Entry triggers when the bar turns to STRONG BULL or STRONG BEAR after any other state. This mode produces more trades. 📌 Risk Management Tools 🟡 Golden Bars – Trailing Stops: Yellow “Trail” Arrows mark confirmed Swing Highs/Lows. These are used as logical trailing stop levels based on market structure. Extended Bars: Detects when price closes outside a 2-standard-deviation channel, flagging overextension where a pullback is more likely. Pivot Points: Used as external targets for Take Profit and structural stop placement. ⚙️ Strategy Defaults (Crucial for Publication Compliance) To keep backtest results realistic and in line with House Rules, TVPro is published with the following fixed default settings: Order Size: 5% of equity per trade ( default_qty_value = 5 ) Commission: 0.04% per order ( commission_value = 0.04 ) Slippage: 2 ticks ( slippage = 2 ) Initial Capital: 10,000 📘 How to Trade with Trend Vector Pro Entry: Take Long when a Long signal appears and confirm the bar is Green (Bull state). Short for Red (Bear state). Stop Loss: Place the initial SL near the latest swing High/Low, or near a relevant Pivot level. Trade Management: Follow Golden (Trail) Arrows to trail your stop behind structure. Exits: Exit when: the trailing stop is hit, Price reaches a major Pivot level, or an opposite signal prints. 🛑 Disclaimer This script is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always forward-test and use proper risk management before applying any strategy to live trading. Pine Script® stratejisimbedaiwi2 tarafından54
Advanced Breakout System v2.0Advanced Breakout System v2.0 Developed by: Mohammed Bedaiwi This script hunts for high-probability breakouts by combining price consolidation zones, volume spikes vs. average volume, smart money flow (OBV), and a Momentum Override for explosive moves that skip consolidation. Additionally, it automatically identifies and plots Support and Resistance levels with price labels to help you visualize market structure. The system follows a "Watch & Confirm" logic: it first prints a WATCH setup, then a BUY only if price confirms strength. 💡 JUSTIFICATION OF CONCEPTS (MASHUP & ORIGINALITY) This script is an original mashup combining several analytical concepts to address common breakout failures: Volatility Compression Engine: Uses built-in functions like ta.highest() and ta.lowest() to mathematically define the setup phase where price volatility is compressed below a user-defined threshold. Volume Spike Confirmation: The breakout must be confirmed by a volume increase greater than a moving average of volume, signaling strong market interest. Smart Volume Filter (OBV): This is the key component. By checking if ta.obv is above its own Moving Average, we confirm that accumulation has been occurring during the consolidation period, suggesting institutional positioning before the price break. Multi-Exit Risk System: Employs dynamic exits (EMA cross, volume dump, bearish pattern) instead of static stop-losses to manage risk adaptively based on real-time market action. Market Structure Visualization: The script also includes a Support & Resistance engine to plot key swing pivots and price labels for visual context. ✅ STRATEGY RESULTS & POLICY COMPLIANCE To ensure non-misleading and transparent backtesting results, this strategy is published with the following fully compliant properties: Dataset Compliance: The backtest is performed on the CMTL Daily (1D) chart across a long history, generating 201 total trades. This significantly exceeds the minimum requirement of 100 trades, providing a robust test dataset. Risk Control: The strategy uses a conservative order size set to 2% of equity (default_qty_value=2), strictly adhering to the sustainable risk recommendation of 5-10% of equity per trade. Transaction Costs: Realistic trading conditions are modeled using 0.07% commission and 3 ticks slippage to prevent the overestimation of profitability. ⚙️ VISUAL GUIDE & SIGNAL LOGIC Key Color Legend (Visual Guide): WATCH – Setup (Yellow Arrow Down): Potential breakout setup detected. BUY – Confirmation (Green Arrow Up): Confirmed breakout, triggered when price trades above the high of the WATCH candle. SELL – Break (Orange Arrow): Short-term trend weakness, triggered when price closes below the Fast EMA (9). SELL – Dump (Dark Red Arrow): Distribution / volume dump, triggered by a bearish candle with abnormally high volume. SELL – Pattern (Purple Arrow): Bearish price-action pattern (such as a bearish engulfing). Support & Resistance Lines (Red/Green): Small horizontal lines plotted at key swing points with exact price labels. ⌨️ INPUTS (DEFAULT SETTINGS) Entry settings: Consolidation Lookback (default 20) = bars used to detect consolidation. Consolidation Range % (default 12%) = max allowed range size. Volume Spike Multiplier (default 1.2) = factor above average volume to count as a spike. Force Signal on Big Moves (default ON) = forces a WATCH signal on high-momentum moves. Exit settings: Enable Fast Exit (EMA 9) toggles the SELL – Break signal. Dump Volume Multiplier defines what counts as “dump” volume. Support & Resistance: Adjustable Pivot Left/Right bars control the sensitivity of the support and resistance lines. ⚠️ Disclaimer Trading involves significant risk of loss. This script is for educational and informational purposes only and is not financial advice or a recommendation to buy or sell any asset. BUY and SELL signals are rule-based and derived from historical behavior and do not guarantee future performance. Always use your own analysis and risk management. This is an open-source strategy; users are encouraged to test it across different symbols and timeframes.Pine Script® stratejisimbedaiwi2 tarafından98
TrendlinesDowntrend lines are one of the most important tools in technical analysis. A downtrend line is created by connecting a series of lower highs which forms a clear visual line where price repeatedly finds resistance. Traders use these lines to understand trend direction, time entries, plan exits, and quickly recognize when momentum is shifting. This indicator automatically finds and maintains the strongest downtrend lines on any timeframe. It removes the guesswork and inconsistency that comes with manually drawing trendlines. Unlike most other trendline indicators that just draw lines from swing highs to the current high, this indicator actively scans for new pivot highs, tests each potential line against live price action and only promotes a line to valid status once it has proven itself as a true trendline by price touching or respecting the line a user defined number of times, with the default set to three. This filters out noise and leaves only the most meaningful and reliable trendlines on your chart. When price eventually breaks a respected downtrend line the indicator highlights the breakout immediately. Traders often use these moments for entries confirmation signals or to prepare for a potential shift in market behavior. The breakout alert is built directly into the indicator so you never miss an important move. This indicator also works with the Pine Screener to find tickers with current valid trendlines. How are trendlines determined? The indicator begins by anchoring to the most recent pivot high. From there it draws a temporary line to the current bar and evaluates every bar between the two points. Each time a high comes within a user selected buffer zone around that line it is counted as a touch. Once the required number of touches is confirmed and price has never exceeded the buffer to the upside the trendline becomes valid and is displayed on the chart as an active downtrend line. Pine Script® göstergesiAmphibiantrading tarafındanGüncellendi 2222 1.4 K
Trading Session IL7 Session-Based Intraday Momentum IndicatorOverview This indicator is designed to support discretionary traders by highlighting intraday momentum phases based on price behavior and trading session context. It is intended as a confirmation tool and not as a standalone trading system or automated strategy. Core Concept The script combines multiple market observations, including: - Directional price behavior within the current timeframe - Structural consistency in recent price movement - Session-based filtering to focus on periods with higher activity and liquidity Signals are only displayed when internal conditions align, helping traders avoid low-quality setups during sideways or low-momentum market phases. How to Use This indicator should be used to confirm existing trade ideas rather than generate trades on its own. It can help traders: - Identify periods where momentum is more likely to continue - Filter out trades during unfavorable market conditions - Align intraday execution with higher-timeframe bias Best results are achieved when used alongside key price levels, higher-timeframe structure and proper risk management. Limitations This indicator does not predict future price movements. Signals may change during active candles. Market conditions may reduce effectiveness during extremely low volatility periods. Language Notice The indicator’s user interface labels are displayed in German. This English description is provided first to comply with TradingView community script publishing rules. Pine Script® göstergesiPavel98xx tarafından14
APEX TREND: Macro & Hard Stop SystemAPEX TREND: Macro & Hard Stop System The APEX TREND System is a composite trend-following strategy engineered to solve the "Whipsaw" problem inherent in standard breakout systems. It orchestrates four distinct technical theories—Macro Trend Filtering, Volatility Squeeze, Momentum, and Volatility Stop-Loss—into a single, hierarchical decision-making engine. This script is not merely a collection of indicators; it is a rules-based trading system designed for Swing Traders (Day/Week timeframes) who aim to capture major trend extensions while strictly managing downside risk through a "Hard Stop" mechanism. 🧠 Underlying Concepts & Originality Many trend indicators fail because they treat all price movements equally. The APEX TREND differentiates itself by applying an "Institutional Filter" logic derived from classic Dow Theory and Modern Volatility Analysis. 1. The Macro Hard Stop (The 200 EMA Logic) Origin: Based on the institutional mandate that “Nothing good happens below the 200-day moving average.” Function: Unlike standard super trends that flip constantly in sideways markets, this system integrates a 200-period Exponential Moving Average (EMA) as a non-negotiable "Hard Stop." Synergy: This acts as the primary gatekeeper. Even if the volatility engine signals a "Buy," the system suppresses the signal if the price is below the Macro Baseline, effectively filtering out counter-trend traps. 2. The Volatility Engine (Squeeze Theory) Origin: Derived from John Carter’s TTM Squeeze concept. Function: The script identifies periods where Bollinger Bands (Standard Deviation) contract inside Keltner Channels (ATR). This indicates a period of potential energy build-up. Synergy: The system only triggers an entry when this energy is released (Breakout) AND coincides with Linear Regression Momentum, ensuring the breakout is genuine. 3. Anti-Chop Filter (ADX Integration) Origin: J. Welles Wilder’s Directional Movement Theory. Function: A common failure point for trend systems is low-volatility chop. This script utilizes the Average Directional Index (ADX). Synergy: If the ADX is below the threshold (Default: 20), the market is deemed "Choppy." The script visually represents this by painting candles GRAY, signaling a "No-Trade Zone" regardless of price action. 4. The "Run Trend" Stop Loss (Factor 4.0 ATR) Origin: Adapted from the Turtle Trading rules regarding volatility-based stops. Function: Standard Trailing Stops (usually Factor 3.0) are too tight for crypto or volatile equities on daily timeframes. Optimization: This system employs a wider ATR Multiplier of 4.0. This allows the asset to fluctuate naturally within a trend without triggering a premature exit, maximizing the "Run Trend" potential. 🛠 How It Works (The Algorithm) The script processes data in a specific order to generate a signal: Check Macro Trend: Is Price > EMA 200? (If No, Longs are disabled). Check Volatility: Is ADX > 20? (If No, all signals are disabled). Check Volume: Is Current Volume > 1.2x Average Volume? (Confirmation of institutional participation). Trigger: Has a Volatility Breakout occurred in the direction of the Macro Trend? Execution: If ALL above are true -> Generate Signal. 🎯 Strategy Guide 1. Long Setup (Bullish) Signal: Look for the Green "APEX LONG" Label. Condition: The price must be ABOVE the White Line (EMA 200). Execution: Enter at the close of the signal candle. Stop Loss: Initial stop at the Green Trailing Line. 2. Short Setup (Bearish) Signal: Look for the Red "APEX SHORT" Label. Condition: The price must be BELOW the White Line (EMA 200). Execution: Enter at the close of the signal candle. Stop Loss: Initial stop at the Red Trailing Line. 3. Exit Rules (Crucial) This system employs a Dual-Exit Mechanism: Soft Exit (Profit Taking): Close the position if the price crosses the Trailing Stop Line (Green/Red line). This locks in profits during a trend reversal. Hard Exit (Emergency): Close the position IMMEDIATELY if the price crosses the White EMA 200 Line against your trade. This prevents holding a position during a major market regime change. ⚙️ Settings Momentum Engine: Adjust Bollinger Band/Keltner Channel lengths to tune breakout sensitivity. Apex Filters: Toggle the EMA 200 or ADX filters on/off to adapt to different asset classes. Risk Management: The ATR Multiplier (Default 4.0) controls the width of the trailing stop. Lower values = Tighter stops (Scalping); Higher values = Looser stops (Swing). Disclaimer: This script is designed for trend-following on higher timeframes (4H, 1D, 1W). Please backtest on your specific asset before live trading.Pine Script® göstergesiGustav_Rex tarafından92
Long-Term Strategy: 1-Year Breakout + 6-Month ExitDescripción (Description): (Copia y pega todo lo que está dentro del recuadro de abajo) Description This is a long-term trend-following strategy designed to capture major market moves while filtering out short-term noise. It is based on the classic principle of "buying strength" (Breakouts) and allowing profits to run, while cutting losses when the medium-term trend reverses. How it Works (Logic) 1. Entry Condition (Long Only): The strategy looks for a significant display of strength. It enters a Long position only when two conditions are met simultaneously: Price Breakout: The closing price exceeds the highest high of the last 252 trading days (approximately 1 year). This ensures we are entering during a strong momentum phase. Trend Filter: The SuperTrend indicator (Settings: ATR 10, Factor 3.0) must be bullish. This acts as a confirmation filter to avoid false breakouts in choppy markets. 2. Exit Condition: The strategy uses a trailing stop based on price action, not a fixed percentage. It closes the position when the price closes below the lowest low of the last 126 trading days (approximately 6 months). This wide exit allows the trade to "breathe" during normal market corrections without exiting the position prematurely. Settings & Risk Management Capital Usage: The script is configured to use 10% of equity per trade to reflect realistic risk management (compounding). Commissions: Included at 0.1% to simulate real trading costs. Slippage: Included (3 ticks) to account for market execution variability. Best Use: This strategy is intended for higher timeframes (Daily or Weekly) on trending assets like Indices, Crypto, or Commodities.Pine Script® stratejisiMrOskama tarafından16
Trend Line Methods (TLM)Trend Line Methods (TLM) Overview Trend Line Methods (TLM) is a visual study designed to help traders explore trend structure using two complementary, auto-drawn trend channels. The script focuses on how price interacts with rising or falling boundaries over time. It does not generate trade signals or manage risk; its purpose is to support discretionary chart analysis. Method 1 – Pivot Span Trendline The Pivot Span Trendline method builds a dynamic channel from major swing points detected by pivot highs and pivot lows. • The script tracks a configurable number of recent pivot highs and lows. • From the oldest and most recent stored pivot highs, it draws an upper trend line. • From the oldest and most recent stored pivot lows, it draws a lower trend line. • An optional filled area can be drawn between the two lines to highlight the active trend span. As new pivots form, the lines are recalculated so that the channel evolves with market structure. This method is useful for visualising how price respects a trend corridor defined directly by swing points. Method 2 – 5-Point Straight Channel The 5-Point Straight Channel method approximates a straight trend channel using five key points extracted from a fixed lookback window. Within the selected window: • The window is divided into five segments of similar length. • In each segment, the highest high is used as a representative high point. • In each segment, the lowest low is used as a representative low point. • A straight regression-style line is fitted through the five high points to form the upper boundary. • A second straight line is fitted through the five low points to form the lower boundary. The result is a pair of straight lines that describe the overall directional channel of price over the chosen window. Compared to Method 1, this approach is less focused on the very latest swings and more on the broader slope of the market. Inputs & Menus Pivot Span Trendline group (Method 1) • Enable Pivot Span Trendline – Turns Method 1 on or off. • High trend line color / Low trend line color – Colors of the upper and lower trend lines. • Fill color between trend lines – Base color used to shade the area between the two lines. Transparency is controlled internally. • Trend line thickness – Line width for both high and low trend lines. • Trend line style – Line style (solid, dashed, or dotted). • Pivot Left / Pivot Right – Number of bars to the left and right used to confirm pivot highs and lows. Larger values produce fewer but more significant swing points. • Pivot Count – How many historical pivot points are kept for constructing the trend lines. • Lookback Length – Number of bars used to keep pivots in range and to extend the trend lines across the chart. 5-Point Straight Channel group (Method 2) • Enable 5-Point Straight Channel – Turns Method 2 on or off. • High channel line color / Low channel line color – Colors of the upper and lower channel lines. • Channel line thickness – Line width for both channel lines. • Channel line style – Line style (solid, dashed, or dotted). • Channel Length (bars) – Lookback window used to divide price into five segments and build the straight high/low channel. Using Both Methods Together Both methods are designed to visualise the same underlying idea: price tends to move inside rising or falling channels. Method 1 emphasises the most recent swing structure via pivot points, while Method 2 summarises the broader channel over a fixed window. When the Pivot Span Trendline corridor and the 5-Point Straight Channel boundaries align or intersect, they can highlight zones where multiple ways of drawing trend lines point to similar support or resistance areas. Traders can use these confluence zones as a visual reference when planning their own entries, exits, or risk levels, according to their personal trading plan. Notes • This script is meant as an educational and analytical tool for studying trend lines and channels. • It does not generate trading signals and does not replace independent analysis or risk management. • The behaviour of both methods is timeframe- and symbol-agnostic; they will adapt to whichever chart you apply them to. Pine Script® göstergesiata_sabanci tarafındanGüncellendi 2626 3.4 K
Slope Rank ReversalThis tool is designed to solve the fundamental problem of "buying low and selling high" by providing objective entry/exit signals based on momentum extremes and inflection points. The System employs three core components: Trend Detection (PSAR): The Parabolic SAR is used as a filter to confirm that a trend reversal or transition is currently underway, isolating actionable trade setups. Dynamic Momentum Ranking: The indicator continuously measures the slope of the price action. This slope is then ranked against historical data to objectively identify when an asset is in an extreme state (overbought or oversold). Signal Generation (Inflection Points): Oversold/Buy: A 🟢 Green X is generated only when the slope ranking indicates the market is steeply negative (oversold), and the slope value begins to tick upwards (the inflection point), signaling potential mean reversion. Overbought/Sell: A 🔴 Red X is generated only when the slope ranking indicates the market is steeply positive (overbought), and the slope value begins to tick downwards, signaling momentum exhaustion. The core philosophy is simple: Enter only when the market is exhausted and has started to turn.Pine Script® göstergesiaccutrades_net tarafından52
Trendlines with Breaks Oscillator [LuxAlgo]The Trendlines with Breaks Oscillator is an oscillator based on the Trendlines with Breaks indicator, and tracks the maximum distance on price from bullish and bearish trendline breakouts. The oscillator features divergences and trendline breakout detection. 🔶 USAGE This tool is based on our Trendlines with Breaks indicator, which detects bullish and bearish trendlines and highlights the breaks on the chart. Now, we bring you this tool as an oscillator. The oscillator calculates the maximum distance between the price and the break of each trendline, for both bullish and bearish cases, then calculates the delta between both. When the oscillator is above 0, the market is in an uptrend; when it is below 0, it is in a downtrend. An ascending slope indicates positive momentum, and a descending slope indicates negative momentum. Trendline breaks are displayed as green and red dots on the oscillator. A green dot corresponds to a bullish break of a descending trendline, and a red dot corresponds to a bearish break of an ascending trendline. The oscillator calculation depends on two parameters from the settings panel: short and long alpha length. These parameters are used to calculate a synthetic EMA with a variable alpha for both bullish and bearish breaks. The final result is the difference between the two averages. As shown in the image, using the same trend detection parameters but different alphas can produce very different results. The larger the alphas, the smoother the oscillator becomes, detecting bigger trends but making it less reactive. This tool features the same trendline detection system as the Trendlines with Breaks indicator, which is based on three main parameters: swing length, slope, and calculation method. As we can see in the image above, the data collected for the oscillator calculation will be different when using different parameters. A larger length detects larger trends. A larger slope or a different calculation method also impacts the final result. 🔹 Signal Line The signal line is a smoothed version of the oscillator; traders can choose the smoothing method and length used from the settings panel. In the image, the signal line crossings are displayed as vertical lines. As we can see, the market usually corrects downward after a bearish crossing and corrects upward after a bullish crossing. Traders can choose among 10 different smoothing methods for the signal line. In the image, we can see how different methods and lengths give different outputs. 🔹 Divergences The tool features a divergence detector that helps traders understand the strength behind price movements. Traders can adjust the detection length from the settings panel. As shown in the image, a bearish divergence occurs when the price prints higher highs, but the momentum on the histogram prints lower highs. A bullish divergence occurs when the price prints lower lows, but the histogram prints higher lows. By adjusting the length of the divergence detector, traders can filter out smaller divergences, allowing the tool to only detect more significant ones. The image above depicts divergences detected with different lengths; the larger the length, the bigger the divergences are detected. 🔶 SETTINGS 🔹 Trendlines Swing Detection Lookback: The size of the market structure used for trendline detection. Slope: Slope steepness, a value of 0 gives horizontal levels, values larger than 1 give a steeper slope Slope Calculation Method: Choose how the slope is calculated 🔹 Oscillator Short Alpha Length: Synthetic EMA short period Long Alpha Length: Synthetic EMA long period Smoothing Signal: Choose the smoothing method and period Divergences: Enable or disable divergences and select the detection length. 🔹 Style Bullish: Select bullish color. Bearish: Select bearish color. Pine Script® göstergesiLuxAlgo tarafından77 2.3 K