Forex IndicatorThis indicator is to be used only in forex. This just a support indicator to filter out good trades, but this doesn't give 100% accuracy.
Corak carta
Teril EMA 20 Body Cross + 1:1 RR AlertTeril EMA 20 Body Cross . Teril EMA 20 Body Cross Teril EMA 20 Body Cross Teril EMA 20 Body Cross Teril EMA 20 Body Cross Teril EMA 20 Body Cross Teril EMA 20 Body Cross Teril EMA 20 Body Cross Teril EMA 20 Body Cross Teril EMA 20 Body Cross
Terils EMA 20 Body Cross + Full Candle BreakEma 20 body cross and confirmation after that for entry.
Ema 20 body cross and confirmation after that for entry.Ema 20 body cross and confirmation after that for entry.Ema 20 body cross and confirmation after that for entry.
Price Key Levels + Days of Week separator with AlertsThis is a redesigned version of tow important indicators for my strategy
Thanks goes to @spacemanbtc and @Tradealigned
- Added close price to existing levels.
- Refined day text separator for basic functionality with more user control
Key Levels + Day Separator & Labels
Key Levels + Day Separator & Labels is a powerful all-in-one market structure utility that combines multi-timeframe price levels with clear session-based day separation. Designed for futures, FX, and crypto traders who define the trading day from 17:00, this indicator helps you instantly contextualize price around the most important reference levels.
🔑 Key Features
Multi-Timeframe Key Levels
Daily, Weekly, Monthly, Quarterly, and Yearly Opens
Previous High / Low / Mid
Previous Close
4H (Intra) Open, High, Low, Mid, and Close
Monday Range (High / Low / Mid)
FX Sessions: Asia, London, New York
All levels can be enabled or disabled individually for a fully customizable chart.
Smart Level Management
Optional level merging when prices overlap
Right-anchored or standard display styles
Adjustable line width, line style, and label size
Global color override for clean visual consistency
Day Separator & Labels (17:00 New Day)
Vertical dashed line marking the start of a new trading day at 17:00
Optional Day-of-Week labels (short or long format)
Designed for futures and FX traders using session-based days
Alerts (User-Centric)
Alerts on price touch (wick or close-based)
Alert on any active level or fine-grained control by timeframe
One alert per level touch (no spam)
🎯 Who This Indicator Is For
Futures traders using CME-style session days
FX traders focused on session behavior
Day traders & swing traders who rely on structured reference levels
Traders who want clarity without clutter
⚙️ How to Use
Enable only the timeframes and levels you trade
Use the Day Separator to visually segment sessions
Watch how price reacts at key opens, highs, lows, mids, and closes
Let alerts notify you when price reaches important levels
📌 Notes
New trading day starts at 17:00
Works best on intraday timeframes
Designed to be lightweight despite extensive functionality
🧠 Tip
Combine this indicator with your existing market structure or order-flow tools to identify high-probability reaction zones at key price levels.
ICT Smart Entry CompanionThe ICT Silver Bullet is a precise, time-based trading strategy by Michael J. Huddleston (Inner Circle Trader) (ICT) that targets specific one-hour "kill zones" during major market sessions (London & New York) to capitalize on short-term liquidity grabs and price imbalances (Fair Value Gaps or FVGs) for quick, high-probability trades, often involving a liquidity sweep followed by a retracement into an FVG for entry. It's a scalping method focused on institutional order flow, requiring discipline to wait for specific setups within tight timeframes, like 3-4 AM (London) or 10-11 AM (NY) EST.
Structural Heat Map (V3 + R3 BMSB Deviation)This indicator measures structural deviations of price from the Weekly Bull Market Support Band (BMSB), adjusted for both micro and macro volatility regimes. It is designed for crypto assets where volatility clustering, leverage cycles, and asymmetric crowding frequently produce blow-off tops and liquidation cascades.
The Weekly BMSB acts as a macro “fair value” baseline, while daily deviations reveal short-term extensions in both bullish and bearish conditions. A hybrid volatility normalization (Daily ATR vs Weekly ATR regime) converts deviations into a continuous 0–100 “structural heat” scale:
0–20: neutral / within structural equilibrium
20–40: early extension
40–60: crowded / extended
60–80: stressed / high-risk
80–100: extreme blow-off or capitulation conditions
Extreme readings highlight periods of structural distortion, not trend reversal signals. These events often coincide with leverage expansions, sentiment extremes, funding dislocations, and cycle peaks or washouts.
Use-case: informational context for crypto cycle analysis, risk awareness, regime characterization, and macro/micro structural comparison. This is not a buy/sell indicator and should not be interpreted as such.
Adaptive ZigZag Context v1 (Stable)Adaptive ZigZag Context v1 (Stable) is a versatile swing structure indicator that adaptively detects pivot highs and lows while providing higher timeframe context. It helps traders visualize market structure, trend bias, and potential reversal points with stable signals.
Key Features:
Detects swing highs and lows adaptively using a configurable pivot leg length.
Draws ZigZag lines connecting confirmed pivots for clear market structure visualization.
Highlights higher timeframe trend bias using EMA and background color (green for bullish, red for bearish).
Usage:
Analyze market swings and identify potential reversal zones.
Combine with other indicators for trend confirmation.
Useful for multi-timeframe analysis with higher timeframe EMA context.
Important Notes:
This indicator does not provide performance guarantees.
Past behavior does not imply future results.
Traders are encouraged to use this tool alongside other analysis techniques and risk management strategies.
Anurag NF BNF Swing J17This system identifies strong trend-based swing opportunities using EMA structure, higher-timeframe confirmation, and volatility expansion.
Entries are taken on pullbacks or breakouts only when multiple filters align, avoiding sideways and low-momentum markets.
Each trade uses ATR-based stop loss and predefined risk-reward targets for disciplined risk management.
The script tracks only one active trade at a time to prevent false or duplicate alerts.
Built specifically for Indian index behavior, it includes theta-decay protection and confidence scoring for high-probability setups.
Anurag US Swing PRO (SPY/QQQ + MegaCaps + High Beta) v1.0 FIXUS Swing PRO finds high-probability swing entries using EMA trend structure + higher-timeframe confirmation + momentum/volatility (TR impulse) filters.
It triggers trades on pullbacks and/or breakouts, then auto-calculates Entry, Stop Loss, and Target using ATR-based risk with a confidence score.
It tracks only one active trade at a time and fires clean alerts only for real entries/exits (no duplicate/fake alerts).
TE_ARCH_PULSE🔷 TE_ARCH_PULSE (ARCH) – Smart Trend, Risk & Options Trading System
🔷TE_ARCH_PULSE is a non-repainting, multi-layer trading indicator designed for Index,
Stocks & Options traders, combining:
🔹 Adaptive ARCH trend logic
🔹 Precise Buy / Sell signals
🔹 Auto & Manual Stop-Loss
🔹 Up to 5 dynamic targets
🔹 Trailing Stop Loss (TSL)
🔹 ADX + BBP market strength analysis
🔹 Live Dynamic Option Strikes (ITM / ATM / OTM)
🔹 Manual Option Chain with Delta & Risk-Reward
🔹 Advanced Pivot Points (Camarilla / Traditional / Fibonacci etc.)
This is NOT a strategy, it is a decision-support trading system.
🔶 1️⃣ Core ARCH Logic (Heart of the System)
ARCH is a volatility-adaptive trend filter.
Buy Signal (B)
Triggered when:
Price is above ARCH filter
Price is rising
ARCH direction is upward
Sell Signal (S)
Triggered when:
Price is below ARCH filter
Price is falling
ARCH direction is downward
🔹 No repeated signals in same direction
🔹 No repainting after candle close
🔶 2️⃣ Visual Signals & Bar Coloring
Green Arrow (B) → Buy setup
Red Arrow (S) → Sell setup
Optional Bar Coloring:
🟢 Bullish
🔴 Bearish
Signal distance from candle can be adjusted to avoid clutter.
🔶 3️⃣ Entry, Stop-Loss & Target System (Professional Grade)
▶ Entry
Entry is calculated with buffer points to avoid fake breakouts
Entry confirmation is tracked candle-by-candle
▶ Stop-Loss (3 Types)
You can use any ONE or combination:
1. Auto SL
Based on recent swing high / low
Optional buffer to avoid SL hunting
2. Multiplier SL
Based on ARCH volatility
Automatically adapts to market speed
3. Manual SL
Fixed Points OR Percentage
🧠 System always considers the most logical SL for Risk-Reward.
🔶 4️⃣ Target System (Up to 5 Targets)
TGT1 – TGT3 (default)
Optional TGT4 & TGT5 (for trending days)
Targets are:
Volatility-based (ARCH)
Automatically marked HIT (✅) with date & time
Lines change color once target is achieved.
🔶 5️⃣ ARCH Trailing Stop Loss (TSL)
Swing-based trailing logic
Works only after signal confirmation
Helps:
Lock profits
Ride strong trends
Avoid emotional exits
🔶 6️⃣ Smart Signal Panel (Bottom-Right Table)
The table shows LIVE STATUS:
✔ Current Signal (BUY / SELL)
✔ Entry Price & Time
✔ Auto SL & Manual SL hit status
✔ Target hit timestamps
✔ Risk / Reward ratio
✔ BBP (Bull vs Bear Power)
✔ ADX Value, Zone & DI condition
This makes the indicator self-explanatory during live trading.
🔶 7️⃣ ADX Trend Strength & Market Zones
ADX Zones:
< 20 → Rangebound
20 – 25 → Weak Trend
25 – 40 → Trending
40 – 60 → Strong Trend
> 60 → Very Strong Trend
Optional background highlighting helps instantly identify:
🔵 Sideways
🟢 Bullish dominance
🔴 Bearish dominance
🔶 8️⃣ BBP – Bull Bear Power Confirmation
Shows:
Bull Power strength
Bear Power strength
Strong / Weak / Neutral zones
Useful for:
Entry confirmation
Partial profit booking
Avoiding late entries
🔶 9️⃣ Dynamic Option Strikes (Index Traders)
Automatically calculates:
ITM / ATM / OTM strikes
Based on Entry Price
Strike step auto-adjusts:
NIFTY → 50
BANKNIFTY → 100
SENSEX → 100
Also clearly shows:
Buy CALL (CE) for BUY signals
Buy PUT (PE) for SELL signals
Disabled automatically on option charts to avoid confusion.
🔶 🔟 Manual Option Chain (Advanced Feature)
✔ Fixed strikes around ATM
✔ Live CE & PE LTP
✔ Previous day comparison
✔ Black-Scholes Delta (Δ)
✔ Expiry-aware volatility
✔ Indian VIX integration
Perfect for:
Directional option buyers
Strike selection
Confidence-based entries
🔶 1️⃣1️⃣ Risk / Reward Calculator
Automatically computes:
Risk (SL distance)
Reward (Target distance)
R-Multiple (R)
Supports:
TGT3 or TGT5 based RR
Auto or Manual SL source detection
🔶 1️⃣2️⃣ Advanced Pivot Points (Bonus Module)
Supported Pivot Types:
Camarilla
Traditional
Fibonacci
Woodie
Classic
DM
Timeframes:
1MIN
3 MIN
5 MIN
10 MIN
15 MIN
30 MIN
45 MIN
1H
2H
4H
DAILY
✔ Individual level toggle
✔ Labels + Price
✔ Historical pivots
✔ Clean auto-cleanup
🔶 Example Workflow (Simple) - For Buy signal
📍 Chart: NIFTY 5-min
Buy arrow appears with B (buy) Signal
Entry above triggers (with buffer)
Auto SL plotted below swing
TGT1 & TGT2 hit
TSL trails price
Table confirms R:R + ADX trend
Option chain suggests ATM CE
Everything visible. No guesswork.
🔶 Example Workflow (Simple) - For Sell signal
📍 Chart: NIFTY 5-min
Sell arrow appears with S (Sell) Signal
Entry below triggers (with buffer)
Auto SL plotted above swing
TGT1 & TGT2 hit
TSL trails price
Table confirms R:R + ADX trend
Option chain suggests ATM PE
Everything visible. No guesswork.
⚠️ Disclaimer
This indicator is for educational & analysis purposes only.
It does NOT guarantee profits.
Always follow risk management and trade responsibly.
Pullback Strategy with RSI FilterMean reversion strategy based on price pullback and oversold filter.
Vijay-17 Jan 2016- MISTest for Indicator and is sample.Test for Indicator and is sample. This is for sample only
Trappp's Advanced Multi-Timeframe Trading ToolkitTrappp's Advanced Multi-Timeframe Trading Toolkit
This comprehensive trading script by Trappp provides a complete market analysis framework with multiple timeframe support and resistance levels. The indicator features:
Key Levels:
· Monthly (light blue dashed) and Weekly (gold dashed) levels for long-term context
· Previous day high/low (yellow) with range display
· Pivot-based support/resistance (pink dashed)
· Premarket levels (blue) for pre-market activity
Intraday Levels:
· 1-minute opening candle (red)
· 5-minute (white), 15-minute (green), and 30-minute (purple) session levels
· All intraday levels extend right throughout the trading day
Technical Features:
· EMA 50/200 cross detection with alert labels
· Candlestick pattern recognition near key levels
· Smart proximity detection using ATR
· Automatic daily/weekly/monthly updates
Trappp's script is designed for traders who need immediate visual reference of critical price levels across multiple timeframes, helping identify potential breakouts, reversals, and pattern-based setups with clear, color-coded visuals for quick decision-making.
Advanced Trading ToolkitTrappp's Advanced Multi-Timeframe Trading Toolkit
This comprehensive trading script by Trappp provides a complete market analysis framework with multiple timeframe support and resistance levels. The indicator features:
Key Levels:
· Monthly (light blue dashed) and Weekly (gold dashed) levels for long-term context
· Previous day high/low (yellow) with range display
· Pivot-based support/resistance (pink dashed)
· Premarket levels (blue) for pre-market activity
Intraday Levels:
· 1-minute opening candle (red)
· 5-minute (white), 15-minute (green), and 30-minute (purple) session levels
· All intraday levels extend right throughout the trading day
Technical Features:
· EMA 50/200 cross detection with alert labels
· Candlestick pattern recognition near key levels
· Smart proximity detection using ATR
· Automatic daily/weekly/monthly updates
Trappp's script is designed for traders who need immediate visual reference of critical price levels across multiple timeframes, helping identify potential breakouts, reversals, and pattern-based setups with clear, color-coded visuals for quick decision-making.
Advanced kNN Target Price and TimeDeliver Target Price, Target Price probability and time to reach.
Machine Learning Based.
SMT Divergencecreates accurate smt divergences
18:50-19:10
19:50-20:10
21:50-22:10
00:50-01:10
02:00-02:30
02:50-03:10
08:50-09:10
09:30-09:50
09:50-10:10
10:50-11:10
11:50-12:10
13:10-13:40
15:15-15:45
cg - Absorption + High Volume + CVDThis indicator is designed to assist traders in identifying potential limit entry zones along with confirmation signals based on price behavior and technical conditions. It highlights areas where price may react, helping traders plan entries with a structured and disciplined approach.
The indicator provides both Buy Limit and Sell Limit levels, as well as confirmation signals to improve timing and trade confidence. Users can select from four different signal options, allowing flexibility for conservative or aggressive trading styles.
All signals are generated using predefined logic based on historical price data and market structure. This indicator does not predict future price movement and should be used as a decision-support tool, not as a standalone system.
Key features include multi-timeframe compatibility, customizable signal options, and broad market support including Forex, Crypto, Indices, and Stocks. It is suitable for scalping, day trading, and swing trading when combined with proper risk management.
⚠️ This indicator is intended for educational and analytical purposes only and does not provide financial advice. Trading involves risk, and users are responsible for their own trading decisions.
Chart Basicschart basics
> vwap
> time
> stuff
woo
18:50-19:10
19:50-20:10
21:50-22:10
00:50-01:10
02:00-02:30
02:50-03:10
08:50-09:10
09:30-09:50
09:50-10:10
10:50-11:10
11:50-12:10
13:10-13:40
15:15-15:45
Eccodax Robust k-NN Machine Learning LorentzianHere is the complete, final, corrected, and clean code, already including:
✅ Fixed shadowing of the variable d
✅ No compilation warnings
✅ No temporal leaks
✅ Target = real future return
✅ Robust Lorentzian distance
✅ Correct Matrix structure
✅ Consistent feature engineering
✅ Min-Max normalization
✅ Weighted k-NN inference
✅ Correct price reconstruction
1. What this code is
It is a predictive indicator based on classic Machine Learning (k-Nearest Neighbors), fully implemented in PineScript v6, designed to:
Learn historical market patterns
Compare the current state with similar past states
Estimate the expected future price movement
Reconstruct a projected price consistent with the current level
It is not an oscillator, it is not a traditional technical indicator, and it does not react only to the immediate past.
2. What the Model Learns (Supervised Learning)
2.1 Features (Input Variables)
The model uses three dimensions of information, all normalized by Z-score:
Return
Measures the percentage change in price
Captures the immediate momentum of the market
Momentum (ROC)
Measures acceleration or deceleration of the movement
Differentiates trends from consolidations
Volatility
Measures the degree of market uncertainty
Adjusts the weight of strong movements vs. noise
These three variables form a market state vector.
2.2 Normalization (Z-Score)
Each feature is converted to:
Mean ≈ 0
Standard deviation ≈ 1
This ensures that:
No variable dominates the distance
The statistical comparison is valid
The model is stable in different price regimes
2.3 Target (Predicted Variable)
The model does not predict absolute price. It learns:
Observed future return after forecastBars
That is:
Learns movement, not level
Eliminates historical bias
Avoids predictions inconsistent with the current price
3. How the model makes the prediction
3.1 Search for similar patterns (k-NN)
For each current candle, the model:
Analyzes the last lookback candles
Calculates the Euclidean distance between the current state and each past state
Selects the k most similar states
Observes what happened after them
3.2 Inference
The predicted return is calculated as:
Weighted average of the future returns of the neighbors
Weights inversely proportional to the distance
More similar states → greater influence.
4. Price Reconstruction (Key Information)
From the predicted return, the model reconstructs:
Predicted Price = Current Close × (1 + Predicted Return)
Predicted Price = Current Close × (1 + Predicted Return)
This ensures that:
The forecast respects the current market level
The output is visually interpretable
There is no regression to past regimes
5. Relevant Information the Indicator Delivers
5.1 Predicted Price (Green Line)
What it is: Estimated price after forecastBars.
How to use:
Above the current price → bullish bias
Below → bearish bias
Large distance → expectation of strong movement
5.2 Predicted Return (Implicit)
Even though not plotted directly, it is the most important information in the model.
Positive → expectation of appreciation
Negative → expectation of decline
Negative → expectation of decline
Near zero → sideways market
5.3 Directional Classification (optional)
The model also acts as a binary classifier:
High if expected return > 0
Low if expected return < 0
This is used as:
Noise filter
Trend confirmation
False signal reduction
5.4 Implicit statistical context
The indicator carries information that is not visual, but is fundamental:
Market regime (trending vs. sideways)
Statistical similarity with the past
Relative confidence (via distance from neighbors)
6. What this indicator does NOT do
It is important to align expectations:
❌ Does not predict exogenous events
❌ Does not anticipate gaps
❌ Does not work well on illiquid assets
❌ Does not extrapolate long trends
k-NN replicates patterns, does not create scenarios Unprecedented.
7. Where this model works best
Markets with repetitive structure
Medium timeframes (5m – 1D)
Liquid assets
Environments with alternating regimes
8. How to use it in practice (professional recommendation)
Ideal use:
k-NN direction → bias
Technical indicator → timing
Risk management → execution
Never use it in isolation for entry.
9. Executive summary
This code delivers:
A functional supervised ML model in Pine
Prediction consistent with the current price
Statistical market direction
Reduction of historical bias
Solid foundation for quantitative strategies
Flexible S/R Channels🟩 Flexible S/R Channels is a visualization tool that draws curved support and resistance boundaries through user-defined anchor points. Unlike traditional trendlines and channels that force linear interpretation onto price action, this indicator captures the curved structures that markets frequently form—rounded tops and bottoms, parabolic advances and declines, arcing rallies and pullbacks. Three anchor points per curve define the shape; the indicator fits a smooth mathematical curve through these points and projects it forward. The approach is simple: draw what you see. Curved market structure that resists precise definition with traditional tools can now be rendered with mathematical accuracy.
The indicator bridges the gap between static drawing tools and programmable indicators. TradingView's arc tool draws curves but produces only visual pixels with no analytical value. Flexible S/R Channels creates live data series that integrate with other analysis tools. Four curve-fitting methods—Quadratic, Quadratic-Linear, Weighted Linear, and Natural Cubic Spline—accommodate different market structures. The curved levels naturally lend themselves to breakout and reversion strategies—applications left to the trader's discretion. The open-source code invites experimentation and customization.
💡 THEORY AND CONCEPT 💡
Traders have long relied on horizontal levels and diagonal trendlines to define support and resistance. Linear tools assume constant slope—a property rarely exhibited by actual market movement. When momentum accelerates or decelerates, price trajectories curve rather than hold to fixed angles. The resulting structures—parabolic advances during expansion phases, arcing pullbacks during consolidation, rounded formations at reversal points—represent changes in the rate of change itself. Traditional drawing tools cannot accommodate this variable geometry without sacrificing mathematical precision..
Flexible S/R Channels extends familiar support and resistance concepts into curved space. The approach is simple: draw what you see. When the eye recognizes a curved boundary in price action, this indicator provides the means to define it precisely. Three anchor points per curve—an initial point, an intermediate point, and a recent point—are all that is required. The indicator fits a smooth mathematical curve through these points and extends it forward as a projection.
This indicator represents a blend of human pattern recognition and algorithmic precision. Fully automated indicators make decisions without user input—efficient but detached from trader discretion. Manual drawing tools rely entirely on freehand skill—expressive but imprecise. Flexible S/R Channels occupies the middle ground. The trader identifies the curved structure; the algorithm renders it mathematically. The result is human insight expressed with computational accuracy—for traders who recognize curved structure in price action but lack precise tools to define it.
This projection is not a prediction. It is a visual hypothesis—a structured way of asking "if this trajectory continues, where would price be?" The underlying assumption is simple: like Newton's first law of motion, a trajectory in motion tends to continue unless acted upon by an external force. Future price action validates or invalidates the projection, just as it does with any trendline or channel.
TradingView offers an arc drawing tool for freehand curved lines, but these are purely visual—static pixels on a screen with no programmable value. Flexible S/R Channels bridges this gap. The fitted curves exist as data series that can generate alerts, trigger signals, and interact with other analysis tools. The visual drawing becomes operational structure.
🔁 CURVE METHODS 🔁
The indicator offers four curve-calculation methods, each producing different shapes suited to different market structures:
Quadratic — Fits a parabolic arc through the three anchor points. Best for smooth, continuous curves such as rounded tops and bottoms. It captures the natural "swing" of the market, assuming the momentum will maintain its current rate of acceleration or deceleration.
Quadratic-Linear — Uses a parabolic curve through the anchor points, then transitions to a straight line after the final anchor. Useful when curved structure gives way to linear trend continuation. This is the "bridge" between a turning market and a steady, directed move, preventing the projection from curving back on itself when the price begins to run.
Weighted Linear — Connects anchor points with straight line segments rather than a smooth curve. Suited for angular market structures with distinct inflection points. It treats the market as a series of rigid shifts, providing a clear "corridor" when the price is bouncing between sharp, diagonal levels.
Natural Cubic Spline — Produces the smoothest curve by minimizing abrupt directional changes. Ideal for organic, flowing market movements. It acts as a flexible spine that adapts to complex transitions without the rigid constraints of a fixed geometric shape.
Quadratic Fitting : A smooth, parabolic arc defines a curved resistance boundary. By fitting a mathematical path through three anchor points, the curve captures rounded structures and arcing price action that traditional linear trendlines fail to represent.
Weighted Linear Fitting : This method produces an angular, segmented path by connecting anchor points with distinct linear slopes. Unlike the continuous smoothness of a quadratic arc, the weighted linear approach creates a more jointed geometry, allowing for a precise match to market structures that exhibit sharp, localized changes in trajectory.
Natural Cubic Spline Fitting : This method creates a highly fluid, elastic curve that can accommodate complex price oscillations. In this instance, the curves define a narrowing range as support and resistance converge, highlighting the volatility compression that often precedes a significant breakout or breakdown from established structures.
🖱️ HOW IT WORKS 🖱️
1️⃣ Initial Setup
Unlike traditional indicators that calculate values automatically from price data, Flexible S/R Channels requires user-defined anchor points. This is intentional. The trader's eye is the pattern recognition engine—no algorithm can see the curved structure that experience and intuition reveal. The indicator waits for this input, then applies mathematical precision to render what the trader has identified.
The Recognition of Natural Structure : Effective analysis begins when a curved rhythm becomes visible within price action that traditional trendlines cannot satisfy. Identifying the specific swing highs and swing lows that define these boundaries is the first step in organizing a chart. By isolating three key pivots for resistance and three for support, the underlying framework of the market's trajectory is established, providing the necessary coordinates to accurately map the path.
Interactive Setup Workflow : Upon loading, the indicator prompts for the sequential selection of six points—three swing highs and three swing lows—to serve as the raw data for the calculation. While the chart remains blank during this initial phase, the curves generate instantly once the final anchor is confirmed. These points are not permanent; they appear as interactive grips that can be dragged in real time to refine the boundaries as the market structure evolves.
The indicator prompts for six sequential selections—three for resistance, three for support. The first three selections define the resistance boundary; the final three define support. This sequential grouping is distinct from zigzag-style selection patterns. Within each group, clicking order is flexible—the algorithm automatically sorts points chronologically, allowing traders to select visually prominent pivots in whatever sequence feels natural.
Structural Anchor Identification : Identifying three key swing highs and three key swing lows provides the foundation for the dual-curve geometry. These specific structural peaks and troughs serve as the coordinates for the mathematical models, ensuring that the resulting boundaries accurately reflect the underlying skeleton of the market action.
2️⃣ Interactive Adjustment
After the initial setup, all six anchor points are fully adjustable:
Points are automatically sorted chronologically regardless of selection order
Grip handles appear at each anchor location
Any point can be repositioned by clicking and dragging its grip handle
The curves recalculate instantly as points are adjusted
The algorithm produces a mathematically perfect curve based on the anchor points provided. If the result does not match the trader's vision, adjustments are immediate. This iterative refinement—see, adjust, refine—continues until the rendered curve represents what the trader sees in the price action. The user remains in control; the algorithm remains in service.
Interactive Channel Boundaries : Six user-defined anchor points—three for resistance and three for support —establish a non-linear range that moves beyond the constraints of a flat, horizontal channel. This configuration captures the arcing trajectory of the market while showing price action respecting the curved boundaries in a classic reversion pattern. By manually positioning these anchors, a dynamic dimension is added to the chart that maintains structural integrity even as the price follows a rounded path.
🛠️ SETTINGS 🛠️
Customizable Visual Feedback : Beyond the core geometry, the visualization offers various user-defined settings to tailor the chart's information density. From identifying specific price targets to toggling structural labels, these options allow the trader to adjust the level of detail to suit their personal analysis style while maintaining a clear view of the non-linear boundaries.
Configuration Options
Curve Method — Select the curve-fitting algorithm: Quadratic, Quadratic-Linear, Weighted Linear, or Natural Cubic Spline.
Projection Length — Number of bars to project the curves beyond current price action. Projections appear as dashed lines.
Visual Settings
Grip Size — Size of the draggable handles displayed at each anchor point. Set to zero to hide grips entirely.
Line Width — Thickness of the support and resistance curves.
Support Color / Resistance Color — Color settings for each curve.
Show Info Table — Toggle display of the info table showing the current curve method in the chart corner.
Advanced: Time/Price Coordinates
The settings panel includes precise time and price values for each of the six anchor points, grouped under Resistance Time/Price and Support Time/Price. These values are populated automatically when points are selected on the chart.
Adjusting anchor points by dragging the grip handles directly on the chart is faster and more intuitive. The time/price fields are available for situations requiring exact coordinate entry—such as aligning an anchor to a specific candle timestamp or a precise price level. These fields can be safely ignored unless fine-tuning is necessary.
🖼️ CHART EXAMPLES 🖼️
The Flexible S/R Channels indicator adapts to diverse market structures across multiple timeframes and instruments. Curved boundaries can define subtle momentum shifts in near-linear trends, dramatic reversals in rounding formations, or volatility compression as channels converge toward breakout points. The four curve-fitting methods accommodate different geometries—smooth parabolic arcs for continuous momentum changes, segmented linear paths for angular structures, and elastic splines for complex oscillations. Each anchor point adjustment instantly recalculates the curves, allowing iterative refinement until the rendered boundaries align with the trader's interpretation of market structure. Forward projections extend these mathematical relationships into future territory, providing visual context for hypothetical support and resistance levels if current trajectories persist.
Subtle Curve Alignment : Even in structures that appear linear, subtle curvature allows the channel boundaries to breathe with the market’s internal momentum. By utilizing three anchor points rather than two, the channel adapts to the slight acceleration of a trend, providing a more precise fit than a rigid, straight corridor.
Decelerating Momentum and Convergence : This classic rounding structure illustrates a transition where the initial wide oscillations between highs and lows begin to contract. As the boundaries converge, the curve captures the diminishing volatility and the shift in market energy, providing a clear visual representation of a trend losing its expansive momentum as it approaches a potential turning point.
Organic Trend Modeling : In an accelerating uptrend, the Natural Cubic Spline provides a highly adaptable boundary that mirrors the organic flow of momentum. This non-traditional approach allows the channel to follow complex price pulses that a standard linear trendline would likely cut through, maintaining a precise fit even as the angle of the trend shifts over time.
Non-Linear Projections : Unlike standard trendlines that converge at a fixed rate, curved projections adapt to the historical momentum of the move. This allows the indicator to map a dynamic squeeze, capturing the subtle nuances of how price action tightens toward an apex. It provides a more sophisticated view of future convergence points that traditional linear channels often fail to anticipate.
The "Draw What You See" Philosophy : Market structures are rarely perfect, and this example highlights the indicator’s ability to map unconventional rhythms. Rather than forcing price into a predefined category, the tool remains flexible enough to define any structural path the trader identifies. If you can see a trend's trajectory, the indicator can provide the mathematical framework to support it.
Comparative Projection Modeling : Using identical anchor points as above, this example demonstrates how selecting a different calculation method can alter the projected path. While the historical fit remains precise, the variation in the forward-looking trajectory allows traders to explore multiple mathematical interpretations of the same market structure, choosing the model that best aligns with the current volatility and trend behavior.
Extended Timeframe Channel Definition : This multi-year perspective demonstrates the indicator's ability to define curved channel boundaries across extended timeframes spanning hundreds of bars and multiple market cycles. The resistance curve captures the rounded distribution of swing highs while the support curve follows the accelerating base formation, creating a non-linear channel that frames long-term structural trends more precisely than traditional parallel channels or static trendlines.
Rounding Bottom Reversal and Channel Convergence : This example captures a classic rounding bottom formation—a reversal pattern that linear tools cannot adequately define. The Quadratic method produces a smooth parabolic arc through the resistance anchors, tracing the deceleration of the downtrend, the capitulation low, and the subsequent re-acceleration upward as a single continuous curve. The support boundary mirrors this momentum shift from below, creating a curved channel that narrows toward current price. This convergence represents structural compression—the boundaries tightening as volatility contracts and directional resolution approaches. Price action oscillates within these non-linear boundaries, demonstrating that channel behavior persists even when the geometry is curved rather than parallel. The projection extends both curves forward, mapping the hypothetical trajectory if the current momentum structure continues, providing visual context for potential breakout or breakdown levels as the channel reaches its apex.
Built-in Precision vs. Algorithmic Power : While TradingView offers basic curve drawing tools (shown here as dashed lines), the Flexible S/R Channels indicator elevates this concept into a functional analytical framework. By converting manual observations into mathematical models, it moves beyond mere drawing to provide a data-driven structure that can be utilized for advanced technical analysis and future Pine Script trading logic.
⚙️ TECHNICAL DETAILS ⚙️
Curve Fitting vs. Overfitting: The term curve fitting often carries negative connotations in quantitative analysis due to its association with overfitting—the practice of adjusting a model until it perfectly matches historical data, producing an illusion of accuracy that fails when applied to new data. The application here is fundamentally different. Flexible S/R Channels does not optimize parameters to maximize historical fit; it constructs a mathematical curve through user-selected anchor points, then projects that curve into unknown territory. The curve is not fitted to price data—it is fitted to structural pivots identified by the trader. The projection represents a hypothesis about trajectory continuation, not a prediction derived from statistical optimization. Future price action validates or invalidates this hypothesis in real time, exactly as it does with any trendline or channel. The anchor points remain fixed unless manually adjusted, ensuring the curve does not adapt to new data retroactively.
Non-Repainting Behavior: The indicator does not repaint historical bars. The mathematical coefficients that define each curve are calculated once—when the final anchor point is set—and stored as fixed values. These coefficients remain constant unless an anchor point is manually repositioned. The backfit polyline is drawn once using these coefficients, spanning the known range from the first to last anchor point. The plot() function applies the same coefficients to each subsequent bar, updating in real-time as new bars form but never altering previously plotted values. The projection polyline extends forward from the current bar using the same fixed coefficients, projecting a user-defined number of future bars (maximum 500). This projection redraws on each tick to maintain its position relative to the moving current bar, but the mathematical trajectory remains constant—only the starting point advances. The current bar's curve value will update tick-by-tick as price develops, which is standard real-time behavior, not repainting. Once a bar closes, all curve values on that bar are permanent. The hybrid architecture (backfit polyline for known history, plot() for unlimited real-time range, projection polyline for controlled forward extension) prevents overflow errors while maintaining non-repainting integrity across all components.
🗒️ NOTES 🗒️
The indicator renders curves based on any anchor points provided without validation. Unusual anchor placement produces mathematically accurate but potentially non-useful results. Adjustment is iterative—if the curve doesn't match expectations, reposition the anchors.
Because anchor points are stored as specific time and price coordinates, a new instance of the indicator should be added when analyzing a different chart or timeframe.
Grip handles can be hidden by setting Grip Size to zero in the settings. This is useful for clean chart screenshots or presentations where interactive elements are not needed.
Projection length can be set to zero if forward-looking curves are not desired. The indicator will still render the backfit curves through the anchor points and continue plotting in real-time without the dotted projection extensions.
Anchor points remain fixed at their selected time-price coordinates as new bars form. The curves extend forward automatically from these historical anchors, allowing observation of how projected trajectories align with developing price action.
⚠️ DISCLAIMER ⚠️
The Flexible S/R Channels indicator is a visual analysis tool designed to illustrate geometric market inertia and serve as a framework for understanding dynamic support and resistance. While the indicator generates structural channels and projected paths, no guarantee is made regarding the accuracy or profitability of these projections. Like all technical indicators, the curves and boundaries generated by this tool may appear to align with favorable trading opportunities in hindsight. However, these visualizations are not intended as standalone recommendations for trading decisions. This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis.
🧠 BEYOND THE CODE 🧠
Flexible S/R Channels is part of a broader collection of tools designed to provide structured market analysis. This includes the Grid Bot Simulator , the Grid Bot Auto , the Grid Bot Parabolic , and the Gridbot Ping Pong . While each tool serves a distinct purpose, they all utilize dynamic anchor mechanics and non-linear boundaries to adapt to evolving market conditions.
This indicator shares the same educational philosophy as the Fibonacci Time-Price Zones and the Fibonacci Geometry Series - providing frameworks for understanding market concepts through visualization and experimentation rather than black-box signals.
The Flexible S/R Channels indicator, like other xxattaxx indicators , is designed to encourage both education and community engagement. Feedback and insights are invaluable to refining and enhancing this tool. We look forward to the creative applications, observations, and discussions this indicator inspires within the trading community.
SApex - DWM & KZ (SarahFX)Indicator that marks custom sessions and also PDL/PDH PWL/PWH PML/PMW and changes color when it reaches any of those levels
IV Volatility History v1.2# Realized Volatility History - Quick Start Guide
## What This Does
Displays historical realized volatility (RV) calculated directly from price movements. Compare it against your current implied volatility to identify options trading opportunities and gauge whether premium is expensive or cheap.
## How to Use
1. **Get Current IV**: Check your broker's options chain and find the ATM (at-the-money) implied volatility for your ticker
2. **Input the Value**: Open indicator settings and enter the current IV (e.g., `0.15` for 15%) - this creates a reference line
3. **Read the Chart**:
- **Purple line** = Historical realized volatility from actual price movements
- **Red dashed line** = Your current ATM IV (reference)
- **Orange line** = 30-day moving average (optional)
4. **Interpret the Data**:
- **RV below IV** → Options premium is relatively expensive (consider selling premium)
- **RV above IV** → Options premium is relatively cheap (consider buying options)
- **IV Rank > 70%** → High volatility environment
- **IV Rank < 30%** → Low volatility environment
## Settings You Can Adjust
- **Current ATM IV**: Reference line for comparison (update periodically)
- **RV Rolling Window**: Calculation window for realized volatility (default: 10 days)
- **Lookback Period**: Period for IV rank calculation (default: 60 days)
- **Show 30-Day Average**: Toggle moving average line
## Limitations
This indicator requires manual IV updates since TradingView doesn't have direct access to options data. You'll need to check your broker periodically and update the input for accuracy.
---
*Method: Calculates annualized realized volatility using rolling standard deviation of log returns, providing a comparison baseline for evaluating implied volatility levels.*
AI Gamma Levels - Options Flow Signals v1.1# AI Gamma Levels - Options Flow Signals
## 📊 Overview
An educational indicator that estimates institutional options positioning using price action, volume analysis, and technical indicators. Designed to help traders identify key support and resistance zones based on gamma exposure concepts commonly used by market makers and institutional traders.
## 🎯 Key Features
**Gamma Flip Level (⚡)**
- Neutral zone where market maker hedging behavior changes
- Calculated using VWAP and price action
- Acts as dynamic pivot point for intraday trading
**Call Wall (🔴)**
- Resistance zone from heavy call seller positioning
- Identifies where upward price movement may stall
- Based on recent highs + ATR-adjusted volatility
**Put Support (🟢)**
- Support zone from put seller positioning
- Shows where downward moves may find buyers
- Calculated from recent lows with volatility adjustment
**AI Trade Signals (🔮)**
- Multi-factor confluence detector with confidence scoring
- Only triggers on high-probability setups (70%+ confidence)
- Provides clear entry, stop loss, and target levels
- Combines gamma regime, RSI, volume, and price proximity
**Regime Detection**
- Identifies Positive Gamma (bullish bias) vs Negative Gamma (volatile) environments
- Background coloring shows current market regime
- Helps adapt trading strategy to market conditions
**Trading Zone Visualization**
- Shaded area between Call Wall and Put Support
- Shows expected trading range based on gamma positioning
- Zone width indicates market compression or expansion
## 🧠 How AI Signals Work
The AI signal layer analyzes multiple factors simultaneously:
1. **Gamma Regime Alignment** - Price position relative to Gamma Flip
2. **Level Proximity** - Distance to Put Support or Call Wall
3. **Momentum Extremes** - Fast RSI showing oversold/overbought
4. **Volume Confirmation** - Above-average volume on the setup
5. **Price Action Quality** - Bar range and volatility characteristics
Signals only trigger when ALL conditions align, reducing noise and false signals.
**BUY Signal Requirements:**
- Price above Gamma Flip (positive regime)
- Near Put Support (within 0.5%)
- RSI < 35 (oversold)
- Volume spike (1.4x average)
- Confidence ≥ 70%
**SELL Signal Requirements:**
- Price below Gamma Flip (negative regime)
- Near Call Wall (within 0.5%)
- RSI > 65 (overbought)
- Volume spike (1.4x average)
- Confidence ≥ 70%
## 📈 How to Use
**For Day Trading:**
- Watch for bounces at Put Support in positive gamma regime
- Look for resistance at Call Wall in negative gamma regime
- Use AI signals for high-conviction entries with clear risk levels
**For Swing Trading:**
- Monitor zone width for compression/expansion cycles
- Enter when price returns to zone edges with AI confirmation
- Use Gamma Flip as trailing stop reference
**For Options Traders:**
- Identify where institutional gamma is concentrated
- Anticipate pinning behavior near expiration
- Understand market maker hedging flow impact on price
## ⚙️ Customization
**Display Settings:**
- Toggle individual levels on/off
- Show/hide trading zone shading
- Enable/disable AI signals
**Calculation Parameters:**
- Lookback Period (5-100 bars) - adjusts level sensitivity
- Volatility Multiplier (0.5-3.0) - widens/tightens zones
- AI Confidence Threshold (60-90%) - signal selectivity
**Visual Customization:**
- Custom colors for all levels
- Adjustable transparency for zones
- Label size and positioning
## 📊 Info Table
Real-time dashboard showing:
- Current Gamma Flip price
- Call Wall resistance level
- Put Support level
- Active gamma regime
- Trading zone width (%)
- AI signal status and confidence
## 🔔 Built-in Alerts
Set alerts for:
- Gamma Flip crossovers
- Price approaching Call Wall
- Price approaching Put Support
- AI BUY signal triggered
- AI SELL signal triggered
## 📚 Educational Background
**What is Gamma Exposure?**
Gamma measures how fast market makers must hedge their options positions as price moves. Large gamma concentrations create support/resistance as dealers buy into weakness and sell into strength.
**Positive vs Negative Gamma:**
- **Positive Gamma** (above Gamma Flip): Market makers hedge by stabilizing price
- **Negative Gamma** (below Gamma Flip): Market makers hedge by amplifying moves
**Call Walls & Put Supports:**
Heavy open interest at specific strikes creates "walls" where price tends to gravitate toward or bounce away from, especially near expiration.
## ⚠️ Important Notes
**This indicator uses price and volume approximations**, not real options chain data. It demonstrates gamma exposure concepts for educational purposes.
**For true options flow analysis**, consider using platforms with access to real-time open interest, options volume, and Greeks data.
**Risk Management:** Always use proper position sizing, stop losses, and never risk more than you can afford to lose. This indicator should be one tool in your complete trading strategy.
**Not Financial Advice:** This is an educational tool. Past performance does not guarantee future results. Always do your own research and consider consulting with a qualified financial advisor.
## 💡 Best Practices
1. Combine with your existing strategy - don't trade signals blindly
2. Use on liquid stocks/indices with active options markets
3. Pay attention to regime changes at Gamma Flip crossovers
4. Higher timeframes (15m, 1H, 4H) tend to be more reliable
5. Adjust parameters based on the asset's typical volatility
6. Wait for AI signals with 75%+ confidence for highest quality setups
## 🎓 Who This Is For
- Options traders seeking to understand institutional positioning
- Day traders looking for high-probability support/resistance
- Swing traders identifying key zone boundaries
- Anyone interested in learning about gamma exposure impact on price
- Traders wanting AI-assisted trade signal confirmation
---
**Happy Trading! If you find this indicator helpful, please leave a like and comment with your feedback.**






















