Supertrend + OBV AND Logic (long only)Supertrend + OBV Regime Filter (Long-Only) is a rule-based trend regime detection script that combines ATR-based Supertrend structure with volume-confirmed momentum using On-Balance Volume (OBV). The Supertrend (ATR 10, multiplier 3) defines the primary market regime and acts as the absolute authority for trend direction, while OBV—manually calculated for robustness and smoothed using EMA(20) with a signal EMA(20)—is used to confirm participation and momentum.
A long signal is generated only on confirmed bar close when the Supertrend is bullish (price above the Supertrend line) and OBV momentum turns positive via an EMA crossover, enforcing strict AND-logic confirmation and preventing entries during low-volume or transitional phases.
The strategy maintains a single long position per trend, with no pyramiding, averaging, or discretionary overrides. A full exit is triggered immediately when the Supertrend flips bearish, serving as a hard regime exit rather than a profit-target-based stop.
Additionally, an OBV downside crossover generates a non-executable “Protect” signal (visual only), intended for risk-management actions such as reducing exposure or pausing position additions, particularly for grid or DCA implementations.
This script is not designed as a grid, scalping, or buy-and-hold strategy; instead, it functions as a conservative trend and regime filter suitable for discretionary trading or as a signal layer to control automated long-bias execution systems. Forward testing and proper risk management are strongly recommended.
Wskaźniki i strategie
Market Regime | NY Session Killzones Indicator [ApexLegion]Market Regime | NY Session Killzones Indicator
Introduction and Theoretical Background
The Market Regime | NY Session Killzones indicator is designed exclusively for New York market hours (07:00-16:00 ET). Unlike universal indicators that attempt to function across disparate global sessions, this tool employs session-specific calibration to target the distinct liquidity characteristics of the NY trading day: Pre-Market structural formation (08:00-09:30), the Morning breakout window (09:30-12:00), and the Afternoon Killzone (13:30-16:00)—periods when institutional order flow exhibits the highest concentration and most definable technical structure. By restricting its operational scope to these statistically significant time windows, the indicator focuses on signal relevance while filtering the noise inherent in lower-liquidity overnight or extended-hours trading environments.
I. TECHNICAL RATIONALE: THE PRINCIPLE OF CONTEXTUAL FUSION
1. The Limitation of Acontextual Indicators
Traditional technical indicators often fail because they treat every bar and every market session equally, applying static thresholds (e.g., RSI > 70) without regard for the underlying market structure or liquidity environment. However, institutional volume and market volatility are highly dependent on the time of day (session) and the prevailing long-term risk environment.
This indicator was developed to address this "contextual deficit" by fusing three distinct yet interdependent analytical layers:
• Time and Structure (Macro): Identifying high-probability trading windows (Killzones) and critical structural levels (Pre-Market Range, PDH/PDL).
• Volatility and Scoring (Engine): Normalizing intraday momentum against annual volatility data to create an objective, statistically grounded AI Score.
• Risk Management (Execution): Implementing dynamic, volatility-adjusted Stop Loss (SL) and Take Profit (TP) parameters based on the Average True Range (ATR).
2. The Mandate for 252-Day Normalization (Z-Score)
What makes this tool unique is its 252-day Z-Score normalization engine that transforms raw momentum readings into statistically grounded probability scores, allowing the same indicator to deliver consistent, context-aware signals across any timeframe—from 1-minute scalping to 1-hour swing trades—without manual recalibration.
THE PROBLEM OF SCALE INVARIANCE
A high Relative Strength Index (RSI) reading on a 1-minute chart has a completely different market implication than a high RSI reading on a Daily chart. Simple percentage-based thresholds (like 70 or 30) do not provide true contextual significance. A sudden spike in momentum may look extreme on a 5-minute chart, but if it is statistically insignificant compared to the overall volatility of the last year, it may be a poor signal.
THE SOLUTION: CROSS-TIMEFRAME Z-SCORE NORMALIZATION
This indicator utilizes the Pine Script function request.security to reference the Daily timeframe for calculating the mean (μ) and standard deviation (σ) of a momentum oscillator (RSI) over the past 252 trading days (one year).
The indicator then calculates the Z-Score (Z) for the current bar's raw momentum (x): Z = (x - μ) / σ
Core Implementation: float raw_rsi = ta.rsi(close, 14) // x
= request.security(syminfo.tickerid, "D",
, // σ (252 days)
lookahead=barmerge.lookahead_on)
float cur_rsi_norm = d_rsi_std != 0 ? (raw_rsi - d_rsi_mean) / d_rsi_std : 0.0 // Z
This score provides an objective measurement of current intraday momentum significance by evaluating its statistical extremity against the yearly baseline of daily momentum. This standardized approach provides the scoring engine with consistent, global contextual information, independent of the chart's current viewing timeframe.
II. CORE COMPONENTS AND TECHNICAL ANALYSIS BREAKDOWN
1. TIME AND SESSION ANALYSIS (KILLZONES AND BIAS)
The indicator visually segments the trading day based on New York (NY) trading sessions, aligning the analysis with periods of high institutional liquidity events.
Pre-Market (PRE)
• Function: Defines the range before the core market opens. This range establishes structural support and resistance levels (PMH/PML).
• Technical Implementation: Uses a dedicated Session input (ny_pre_sess). The High and Low values (pm_h_val/pm_l_val) within this session are stored and plotted for structural reference.
• Smart Extension Logic: PMH/PML lines are automatically extended until the next Pre-Market session begins, providing continuous support/resistance references overnight.
NY Killzones (AM/PM)
• Function: Highlights high-probability volatility windows where institutional liquidity is expected to be highest (e.g., NY open, lunch, NY close).
• Technical Implementation: Separate session inputs (kz_ny_am, kz_ny_pm) are utilized to draw translucent background fills, providing a clear visual cue for timing.
Market Regime Bias
• Function: Determines the initial directional premise for the trading day. The bias is confirmed when the price breaks either the Pre-Market High (PMH) or the Pre-Market Low (PML).
• Technical Implementation: Involves the comparison of the close price against the predefined structural levels (check_h for PMH, check_l for PML). The variable active_bias is set to Bullish or Bearish upon confirmed breakout.
Trend Bar Coloring
• Function: Applies a visual cue to the bars based on the established regime (Bullish=Cyan, Bearish=Red). This visual filter helps mitigate noise from counter-trend candles.
• Technical Implementation: The Pine Script barcolor() function is tied directly to the value of the determined active_bias.
2. VOLATILITY NORMALIZED SCORING ENGINE
The internal scoring mechanism accumulates points from multiple market factors to determine the strength and validity of a signal. The purpose is to apply a robust filtering mechanism before generating an entry.
The score accumulation logic is based on the following factors:
• Market Bias Alignment (+3 Points): Points are awarded for conformance with the determined active_bias (Bullish/Bearish).
• VWAP Alignment (+2 Points): Assesses the position of the current price relative to the Volume-Weighted Average Price (VWAP). Alignment suggests conformity with the average institutional transaction price.
• Volume Anomaly (+2 Points): Detects a price move accompanied by an abnormally high relative volume (odd_vol_spike). This suggests potential institutional participation or significant order flow.
• VIX Integration (+2 Points): A score derived from the CBOE VIX index, assessing overall market stability and stress. Stable VIX levels add points, while high VIX levels (stress regimes) remove points or prevent signal generation entirely.
• ML Probability Score (+3 Points): This is the core predictive engine. It utilizes a Log-Manhattan Distance Kernel to compare the current market state against historical volatility patterns. The script implements a Log-linear distance formula (log(1 + |Δ|) ). This approach mathematically dampens the impact of extreme volatility spikes (outliers), ensuring that the similarity score reflects true structural alignment rather than transient market noise.
Core Technical Logic (Z-Score Normalization)
float cur_rsi_norm = d_rsi_std != 0 ? (raw_rsi - d_rsi_mean) / d_rsi_std : 0.0
• Technical Purpose: This line calculates the Z-Score (cur_rsi_norm) of the current momentum oscillator reading (raw_rsi) by normalizing it against the mean (d_rsi_mean) and standard deviation (d_rsi_std) derived from 252 days of Daily momentum data. If the standard deviation is zero (market is perfectly flat), it safely returns 0.0 to prevent division by zero runtime errors. This allows the AI's probability score to be based on the current signal's significance within the context of the entire trading year.
3. EXECUTION AND RISK MANAGEMENT (ATR MODEL)
The indicator utilizes the Average True Range (ATR) volatility model. This helps risk management scale dynamically with market volatility by allowing users to define TP/SL distances independently based on the current ATR.
Stop Loss Multiplier (sl_mult)
• Function: Sets the Stop Loss (SL) distance as a configurable multiple of the current ATR (e.g., 1.5 × ATR).
• Technical Logic: The price level is calculated as: last_sl_price := close - (atr_val * sl_mult). The mathematical sign is reversed for short trades.
Take Profit Multiplier (tp_mult)
• Function: Sets the Take Profit (TP) distance as a configurable multiple of the current ATR (e.g., 3.0 × ATR).
• Technical Logic: The price level is calculated as: last_tp_price := close + (atr_val * tp_mult). The mathematical sign is reversed for short trades.
Structural SL Option
• Function: Provides an override to the ATR-based SL calculation. When enabled, it forces the Stop Loss to the Pre-Market High/Low (PMH/PML) level, aligning the stop with a key institutional structural boundary.
• Technical Logic: The indicator checks the use_struct_sl input. If true, the calculated last_sl_price is overridden with either pm_h_val or pm_l_val, dependent on the specific trade direction.
Trend Continuation Logic
• Function: Enables signal generation in established, strong trends (typically in the Afternoon session) based on follow-through momentum (a new high/low of the previous bar) combined with a high Signal Score, rather than exclusively relying on the initial PMH/PML breakout.
• Technical Logic: For a long signal, the is_cont_long logic specifically requires checks like active_bias == s_bull AND close > high , confirming follow-through momentum within the established regime.
Smart Snapping & Cleanup (16:00 Market Close)
• Function: To maintain chart cleanliness, all trade boxes (TP/SL), AI Prediction zones, Killzone overlays (NY AM/PM), and Liquidity lines (PDH/PDL) are automatically "snapped" and cut off precisely at 16:00 NY Time (Market Close).
• Technical Logic: When is_market_close condition is met (hour == 16 and minute == 0), the script executes cleanup logic that:
◦ Closes active trades and evaluates final P&L
◦ Snaps all TP/SL box widths to current bar
◦ Truncates AI Prediction ghost boxes at market close
◦ Cuts off NY AM/PM Killzone background fills
◦ Terminates PDH/PDL line extensions
◦ Prevents visual clutter from extending into post-market sessions
4. LIQUIDITY AND STRUCTURAL ANALYSIS
The indicator plots key structural levels that serve as high-probability magnet zones or areas of potential liquidity absorption.
• Pre-Market High/Low (PMH/PML): These are the high and low established during the configured pre-market session (ny_pre_sess). They define the primary structural breakout level for the day, often serving as the initial market inflection point or the key entry level for the morning session.
• PDH (Previous Day High): The high of the calendar day immediately preceding the current bar. This represents a key Liquidity Pool; large orders are often placed above this level, making it a frequent target for stop hunts or liquidity absorption by market makers.
• PDL (Previous Day Low): The low of the calendar day immediately preceding the current bar. This also represents a key Liquidity Pool and a high-probability reversal or accumulation point, particularly during the Killzones.
FIFO Array Management
The indicator uses FIFO (First-In-First-Out) array structures to manage liquidity lines and labels, automatically deleting the oldest objects when the count exceeds 500 to comply with drawing object limits.
5. AI PREDICTION BOX (PREDICTIVE MODEL)
Function: Analyzes AI scores and volatility to project predicted killzone ranges and duration with asymmetric directional bias.
A. DIRECTIONAL BIAS (ASYMMETRIC EXPANSION)
The prediction model calculates directional probability using the ML kernel's 252-day Normalized RSI (Z-Score) and Relative Volume (RVOL). The prediction box dynamically adjusts its range based on this probability to provide immediate visual feedback on high-probability direction.
Bullish Scenario (ml_prob > 1.0):
• Upper Range: Expands significantly (1.5x multiplier) to show the aggressive upside target
• Lower Range: Tightens (0.5x multiplier) to show the invalidation level
• Visual Intent: The box is visibly skewed upward, immediately communicating bullish bias without requiring numerical analysis.
Bearish Scenario (ml_prob < -1.0):
• Upper Range: Tightens (0.5x multiplier) to show the invalidation level
• Lower Range: Expands significantly (1.5x multiplier) to show the aggressive downside target
• Visual Intent: The box is visibly skewed downward, immediately communicating bearish bias.
Neutral Scenario (-1.0 < ml_prob < 1.0):
Both ranges use balanced multipliers, creating a symmetrical box that indicates uncertainty.
B. DYNAMIC VOLATILITY BOOSTER (SESSION-BASED ADAPTATION)
The prediction box adjusts its volatility multiplier based on the current session and market conditions to account for intraday volatility patterns.
AM Session (Morning: 07:00-12:00):
• Base Multiplier: 1.0x (Neutral Base)
• Logic: Morning sessions often contain false breakouts and noise. The base multiplier starts neutral to avoid over-projecting during consolidation.
• Trend Booster: Multiplier jumps to 1.5x when:
Price > London Session Open AND AI is Bullish (ml_prob > 0), OR
Price < London Session Open AND AI is Bearish (ml_prob < 0)
• Logic: When the London trend (typically 03:00-08:00 NY time) aligns with the AI model's directional conviction, the indicator aggressively targets higher volatility expansion. This filters for "institutional follow-through" rather than random morning chop.
PM Session (Afternoon: 13:00-16:00):
• Fixed Multiplier: 1.8x
• Logic: The PM session, particularly the 13:30-16:00 ICT Silver Bullet window, often contains the "True Move" of the day. A higher baseline multiplier is applied to emphasize this session's significance over morning noise.
Safety Floor:
A minimum range of 0.2% of the current price is enforced regardless of volatility conditions.
• Purpose: Maintains the prediction box visibility during extreme low-volatility consolidation periods where ATR might collapse to near-zero values.
Volatility Clamp Protection:
Maximum volatility is capped at three times the current ATR value. During flash crashes, circuit breaker halts, or large overnight gaps, raw volatility calculations can spike to extreme levels. This clamp prevents prediction boxes from expanding to unrealistic widths.
Technical Implementation:
f_get_ai_multipliers(float _prob) =>
float _abs_prob = math.abs(_prob)
float _range_mult = 1.0
float _dur_mult = 1.0
if _abs_prob > 30
_range_mult := 1.8
else if _abs_prob > 10
_range_mult := 1.2
else
_range_mult := 0.7
C. PRACTICAL INTERPRETATION
• Wide Upper Range + Tight Lower Range: Strong bullish conviction. The model expects significant upside with limited downside risk.
• Tight Upper Range + Wide Lower Range: Strong bearish conviction. The model expects significant downside with limited upside.
• Symmetrical Range: Neutral/uncertain market. Wait for directional confirmation before entry.
• Large Box (Extended Duration): High-confidence prediction expecting sustained movement.
• Small Box (Short Duration): Low-confidence or choppy conditions. Expect quick resolution.
III. PRACTICAL USAGE GUIDE: METHODOLOGY AND EXECUTION
A. ESTABLISHING TRADING CONTEXT (THE THREE CHECKS)
The primary goal of the dashboard is to filter out low-probability trade setups before they occur.
• Timeframe Selection: Although the core AI is normalized to the Daily context, the indicator performs optimally on intraday timeframes (e.g., 5m, 15m) where session-based volatility is most pronounced.
• PHASE Check (Timing): Always confirm the current phase. The highest probability signals typically occur within the visually highlighted NY AM/PM Killzones because this is when institutional liquidity and volume are at their peak. Signals outside these zones should be treated with skepticism.
• MARKET REGIME Check (Bias): Ensure the signal (BUY/SELL arrow) aligns with the established MARKET REGIME bias (BULLISH/BEARISH). Counter-bias signals are technically allowed if the score is high, but they represent a higher risk trade.
• VIX REGIME Check (Risk): Review the VIX REGIME for overall market stress. Periods marked DANGER (high VIX) indicate elevated volatility and market uncertainty. During DANGER regimes, reducing position size or choosing a wider SL Multiplier is advisable.
B. DASHBOARD INTERPRETATION (THE REAL-TIME STATUS DISPLAY)
The indicator features a non-intrusive dashboard that provides real-time, context-aware information based on the core analytical engines.
PHASE: (PRE-MARKET, NY-AM, LUNCH, NY-PM)
• Meaning: Indicates the current institutional session time. This is derived from the customizable session inputs.
• Interpretation: Signals generated during NY-AM or NY-PM (Killzones) are generally considered higher-probability due to increased institutional participation and liquidity.
MARKET REGIME: (BULLISH, BEARISH, NEUTRAL)
• Meaning: The established directional bias for the trading day, confirmed by the price breaking above the Pre-Market High (PMH) or below the Pre-Market Low (PML).
• Interpretation: Trading with the established regime (e.g., taking a BUY signal when the regime is BULLISH) is the primary method. NEUTRAL indicates that the PMH/PML boundary has not yet been broken, suggesting market ambiguity.
VIX REGIME: (STABLE, DANGER)
• Meaning: A measure of overall market stress and stability, based on the CBOE VIX index integration. The thresholds (20.0 and 35.0 default) are customizable by the user.
• Interpretation: STABLE indicates stable volatility, favoring momentum trades. DANGER (VIX > 35.0) indicates extreme stress; signals generated in this environment require caution and often necessitate smaller position sizing.
SIGNAL SCORE: (0 to 10+ Points)
• Meaning: The accumulated score derived from the VOLATILITY NORMALIZED AI SCORING ENGINE, factoring in bias, VWAP alignment, volume, and the Z-Score probability.
• Interpretation: The indicator generates a signal when this score meets or exceeds the Minimum Entry Score (default 3). A higher score (e.g., 7+) indicates greater statistical confluence and a stronger potential entry.
AI PROBABILITY: (Bull/Bear %)
• Meaning: Directional probability derived from the ML kernel, expressed as a percentage with Bull/Bear label.
• Interpretation: Higher absolute values (>20%) indicate stronger directional conviction from the ML model.
LIVE METRICS SECTION:
• STATUS: Shows current trade state (LONG, SHORT, or INACTIVE)
• ENTRY: Displays the entry price for active trades
• TARGET: Shows the calculated Take Profit level
• ROI | KILL ZONE:
◦ For Active Trades: Displays real-time P&L percentage during NY session hours.
◦ At Market Close (16:00 NY): Since this is a NY session-specific indicator, any active position is automatically evaluated and closed at 16:00. The final result (VALIDATED or INVALIDATED) is determined based on whether the trade reached profit or loss at market close.
◦ Result Persistence: The killzone result (VALIDATED/INVALIDATED) remains displayed on the dashboard until the next NY AM KILLZONE session begins, providing a clear performance reference for the previous trading day.
Note: If a trade is still trending at 16:00, it will be force-closed and evaluated at that moment, as the indicator operates strictly within NY trading hours.
C. SIGNAL GENERATION AND ENTRY LOGIC
The indicator generates signals based on two distinct technical setups, both of which require the accumulated SIGNAL SCORE to be above the configured Minimum Entry Score.
Breakout Entry
• Trigger Condition: Price closes beyond the Pre-Market High (PMH) or Low (PML).
• Rationale: This setup targets the initial directional movement for the day. A breakout confirms the institutional bias by decisively breaking the first major structural boundary, making the signal high-probability.
Continuation Entry
• Trigger Condition: The market is already in an established regime (e.g., BULLISH), and the price closes above the high (or below the low) of the previous bar, while the SIGNAL SCORE remains high. Requires the Allow Trend Continuation parameter to be active.
• Rationale: This setup targets follow-through trades, typically in the afternoon session, capturing momentum after the morning's direction has been confirmed. This filters for sustainability in the established trend.
Execution: Execute the trade immediately upon the close of the bar that prints the BUY or SELL signal arrow.
D. MANAGING RISK AND EXITS
1. RISK PARAMETER SELECTION
The indicator immediately draws the dynamic TP/SL zones upon entry.
• Volatility-Based (Recommended Default): By setting the SL Multiplier (e.g., 1.5) and the TP Multiplier (e.g., 3.0), the indicator enforces a constant, dynamically sized risk-to-reward ratio (e.g., 1:2 in this example). This helps that risk management scales proportionally with the current market volatility (ATR).
• Structural Override: Selecting the Use Structural SL parameter fixes the stop-loss not to the ATR calculation, but to the more significant structural level of the PMH or PML. This is utilized by traders who favor institutional entry rules where the stop is placed behind the liquidity boundary.
2. EXIT METHODS
• Hard Exit: Price hits the visual TP or SL box boundary.
• Soft Exit (Momentum Decay Filter): If the trade is active and the SIGNAL SCORE drops below the Exit Score Threshold (default 3), it indicates that the momentum supporting the trade has significantly collapsed. This serves as a momentum decay filter, prompting the user to consider a manual early exit even if the SL/TP levels have not been hit, thereby preserving capital during low-momentum consolidation.
• Market Close Auto-Exit: At 16:00 NY time, any active trade is automatically closed and classified as VALIDATED (profit) or INVALIDATED (loss) based on current price vs. entry price.
IV. PARAMETER REFERENCE AND CONFIGURATION
A. GLOBAL SETTINGS
• Language (String, Default: English): Selects the language for the dashboard and notification text. Options: English, Korean, Chinese, Spanish, Portuguese, Russian, Ukrainian, Vietnamese.
B. SESSION TIMES (3 BOX SYSTEM)
• PRE-MARKET (Session, Default: 0800-0930): Defines the session range used for Pre-Market High/Low (PMH/PML) structural calculation.
• REGULAR (Morning) (Session, Default: 0930-1200): Defines the core Morning trading session.
• AFTERNOON (PM) (Session, Default: 1300-1600): Defines the main Afternoon trading session.
• Timezone (String, Default: America/New_York): Sets the timezone for all session and time-based calculations.
C. NY KILLZONES (OVERLAYS)
• Show NY Killzones (Bool, Default: True): Toggles the translucent background fills that highlight high-probability trading times (Killzones).
• NY AM Killzone (Session, Default: 0700-1000): Defines the specific time window for the first key liquidity surge (Open overlap).
• NY PM Killzone (Session, Default: 1330-1600): Defines the afternoon liquidity window, aligned with the ICT Silver Bullet and PM Trend entry timing.
• Allow Entry in Killzones (Bool, Default: True): Enables or disables signal generation specifically during the defined Killzone hours.
• Activate AI Prediction Box (Bool, Default: True): Toggles the drawing of the predicted target range boxes on the chart.
D. CORE SCORING ENGINE
• Minimum Entry Score (Int, Default: 3): The lowest accumulated score required for a Buy/Sell signal to be generated and plotted.
• Allow Trend Continuation (Bool, Default: True): Enables the secondary entry logic that fires signals based on momentum in an established trend.
• Force Ignore Volume (Bool, Default: False): Overrides the volume checks in the scoring engine. Useful for markets where volume data is unreliable or nonexistent.
• Force Show Signals (Ignore Score) (Bool, Default: False): Debug mode that displays all signals regardless of score threshold.
• Integrate CBOE:VIX (Bool, Default: True): Enables the connection to the VIX index for market stress assessment.
• Stable VIX (<) (Float, Default: 20.0): VIX level below which market stress is considered low (increases score).
• Stress VIX (>) (Float, Default: 35.0): VIX level above which market stress is considered high (decreases score/flags DANGER).
• Use ML Probability (Bool, Default: True): Activates the volatility-normalized AI Z-Score kernel. Disabling this removes the cross-timeframe normalization filter.
• Max Learning History (Int, Default: 2000): Maximum number of bars stored in the ML training arrays.
• Normalization Lookback (252 Days) (Int, Default: 252): The number of DAILY bars used to calculate the Z-Score mean and standard deviation (representing approximately 1 year of data).
E. RISK MANAGEMENT (ATR MODEL)
• Use Structural SL (Bool, Default: False): Overrides the ATR-based Stop Loss distance to use the Pre-Market High/Low as the fixed stop level.
• Stop Loss Multiplier (x ATR) (Float, Default: 1.5): Defines the Stop Loss distance in multiples of the current Average True Range (ATR).
• Take Profit Multiplier (x ATR) (Float, Default: 3.0): Defines the Take Profit distance in multiples of the current Average True Range (ATR).
• Exit Score Threshold (<) (Int, Default: 3): The minimum score below which an active trade is flagged for a Soft Exit due to momentum collapse.
F. VISUAL SETTINGS
• Show Dashboard (Bool, Default: True): Toggles the real-time data panel.
• Show NY Killzones (Bool, Default: True): Toggles killzone background fills.
• Show TP/SL Zones (Bool, Default: True): Toggles the drawing of Take Profit and Stop Loss boxes.
• Show Pre-Market Extensions (Bool, Default: True): Extends PM High/Low lines across the entire chart for support/resistance reference.
• Activate AI Prediction Box (Bool, Default: True): Enable or disable the predictive range projection.
• Light Mode Optimization (Bool, Default: True): Toggles dashboard and plot colors for optimal visibility on white (light) chart backgrounds.
• Enforce Trend Coloring (Bool, Default: True): Forces candle colors based on Market Regime (Bullish=Cyan, Bearish=Pink) to emphasize trend direction.
• Label Size (String, Default: Normal): Options: Tiny, Small, Normal.
G. LIQUIDITY POOLS (PDH/PDL)
• Show Liquidity Lines (Bool, Default: True): Toggles the display of the Previous Day High (PDH) and Low (PDL) lines.
• Liquidity High Color (Color, Default: Green): Color setting for the PDH line.
• Liquidity Low Color (Color, Default: Red): Color setting for the PDL line.
🔔 ALERT CONFIGURATION GUIDE
The indicator is equipped with specific alert conditions.
How to Set Up an Alert:
Click the "Alert" (Clock icon) in the top TradingView toolbar.
Select "Market Regime NY Session " from the Condition dropdown menu.
Choose one of the specific trigger conditions below depending on your strategy:
🚀 Available Alert Conditions
1. BUY (Long Entry)
Trigger: Fires immediately when a confirmed Bullish Setup is detected.
Conditions: Market Bias is Bullish (or valid Continuation) + Signal Score ≥ Minimum Entry Score.
Usage: Use this alert to open new Long positions or close existing Short positions.
2. SELL (Short Entry)
Trigger: Fires immediately when a confirmed Bearish Setup is detected.
Conditions: Market Bias is Bearish (or valid Continuation) + Signal Score ≥ Minimum Entry Score.
Usage: Use this alert to open new Short positions or close existing Long positions.
V. IMPORTANT TECHNICAL LIMITATIONS
⚠️ Intraday Only (Timeframe Compatibility)
This indicator is strictly designed for Intraday Timeframes (1m to 4h).
Daily/Weekly Charts: The session logic (e.g., "09:30-16:00") cannot function on Daily bars because a single bar encompasses the entire session. Session boxes, TP/SL zones, and AI prediction boxes will NOT draw on the Daily timeframe. Only the PDH/PDL liquidity lines remain visible on Daily charts. This is expected behavior, not a limitation.
Maximum Supported Timeframe: All visual components (session boxes, killzone overlays, TP/SL zones, AI prediction boxes) are displayed up to the 4-hour timeframe. Above this timeframe, only PDH/PDL lines and the dashboard remain functional.
⚠️ Drawing Object Limit (Max 500)
A single script can display a maximum of 500 drawing objects (boxes/lines) simultaneously.
On lower timeframes (e.g., 1-minute), where many signals and session boxes are generated, older history (typically beyond 10-14 days) will automatically disappear to make room for new real-time data.
For deeper historical backtesting visualization, switch to higher timeframes (e.g., 15m, 1h).
The indicator implements FIFO array management to comply with this limit while maintaining the most recent and relevant visual data.
VI. PRACTICAL TRADING TIPS AND BEST PRACTICES
• Killzone Confirmation: The highest statistical validity is observed when a high-score signal occurs directly within a visible NY AM/PM Killzone. Use the Killzones as a strict time filter.
• Liquidity Awareness (PDH/PDL): Treat the Previous Day High (PDH) and Low (PDL) lines as magnets. If your dynamic Take Profit (TP) is placed just above PDH, consider adjusting your target slightly below PDH or utilizing the Soft Exit, as liquidity absorption at these levels often results in sudden, sharp reversals that stop out a trade just before the target is reached.
• VIX as a Position Sizer: During DANGER VIX regimes, the resulting high volatility means the ATR value will be large. It is prudent to either reduce the SL Multiplier or, more commonly, reduce the overall position size to maintain a constant currency risk exposure per trade.
• Continuation Filter Timing: Trend Continuation signals are most effective during the Afternoon (PM) session when the morning's directional breakout has had time to establish a strong, clear, and sustainable trend. Avoid using them in the initial AM session when the direction is still being contested.
• 16:00 Market Close Rule: All trades, boxes, and lines are automatically cleaned up at 16:00 NY time. This prevents overnight chart clutter and maintains visual clarity.
VII. DISCLAIMER & RISK WARNINGS
• Educational Purpose Only
This indicator, including all associated code, documentation, and visual outputs, is provided strictly for educational and informational purposes. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments.
• No Guarantee of Performance
Past performance is not indicative of future results. All metrics displayed on the dashboard (including "ROI" and trade results) are theoretical calculations based on historical data. These figures do not account for real-world trading factors such as slippage, liquidity gaps, spread costs, or broker commissions.
• High-Risk Warning
Trading cryptocurrencies, futures, and leveraged financial products involves a substantial risk of loss. The use of leverage can amplify both gains and losses. Users acknowledge that they are solely responsible for their trading decisions and should conduct independent due diligence before executing any trades.
• Software Limitations
The software is provided "as is" without warranty. Users should be aware that market data feeds on analysis platforms may experience latency or outages, which can affect signal generation accuracy.
KD Weekly Oversold Golden Cross (v6)KD Weekly Oversold Golden Cross (v6)
This is a screener for weekly KD indicator bullish crossovers at oversold levels, where the K value does not exceed 25.
Day Trading Signals Trend & Momentum Buy/Sell [CocoChoco]Day Trading Signals: Trend & Momentum Buy/Sell
Overview
The indicator is a comprehensive day-trading tool designed to identify high-probability entries by aligning short-term momentum with long-term trend confluence.
It filters out low-volatility "choppy" markets using ADX and ensures you are always trading in the direction of the dominant higher-timeframe trend.
Important: Use on timeframes from 15 min to 2 hours, as the indicator is for day trading only.
How It Works
The script uses a three-layer confirmation system:
Trend Alignment: Uses a Fast/Slow SMA cross (10/50) on the current chart. Signal prints only if price closes above (for bullish) or below (for bearish) the 10-period SMA.
Higher Timeframe Confluence: The script automatically looks at a higher timeframe (1H for charts <=15m, and 4H for others) and checks if the price is above/below a 200-period SMA.
Momentum & Volatility: Signals are only triggered if the Stochastic Oscillator is rising/falling and the ADX is above 20, ensuring there is enough "strength" behind the move.
Visual Signals Buy/Sell
Green Label (Up Arrow): Bullish entry signal
Red Label (Down Arrow): Bearish entry signal.
Red "X": Exit signal based on a moving average crossover (trend exhaustion).
Visual Risk/Reward (1:1) Boxes: When a signal appears, the script automatically draws a projection of your Stop Loss (Red) and Take Profit (Green) based on the current ATR (Average True Range).
How to Use
Entry: Enter when a Label appears. Ensure the candle has closed to confirm the signal.
Stop Loss/Take Profit: Use the visual boxes as a guide. The default is 1.0 ATR for risk and 1.0 RR ratio, which can be adjusted in the settings.
Exit: Exit the trade either at the target boxes or when the Red "X" appears, indicating the trend has shifted.
Please note that this is just a tool, not financial advice. Perform your own analysis before entering a trade.
fmfm12 chosen chart timeframe. It monitors the price to determine:
Whether resistance has been broken → BUY signal
Or support has been broken → SELL signal
After a breakout or breakdown, the indicator automatically draws price targets (T1 / T2 / T3) as percentages from the breakout point, and also displays FVG (Fair Value Gaps) zones that indicate imbalances between supply and demand.
⚙️ Main Components
Support and Resistance Levels (Key Levels)
Automatically calculated from the 4-hour timeframe (180 minutes).
Draws lines:
Green = Resistance
Red = Support
Option to display a midline (blue).
Line style (solid / dashed / dotted), thickness, and label size are customizable.
Trading Signals (Signals)
When resistance is broken upward → BUY signal (green).
When support is broken downward → SELL signal (red).
Signal size is adjustable (small / large, etc.).
Price Targets (Targets)
After confirming a breakout or breakdown, the indicator draws:
T1 / T2 / T3 as horizontal lines in the breakout direction.
Target percentages are adjustable (default: 0.5%, 1%, 1.5%).
Different colors for bullish and bearish targets.
Fair Value Gaps (FVG)
Detects bullish and bearish gaps within a set number of candles (default: 10).
Draws transparent colored zones:
Light Green = Bullish Gap
Light Red = Bearish Gap
📊 Practical Usage
Add the indicator to TradingView (paste the code into the Pine Editor, save, and add it to the chart).
When the price approaches a support or resistance line, observe:
Delta Reaction Zones [BOSWaves]Delta Reaction Zones - Cumulative Delta-Based Supply and Demand Identification with Flow-Weighted Zone Construction
Overview
Delta Reaction Zones is a volume flow-aware supply and demand detection system that identifies price levels where significant buying or selling pressure accumulated, constructing adaptive zones around cumulative delta extremes with intelligent flow composition analysis.
Instead of relying on traditional price-based support and resistance or fixed pivot structures, zone placement, thickness, and directional characterization are determined through delta accumulation patterns, volatility-adaptive sizing, and the proportional composition of positive versus negative volume flow.
This creates dynamic reaction boundaries that reflect actual order flow imbalances rather than arbitrary price levels - contracting during low volatility environments, expanding during elevated volatility periods, and incorporating flow composition statistics to reveal whether zones formed under buying or selling dominance.
Price is therefore evaluated relative to zones anchored at delta extremes rather than conventional technical levels.
Conceptual Framework
Delta Reaction Zones is founded on the principle that meaningful support and resistance emerge where cumulative volume flow reaches local extremes rather than where price alone forms patterns.
Traditional support and resistance methods identify turning points through price structure, which often ignores the underlying order flow dynamics that drive those reversals. This framework replaces price-centric logic with delta-driven zone construction informed by actual buying and selling pressure.
Three core principles guide the design:
Zone placement should correspond to cumulative delta extremes, not price pivots alone.
Zone thickness must adapt to current market volatility conditions.
Flow composition context reveals whether zones formed under accumulation or distribution.
This shifts supply and demand analysis from static price levels into adaptive, flow-anchored reaction boundaries.
Theoretical Foundation
The indicator combines delta proxy methodology, cumulative volume tracking, adaptive volatility measurement, and flow decomposition analysis.
A signed volume delta proxy estimates directional order flow on each bar, which accumulates into a running cumulative delta series. Pivot detection identifies local extremes in either cumulative delta or its rate of change, marking levels where flow momentum reached inflection points. Average True Range (ATR) provides volatility-responsive zone sizing, while impulse window analysis decomposes recent flow into positive and negative components with percentage weighting.
Four internal systems operate in tandem:
Delta Accumulation Engine : Computes smoothed signed volume and maintains cumulative delta tracking for directional flow measurement.
Pivot Detection System : Identifies significant turning points in cumulative delta or delta rate of change to anchor zone placement.
Adaptive Zone Construction : Scales zone thickness dynamically using ATR-based volatility measurement around pivot anchors.
Flow Composition Analysis : Calculates positive and negative flow percentages over a configurable impulse window to characterize zone formation context.
This design allows zones to reflect actual order flow behavior rather than reacting mechanically to price formations.
How It Works
Delta Reaction Zones evaluates price through a sequence of flow-aware processes:
Signed Volume Delta Calculation : Each bar's volume is directionally signed based on close-open relationship, creating a proxy for buying versus selling pressure.
Cumulative Delta Tracking : Signed volume accumulates into a running total, revealing sustained directional flow over time.
Pivot Identification : Local highs and lows in cumulative delta (or its rate of change) mark significant flow inflection points where zones anchor.
Volatility-Adaptive Sizing : ATR multiplier determines zone half-width, automatically adjusting thickness to current market conditions.
Flow Decomposition : Positive and negative volume components are separated and percentage-weighted over the impulse window to reveal dominant flow direction.
Intelligent Zone Merging : Overlapping zones of the same type automatically merge into broader reaction areas, with flow statistics blended proportionally.
Dynamic Extension and Visualization : Zones extend forward with gradient-filled composition segments showing buy versus sell flow proportions.
Breach Detection and Cleanup : Zones invalidate automatically when price closes beyond their boundaries, maintaining chart clarity.
Together, these elements form a continuously updating supply and demand framework anchored in order flow reality.
Interpretation
Delta Reaction Zones should be interpreted as flow-anchored supply and demand boundaries:
Support Zones (Green) : Form at cumulative delta lows, marking levels where selling exhaustion or buying accumulation occurred.
Resistance Zones (Red) : Establish at cumulative delta highs, identifying areas where buying exhaustion or selling distribution dominated.
Flow Composition Segments : Visual gradient within each zone reveals the buy/sell flow proportion during zone formation. The upper segment (red tint) represents negative (selling) flow percentage while the lower segment (green tint) represents positive (buying) flow percentage.
BUY FLOW / SELL FLOW / MIXED Labels : Indicate dominant flow character when one direction exceeds 60% of total impulse window activity.
Net Delta Statistics : Display cumulative flow totals (Δ) alongside percentage breakdowns for immediate context.
Zone Thickness : Reflects current volatility environment - wider zones in volatile conditions, tighter zones in calm markets.
Zone Merging : Multiple nearby pivots consolidate into broader reaction areas, weighted by their respective flow magnitudes.
Flow composition, volatility context, and delta magnitude outweigh isolated price reactions.
Signal Logic & Visual Cues
Delta Reaction Zones presents two primary interaction signals:
Support Reclaim (RC) : Green label appears when price crosses back above a support zone's midline after trading below it, suggesting renewed buying interest.
Resistance Re-enter (RE) : Red label displays when price crosses back below a resistance zone's midline after trading above it, indicating resumed selling pressure.
Alert generation covers zone creation and midline reclaim/re-entry events for systematic monitoring.
Strategy Integration
Delta Reaction Zones fits within order flow-informed and supply/demand trading approaches:
Flow-Anchored Entry Zones : Use zones as high-probability reaction areas where historical order flow imbalances occurred.
Composition-Based Bias : Favor trades aligning with dominant flow character - long setups near zones formed under buying dominance, short setups near selling-dominated zones.
Volatility-Aware Targeting : Expect wider reaction ranges when ATR expands zones, tighter ranges when ATR contracts them.
Merge-Informed Conviction : Broader merged zones represent multiple flow inflection points, potentially offering stronger support/resistance.
Midline Reclaim Validation : Use RC/RE signals as confirmation of zone respect rather than standalone entry triggers.
Multi-Timeframe Flow Context : Apply higher-timeframe delta zones to inform lower-timeframe entry precision.
Technical Implementation Details
Core Engine : Signed volume delta proxy with EMA smoothing
Accumulation Model : Persistent cumulative delta tracking with optional rate-of-change pivot detection
Zone Construction : ATR-scaled thickness around pivot anchors
Flow Analysis : Positive/negative decomposition over configurable impulse window
Visualization : Gradient-filled zones with embedded flow statistics and percentage segments
Signal Logic : Midline crossover detection with breach-based invalidation
Merge System : Proximity-based consolidation with weighted flow blending
Performance Profile : Optimized for real-time execution with configurable zone limits
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Micro-structure flow zones for scalping and short-term reversals
15 - 60 min : Intraday supply/demand identification with flow context
4H - Daily : Swing-level reaction zones with macro flow characterization
Suggested Baseline Configuration:
Delta Smoothing Length : 3
Pivot Length : 12
Pivot Source : Cumulative Delta
Impulse Window : 100
ATR Length : 14
ATR Multiplier : 0.35 (reduce for lower timeframes)
Maximum Zones : 8
Merge Overlapping Zones : Enabled
Merge Gap : 20 ticks
These suggested parameters should be used as a baseline; their effectiveness depends on the asset's volume profile, tick structure, and preferred zone density, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Zones appearing oversized : Reduce ATR Multiplier to tighten zone thickness, especially on lower timeframes.
Excessive zone clutter : Increase Pivot Length to demand stronger delta extremes before zone creation.
Unstable delta readings : Increase Delta Smoothing Length to reduce bar-to-bar noise in flow calculation.
Missing significant levels : Decrease Pivot Length or switch Pivot Source to "Cumulative Delta RoC" for flow acceleration sensitivity.
Flow percentages feel stale : Reduce Impulse Window Length to emphasize more recent buying/selling composition.
Too many merged zones : Decrease Merge Gap (ticks) or disable merging to preserve individual pivot zones.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Markets with consistent volume and order flow characteristics
Instruments where delta proxy correlates well with actual tape reading
Mean-reversion strategies targeting flow exhaustion zones
Trend continuation entries at zones aligned with dominant flow direction
Reduced Effectiveness:
Extremely low volume environments where delta proxy becomes unreliable
News-driven or gapped markets with discontinuous flow
Highly manipulated or illiquid instruments with erratic volume patterns
Integration Guidelines
Confluence : Combine with BOSWaves structure, market profile, or traditional supply/demand analysis
Flow Respect : Trust zones formed with strong net delta magnitude and clear flow dominance
Context Awareness : Consider whether current market regime matches zone formation conditions
Merge Recognition : Treat merged zones as higher-conviction areas due to multiple flow inflections
Breach Discipline : Exit zone-based setups cleanly when price invalidates boundaries
Disclaimer
Delta Reaction Zones is a professional-grade order flow and supply/demand analysis tool. It uses a volume-based delta proxy that estimates directional pressure but does not access true order book data. Results depend on market conditions, volume reliability, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates price structure, volatility context, and comprehensive risk management.
ICT Fair Value Gaps [Zero-Noise Edition]ICT Fair Value Gaps
Overview
In the Smart Money Concepts (SMC) framework, clarity is the ultimate edge. Most FVG indicators clutter your screen with "ghost boxes" that remain long after they have been filled. This professional-grade tool identifies high-displacement institutional imbalances and automatically dissolves them the moment they are mitigated.
Key Features
Precision Detection : Uses the classic 3-candle displacement logic to identify institutional gaps.
Auto-Mitigation : Boxes are removed the moment price retraces and "fills" the imbalance, keeping your chart 100% clean.
High Performance : Optimized with array-based logic for zero-lag performance on all timeframes.
Built-in Alerts : Stay informed with real-time notifications when new institutional displacement occurs.
How to Trade This Tool
The Trigger : A new FVG box appears, confirming institutional "intent."
The Draw : Treat the open boxes as magnets for price (Draw on Liquidity).
The Entry : Wait for price to retrace and tap the edge of the "open" FVG.
The Exit : Use opposing mitigated zones or swing points for targets.
Customizable Settings
Visuals : Custom color palettes for Bullish and Bearish imbalances.
Labels : Toggle "FVG" text on or off for a minimalist HUD experience.
Logic : Option to hide filled gaps completely for the ultimate zero-noise experience.
Global Compatibility
Tested and optimized for:
Forex : EURUSD, GBPUSD, AUDUSD.
Indices : US30, NAS100, DAX40.
Commodities : Gold (XAUUSD), Silver, Oil.
Crypto : BTCUSD, ETHUSD.
Authors Note
This script is written in Pine Script v6 . It is designed for traders who prioritize accuracy over "noisy" indicators. If you find value in this tool, please leave a Boost and follow for more SMC tool releases!
Daytrading Suite v6.4: Neon TPO + FVG + IB Lines (Stable)Here is the complete **Trading Manual & Strategy Guide** for the **Master Daytrading Suite (Neon + IB Edition)**.
This guide explains exactly **when** to trade and **how** to execute trades using the tools in the script.
---
# 📘 MASTER TRADING MANUAL (Neon + IB)
### 1. THE BASICS
* **Best Assets:** BTCUSDT & ETHUSDT (Futures).
* **Best Timeframe:** 5 Minutes (Entry) / 15 Minutes (Trend).
* **Key Session:** New York Session (High Volatility).
* **Golden Rule:** Never go **LONG** inside a Red Supply Zone. Never go **SHORT** inside a Green Demand Zone.
---
### 2. THE INDICATORS (Legend)
| Indicator | Color | Function | How to use |
| --- | --- | --- | --- |
| **Supply Zone** | 🟥 **Red Box** | Resistance | Look for Short setups here. |
| **Demand Zone** | 🟩 **Green Box** | Support | Look for Long setups here. |
| **Golden Pocket** | 🟧 **Orange** | Retracement | The "Sweet Spot" for trend entries (Fib 0.618). |
| **VWAP** | 🔵 **Blue Line** | Trend Anchor | Price > VWAP = Bullish. Price < VWAP = Bearish. |
| **Initial Balance (IB)** | 🟨 **Yellow Box** | Opening Range | Breakout above = Bullish. Breakdown below = Bearish. |
| **FVG (Gap)** | 🟩/🟥 **Tiny Box** | Trigger | **Green FVG** = Entry Signal for Longs. **Red FVG** = Entry Signal for Shorts. |
---
### 3. STRATEGY A: The Trend Pullback (High Win Rate)
*Use this when the market is trending smoothly.*
#### ✅ HOW TO ENTER A LONG (BUY) POSITION
1. **Trend Check:** Price is trading **ABOVE** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to drop back down (pullback).
3. **The Zone:** Price touches the **Green Demand Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Green FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Long. Stop Loss below the recent low. Take Profit at the next Red Zone.
#### 🔻 HOW TO ENTER A SHORT (SELL) POSITION
1. **Trend Check:** Price is trading **BELOW** the VWAP (Blue Line) and EMA 9 (Yellow Line).
2. **The Wait:** Wait for the price to rally up (pullback).
3. **The Zone:** Price touches the **Red Supply Zone** OR the **Orange Golden Pocket**.
4. **The Trigger:** A **Red FVG Box** appears on the 5-minute chart.
5. **Execution:** Enter Short. Stop Loss above the recent high. Take Profit at the next Green Zone.
---
### 4. STRATEGY B: The IB Breakout (Volatility)
*Use this specifically after the first hour of the New York Session (approx. 10:30 NY time).*
* **The Setup:** Look at the **Yellow Box (Initial Balance)** which marks the high/low of the first hour.
* **Bullish Breakout:** If a candle closes **above** the Yellow Box + Price is above VWAP → **Go Long**.
* **Bearish Breakdown:** If a candle closes **below** the Yellow Box + Price is below VWAP → **Go Short**.
* **The Trap (Fakeout):** If price breaks out but immediately falls back inside the Yellow Box, close the trade immediately.
---
### 5. DAILY ROUTINE (Checklist)
1. **Open TradingView:** Switch to the **15m Chart**.
2. **Check Context:** Where are we? Are we near a big Red Box (Supply) or Green Box (Demand)?
3. **Check Trend:** Is price above or below the Blue VWAP line?
4. **Wait for the Open:** Let the first hour of New York pass (to form the Yellow IB Box).
5. **Set Alerts:** Right-click the chart and set alerts for "IB Breakout" or "Golden Pocket".
6. **Execute:** Switch to the **5m Chart** to find your entry trigger (FVG).
---
### 6. RISK MANAGEMENT RULES
* **Stop Loss:** NEVER trade without one. Place it just outside the FVG box or the Zone.
* **Risk per Trade:** 1% to 2% of your account maximum.
* **No Trade Zone:** If the price is "chopping" (moving sideways) inside the Yellow IB Box, **do not trade**. Wait for a breakout.
Point of Control [BigBeluga]🔵 OVERVIEW
Point of Control identifies the exact price level with the highest traded volume over a selected lookback period.
This level—called the Point of Control (PoC) —marks where the greatest market participation occurred, representing a zone of highest volume.
The indicator helps traders visualize dominant volume concentrations, fair-value levels, and structural balance within recent price action.
🔵 CONCEPTS
Point of Control (PoC) — The single price level within the defined lookback range that has accumulated the most traded volume.
Volume Distribution Bins — The price range is divided into 25 equal bins, and volume is aggregated per bin to locate the maximum concentration.
Range Boundaries — The highest and lowest price within the lookback window are used to form the upper and lower reference limits.
PoC Channel — Optional upper and lower bands plotted around the main PoC to visualize a fair-value corridor.
Volume Intensity Mapping — Candle color dynamically shifts based on the candle’s position relative to the PoC channel, showing whether price is balanced or trending away from high-volume levels.
🔵 FEATURES
Configurable Lookback Range — Adjust how many bars (10–400) are used for calculating the PoC.
Precise PoC Calculation — Volume aggregation across 25 bins to identify the exact volume peak.
Dynamic Channel Visualization — PoC bands above and below the central level to indicate equilibrium tolerance.
Adaptive Candle Coloring —
- Neutral → price inside PoC channel. Gray
- Bullish → price above PoC channel. Blue 🔵
- Bearish → price below PoC channel. Orange 🟠
Automatic Volume Labeling — Displays total volume at the active PoC level for quick reference.
Directional Indicators — 🔵 or 🟠 markers appear when price shifts above or below the PoC channel.
Range Visualization — Plots the highest and lowest points of the active lookback window for contextual awareness.
Live Updating Logic — PoC recalculates automatically every 15 bars for efficient chart performance and accuracy.
🔵 HOW TO USE
Volume Anchoring — Use PoC as a reference for where the majority of volume occurred; price often reacts to or consolidates around this level.
Trend Confirmation — Sustained price movement away from PoC channel may signal developing directional imbalance.
Value Tracking — Watch the shifting of PoC across time to identify where fair value migrates during market evolution.
Equilibrium Mapping — When price hovers around PoC, the market is balanced; when it departs, a new value zone may form.
Combine With Volume Profiles — Use alongside profile tools for higher-resolution analysis of institutional activity.
🔵 CONCLUSION
Point of Control provides a pure, volume-centric view of market balance by pinpointing where most transactions occurred within any chosen range.
It delivers a clean and efficient visualization of fair value zones—helping traders track the heartbeat of market participation, recognize dominant liquidity areas, and stay aligned with where true market interest resides.
Asian Stop Hunt ModelSTOP HUNT MODEL – STRATEGY DESCRIPTION
The Stop Hunt Model is designed to capture high-probability trades by targeting stop-loss liquidity from retail traders at buy-side and sell-side liquidity zones. The strategy focuses on identifying where liquidity is taken during the Asian session, waiting for a Change of Character (CHoCH), and then entering from unfilled orders (Balanced Price Range / Imbalance) in the direction of the dominant IPDA bias. The objective is to trade from engineered liquidity sweeps toward the next logical liquidity pool, while maintaining strict risk control.
The model operates primarily on the 5-minute chart, with early confirmation on the 3-minute chart. The Asian Killzone is used to define the initial range, plotting its high and low. Higher-timeframe liquidity from Daily, 4H, and 1H charts is marked in advance to provide directional context. IPDA direction is determined using macro alignment such as global interest rate bias and long-term trend behavior.
Once the Asian session concludes, price is expected to sweep either the high or low of the Asian range or the previous day’s high/low. After the liquidity sweep, the market must show a valid CHoCH, confirming a shift in internal structure. Entries are taken only after the formation and retest of a Balanced Price Range (BPR) created by overlapping imbalances. Trades are executed from these imbalance zones, targeting the next liquidity area, with stop loss placed at the most recent swing high or low.
This model prioritizes precision over frequency, aiming for fewer trades with higher reward-to-risk ratios, typically 1:3 or better, and a strict daily risk cap.
CHECKLIST – STOP HUNT MODEL
1.Mark Asian Killzone High and Low
2.Identify IPDA directional bias for the pair
3.Mark Buy-side and Sell-side liquidity from Daily, 4H, and 1H
4.Wait for a liquidity sweep (Asian High/Low or Previous Day High/Low)
5.Confirm a valid CHoCH
6.Identify a valid BPR (overlapping imbalance)
7.Enter trade from the BPR zone
8.Target the next liquidity pool
9.Place stop loss at the last swing high or low
RULES – STOP HUNT MODEL STRATEGY
> Always pre-mark Buy-side and Sell-side liquidity on 1D, 4H, and 1H
> Asian Killzone must complete by 10:30 AM IST
> After Asian close, mark 15-minute timeframe liquidity
> Trade only after the market sweeps the Asian session high or low
> Align trades with IPDA direction:
> Bullish IPDA → Prefer sweep of Asian Low
> Bearish IPDA → Prefer sweep of Asian High
> CHoCH confirmation is mandatory:
> Green CHoCH for bullish setups
> Red CHoCH for bearish setups
Setup conditions:
1. Bullish: CHoCH above price + BPR below price
2. Bearish: CHoCH below price + BPR above price
3.BPR must be formed by overlapping imbalances:
4.Red → Green for bullish
5.Green → Red for bearish
6.Look for V-shaped (bullish) or A-shaped (bearish) candle behavior
7.Entry only on imbalance retest — no chase entries
8.Targets must be killzone extremes or next liquidity zone
9.Stop loss must always be at the last swing high or low
10.No manual exits if aiming for 1:3 RR
11.If price sweeps both sides or no clean sweep occurs → No Trade
12.Trade less, execute cleaner setups
13.Daily target: 1% maximum
MaPla Green Pen - PaTom Graded Zones📘 User Guide: "MaPla Green Pen - PaTom Graded Zones"
This indicator is a complete trading system that combines technical analysis of support/resistance zones (Zones) with specific entry signals (Entry Signals) and integrated risk management (Risk Management).
1. Key Indicator Components
The indicator displays three main components on the chart:
Component,Color,Original Name,Description
Demand/Supply Zone,🟥 Red/🟦 Blue,Sone MaPla,Support/Resistance zones derived from Pivot High/Low. Used as areas of interest or potential reversal points.
Entry Signal,🟢 Green/🔴 Red,MaPla Green Pen,Trade entry signals generated by a specific rejection candlestick pattern (often resembling a Pin Bar).
Risk/Reward Lines,🟢 Lime/🟠 Orange/🔴 Red,PaTom Graded,Take Profit (TP) and Stop Loss (SL) levels automatically calculated based on the user-defined Risk/Reward Ratio.
2. Understanding the Settings (Inputs)Users can adjust these three main parameters to suit their strategy and trading timeframe:Setting NameCode VariableMeaning and AdjustmentZone Strength (Pivot Period)i_strengthDefault: 10Determines the strength of the drawn zones. Higher values make zones rarer but more significant (better for higher timeframes). Lower values create more frequent zones.Take Profit Ratio (Risk/Reward)i_tp_ratioDefault: 1.5The ratio of reward to risk. A value of 1.5 means the TP distance is 1.5 times the SL distance. It is recommended to use values of 1.0 or higher.Zone Transparencyi_zone_transDefault: 88Sets the transparency of the zone's background color. Set to 0 for solid color, or 100 for maximum transparency.
3. How to Use the Signals (Trading Strategy)
The indicator operates automatically. Follow these steps when a signal appears:
3.1 📉 For a SELL Signal
Entry: A Red Label ("SELL Signal") appears above the candlestick, indicating a strong rejection of upward price movement.
Take Profit (TP): The Orange Line (TP) is automatically drawn, based on the set RR Ratio.
Stop Loss (SL): The Red Dashed Line (SL) is automatically drawn, positioned slightly above the high of the rejection candle.
3.2 📈 For a BUY Signal
Entry: A Green Label ("BUY Signal") appears below the candlestick, indicating a strong rejection of downward price movement.
Take Profit (TP): The Lime Green Line (TP) is automatically drawn, based on the set RR Ratio.
Stop Loss (SL): The Red Dashed Line (SL) is automatically drawn, positioned slightly below the low of the rejection candle.
4. Important Notice and Disclaimer
To maintain responsibility to users and comply with TradingView's rules, a clear Disclaimer must be included with the published indicator.
🚨 Important Disclaimer
Not Financial Advice: This indicator is solely a technical analysis tool based on mathematical conditions and candlestick patterns. It does not constitute financial or trading advice. Users must conduct their own analysis and make independent trading decisions.
Repainting: The entry signals in this indicator are Non-Repainting once the bar is closed. However, the Pivot High/Low zones (Demand/Supply Zones) may slightly adjust if a stronger, subsequent candle forms (a normal characteristic of Pivot calculation).
Risk: Trading involves risk. Users should always utilize Stop Loss orders and trade only with capital they can afford to lose.
Alerts: Alerts can be set up on TradingView using the programmed messages: "BUY Signal Confirmed" or "SELL Signal Confirmed."
🇹🇭 ฉบับภาษาไทย: สรุปวิธีการใช้งาน
ผู้ใช้งานควรใช้อินดิเคเตอร์นี้เป็น เครื่องมือยืนยัน สัญญาณเข้าซื้อขาย โดยอาจพิจารณารอสัญญาณ "แม่ปลาปากกาเขียว" (Buy/Sell Label) เมื่อราคาวิ่งเข้าสู่ "โซนแม่ปลา" (Demand/Supply Zone) ที่แข็งแกร่ง เพื่อเพิ่มโอกาสสำเร็จในการเทรด
ta.emata.emata.emata.emata.emata.emagood tenicalgood tenicalgood tenicalgood tenicalgood tenicalgood tenical
VE tekninen analyysi (osakkeet)Stock analysis script based on the VE strategy.
This script identifies the most recent peak and then highlights a −15% decline in yellow and a −20% decline in red.
This visualization illustrates price drawdowns according to our strategy.
Liquidity Hunter: Stop Hunts & Volume ClustersStop Hunt Wick Detection
What it catches:
Wicks that are 2x+ larger than the candle body (adjustable)
Minimum wick size to filter out noise
Optional volume confirmation (stops hunts usually have higher volume)
Marks bullish stop hunts (long lower wicks) with 💎 and "BUY LIQ"
Marks bearish stop hunts (long upper wicks) with 💎 and "SELL LIQ"
Extends dashed lines showing where liquidity was grabbed
Volume Cluster Detection
What it tracks:
Bars with volume 1.5x+ above average (adjustable)
Automatically merges nearby clusters within 3 bars
Shows different colors based on volume intensity:
Yellow = 3x+ average volume (extreme)
Orange = 2x+ average volume (strong)
Blue = 1.5x+ average volume (moderate)
Draws horizontal zones showing where volume accumulated
Labels show the volume multiplier (e.g., "VOL: 2.3x")
Adjustable Settings
You can tune:
Wick-to-body ratio threshold
Minimum wick size percentage
Volume confirmation requirements
Cluster sensitivity and merge distance
The theory: Stop hunts grab liquidity above/below key levels, then price reverses. Volume clusters show where institutions accumulated positions. Both mark areas price is likely to revisit.
Try it out and let me know what needs tweaking!
Simple ATR Trailing StopThis Pine Script v6 indicator overlays a Chandelier Exit-style ATR trailing stop on TradingView charts. It calculates volatility using ATR(14) with a customizable multiplier (default 3.0), plotting green long stops below highs and red short stops above lows. Ideal for swing trading, it dynamically adjusts exits to lock in profits while adapting to market volatility—toggle lines for longs/shorts as needed.
Cody Order Block Finder with RegressionThe Cody Order Block Finder with Regression Channel is a comprehensive trading tool that combines order block identification with linear regression analysis. This dual-approach indicator is designed to help traders identify potential institutional order flow zones within the context of established market trends, providing a structured methodology for trade entry and exit decisions.
Free Telegram Trading Community t.me
Order Block Detection System
Identifies potential institutional buying and selling zones based on specific candle patterns
Configurable detection parameters including required subsequent candles and minimum percentage moves
Three visual color schemes (Dark, Bright, Neon) for different chart backgrounds
Options to display order blocks using wick ranges or body ranges
Advanced filtering capabilities including size-based and ATR-based filters
Historical display controls with options to show all order blocks or only the most recent instances
Linear Regression Channel
Customizable regression length from 1 to 5000 periods
Upper and lower deviation channels with adjustable multipliers
Pearson's R correlation coefficient display for trend strength assessment
Flexible extension options for channel lines (left, right, both, or none)
Visual channel fills between regression lines for clear trend identification
Technical Specifications
Detection Logic
Bullish order blocks: Identified by a bearish candle followed by a specified number of consecutive bullish candles with minimum percentage movement
Bearish order blocks: Identified by a bullish candle followed by a specified number of consecutive bearish candles with minimum percentage movement
Size validation through configurable percentage thresholds
Optional ATR filtering for volatility-adjusted order block identification
Visual Elements
Triangle markers indicating order block locations above or below relevant candles
Extended lines marking order block boundaries with configurable right-side extension
Informative labels displaying order block size percentages
Dynamic trend labels based on regression slope analysis
Adjustable transparency and coloring for all visual elements
Alert System
Context-aware alerts that only trigger in confirmed trends
Buy alerts: Bullish order blocks detected during uptrends (positive regression slope)
Sell alerts: Bearish order blocks detected during downtrends (negative regression slope)
Customizable alert messages with trend context information
Performance Optimization
Maximum 500 lines and 500 labels for system resource management
Efficient array-based line management for historical display controls
Conditional calculations to reduce processing overhead
Application for Traders
This indicator serves multiple trading methodologies:
Trend-following traders can use regression channels for trend identification
Institutional flow traders can identify potential order block zones
Swing traders can locate high-probability reversal areas
Risk management through size and volatility filtering
The combination of order block detection with regression trend analysis provides traders with a comprehensive tool for identifying potential trade setups that align with both institutional activity and broader market trends. The extensive customization options allow adaptation to various trading styles and market conditions.
Simple ATR Trailing StopThis Pine Script v6 indicator overlays a Chandelier Exit-style ATR trailing stop on TradingView charts. It calculates volatility using ATR(14) with a customizable multiplier (default 3.0), plotting green long stops below highs and red short stops above lows. Ideal for swing trading, it dynamically adjusts exits to lock in profits while adapting to market volatility—toggle lines for longs/shorts as needed.
All in One [Wonniewant]This script is the ultimate "All-in-One" trend and volatility solution designed to maximize efficiency for TradingView users, especially those with indicator slot limits.
It combines **15 Moving Averages** and **4 Volatility Bands** into a single indicator, allowing you to monitor complex market trends without cluttering your indicator list.
**Key Features:**
1. **Comprehensive Moving Averages (15 Lines):**
- **SMA (Simple MA):** 5 lines (Defaults: 5, 20, 60, 120, 240)
- **EMA (Exponential MA):** 5 lines (Defaults: 5, 20, 60, 120, 240)
- **HMA (Hull MA):** 5 lines (Defaults: 5, 20, 60, 120, 240)
*Each line is fully customizable.*
2. **Advanced Volatility Bands (4 Sets):**
- **Bollinger Bands:** 2 independent sets with customizable Basis (SMA/EMA), Length, and Multiplier.
- **Keltner Channels:** 2 independent sets with customizable ATR periods and Multipliers.
3. **Full Customization & Control:**
- **Master Toggles:** Quickly hide or show entire groups (e.g., "Show SMAs Master Toggle") to keep your chart clean.
- **Individual Controls:** Toggle visibility, change colors, and adjust **Line Width (1-5px)** for every single line directly from the settings.
- **Source Selection:** Choose different price sources (Close, High, Low, etc.) for each group independently.
**How to Use:**
- Add the script to your chart.
- Open "Settings" to configure periods, colors, and line widths.
- Use the checkboxes to enable/disable specific indicators based on your strategy.
- Perfect for traders who need a clean workspace while keeping all critical technical levels within a single tool.
*Author: Wonniewant*
Volume-Weighted Hybrid Channel [Capitalize Labs]Volume-Weighted Hybrid Channel (VWHC) is a channel-only indicator designed to visualise mean and volatility structure using a blended framework. It combines a configurable mean engine (SuperSmoother, EMA, SMA, or RMA) with an anchored VWAP component, then builds a four-level band ladder around a hybrid mean using a hybrid width that blends a range engine (ATR or true range variants) with anchored, volume-weighted standard deviation. The result is a smooth, adaptive channel intended to help us contextualise price location and volatility expansion or contraction relative to the hybrid mean.
The indicator supports Weekly or Session anchoring for the VWAP and sigma components, and includes optional transition smoothing after anchor resets to reduce visual stepping. Band levels are user-defined (with automatic ordering enforcement), and optional gradient fills can be enabled for clearer zone recognition. An optional Band Occupancy Table is included to show how frequently price closes inside each zone, either over a rolling lookback or since the most recent anchor reset. This table is informational only and does not generate signals.
This script is an indicator, not a strategy. It does not place trades, generate alerts, or provide entry or exit instructions. Outputs depend on chart symbol, timeframe, and data quality, including volume availability. The channel is designed to be non-repainting in the sense that it uses confirmed bar data and does not use forward-looking logic; however, like all indicators, the current bar can update until it closes.
Risk Warning
This material is educational research only and does not constitute financial advice, investment recommendation, or a solicitation to buy or sell any instrument. Foreign exchange and CFDs are complex, leveraged products that carry a high risk of rapid losses; leverage amplifies both gains and losses, and you should not trade with funds you cannot afford to lose. Market conditions can change without notice, and news or illiquidity may cause gaps and slippage; stop-loss orders are not guaranteed.
The analysis presented does not take into account your objectives, financial situation, or risk tolerance. Before acting, assess suitability in light of your circumstances and consider seeking advice from a licensed professional. Past performance and back-tested or hypothetical scenarios are not reliable indicators of future results, and no outcome or level mentioned here is assured. You are solely responsible for all trading decisions, including position sizing and risk management. No external links, promotions, or contact details are provided, in line with TradingView House Rules.
Disclaimer
Use of this indicator is at our own discretion and risk. It is a visual analysis tool and should be validated through independent testing and a documented trading plan before being used in live decision-making.
VMDivergencesTH Volume Momentum Divergences - How It Works
🎯 Overview
This indicator detects divergences between price action and a custom momentum oscillator. Divergences occur when price moves one direction while momentum moves the opposite direction — often signaling potential reversals or trend continuations.
⚙️ The Hidden Oscillator Engine
The oscillator runs in the background (not plotted on chart) and combines two components:
Component 1: Momentum (MACD-style)
Momentum = Fast EMA(12) - Slow EMA(26)
Measures the difference between a fast and slow exponential moving average. Positive = bullish momentum, Negative = bearish momentum.
Component 2: Bollinger Band Distance
Distance = (Price - BB Middle) / Standard Deviation
Measures how far price has strayed from its "normal" range. Values > 2 = overbought territory, Values < -2 = oversold territory.
Hybrid Blend
Final Oscillator = (Normalized Momentum × Blend) + (Band Distance × (1 - Blend))
The Momentum Blend setting (default 1.0) controls the mix:
1.0 = Pure momentum (like MACD)
0.0 = Pure band distance (like Bollinger %B)
0.5 = Equal blend of both
🔍 Pivot Detection
The indicator identifies swing highs and swing lows on both:
Price (using high and low)
Oscillator (using the hybrid oscillator value)
How Pivots Are Found
text
Swing High = A bar where the high is higher than X bars on BOTH sides
Swing Low = A bar where the low is lower than X bars on BOTH sides
The Swing Strength setting (default 5) controls how many bars on each side are required:
Lower values (2-3) = More pivots, more signals, more noise
Higher values (7-10) = Fewer pivots, fewer signals, higher quality
🔀 Divergence Types Explained
1. 🟢 Regular Bullish Divergence (Reversal Signal)
Price: Lower Low ↘ (making new lows)
Oscillator: Higher Low ↗ (momentum improving)
Meaning: Price is falling but momentum is building. The selling pressure is weakening — potential bottom forming.
Visual: Green triangle below bar + solid line connecting lows
2. 🔴 Regular Bearish Divergence (Reversal Signal)
text
Price: Higher High ↗ (making new highs)
Oscillator: Lower High ↘ (momentum fading)
Meaning: Price is rising but momentum is declining. The buying pressure is weakening — potential top forming.
Visual: Red triangle above bar + solid line connecting highs
3. 🟡 Hidden Bullish Divergence (Continuation Signal)
text
Price: Higher Low ↗ (holding above previous low)
Oscillator: Lower Low ↘ (momentum dipped)
Meaning: In an uptrend, price made a higher low but oscillator made a lower low. The oscillator "reset" while price held strong — trend likely to continue UP.
Visual: Green diamond below bar + dashed line
4. 🟠 Hidden Bearish Divergence (Continuation Signal)
text
Price: Lower High ↘ (staying below previous high)
Oscillator: Higher High ↗ (momentum bounced)
Meaning: In a downtrend, price made a lower high but oscillator made a higher high. The oscillator bounced but price couldn't — trend likely to continue DOWN.
Visual: Red diamond above bar + dashed line
5. 🔵 Double Bottom with Divergence (Strong Support)
text
Price: Two lows at SIMILAR levels (within ATR tolerance)
Oscillator: Second low HIGHER than first
Meaning: Price tested the same support twice, but momentum was stronger on the second test — buyers defending that level aggressively.
Visual: Cyan circle below bar + dotted line
6. 🟣 Double Top with Divergence (Strong Resistance)
text
Price: Two highs at SIMILAR levels (within ATR tolerance)
Oscillator: Second high LOWER than first
Meaning: Price tested the same resistance twice, but momentum was weaker on the second test — sellers defending that level.
Visual: Purple circle above bar + dotted line
✅ Validation Filters
Not every pivot pair creates a signal. The indicator applies filters:
Filter Purpose
Min Pivot Distance (default 5) Pivots must be at least 5 bars apart — prevents micro-divergences
Max Pivot Distance (default 50) Pivots must be within 50 bars — prevents stale/irrelevant divergences
DTB Tolerance (default 0.3 × ATR) For double top/bottom, price levels must be within 30% of ATR
📊 Visual Elements
Element Description
Markers Shapes above/below candles when divergence triggers
Lines Connect the two pivot points involved in the divergence
Labels Text tags showing divergence type (REG, HID, DBL)
Glow Effect Thicker semi-transparent line behind main line
Background Flash Brief color flash on signal bar
Status Panel Real-time table showing oscillator value and active signals
🧠 Trading Logic Summary
┌──────────────────────────────────────────────────────────┐
│ DIVERGENCE CHEAT SHEET │
├──────────────────────────────────────────────────────────┤
│ REGULAR BULLISH │ Price ↘ Osc ↗ │ Look for LONGS │
│ REGULAR BEARISH │ Price ↗ Osc ↘ │ Look for SHORTS │
│ HIDDEN BULLISH │ Price ↗ Osc ↘ │ Add to LONGS │
│ HIDDEN BEARISH │ Price ↘ Osc ↗ │ Add to SHORTS │
│ DOUBLE BOTTOM │ Same low, Osc ↗ │ Strong SUPPORT │
│ DOUBLE TOP │ Same high, Osc ↘ │ Strong RESISTANCE │
└──────────────────────────────────────────────────────────┘
Volume Level Monitor table Volume Level Monitor table and NQ/ES Futures PRO system
Features:
1. Volume Monitor Table (Top Left)
Level: Shows HIGH/MEDIUM/LOW with color coding
RED = High volume (≥150% of MA)
YELLOW = Medium volume
BLUE = Low volume (≤70% of MA)
vs MA: Current volume as percentage of moving average
Volume: Real-time volume display
MA: 20-period volume moving average
2. Enhanced Volume Calculations
Volume percentage relative to MA
CVD (Cumulative Volume Delta) calculation
Volume level classification with thresholds
4. Additional Volume Alerts
Alert when volume reaches HIGH threshold
Alert when volume drops to LOW threshold
5. Display Control
New toggle: "Show Volume Monitor Table" in Display settings
Can be turned on/off independently
How to Use:
Volume Monitor helps you:
HIGH Volume (Red): Confirms breakouts, strong moves, potential reversals
LOW Volume (Blue): Avoid choppy periods, wait for confirmation
MEDIUM Volume (Yellow): Normal trading conditions
Best Practice:
Combine Volume Monitor with main dashboard signals
Look for HIGH volume on entry signals for best confirmation
Avoid trading during LOW volume periods (reduces false signals)
The two tables work together: Main dashboard for trade signals, Volume Monitor for volume context!
Session Lines + ATR AnalyticsDescription:
Overview:
A comprehensive trading tool that combines session visualization with real-time ATR analytics. Perfect for intraday traders who need precise timing and volatility measurements.
Features:
Session Markers
Visual indicators for Asia (00:00-08:00), London (07:00-15:00), and New York (13:00-21:00) trading sessions
Color-coded session bands at the bottom of the chart for quick identification
Fully customizable session times and colors
Hourly Vertical Lines
Automatic vertical lines drawn at the start of each hour (works on 1-minute charts)
Multiple line styles available: solid, dotted, dashed, arrows
Adjustable color and width settings
Helps identify exact timing of price movements
ATR Tool
Real-time candle range measurement
Modified ATR calculation (excludes current candle for accuracy)
Customizable ATR length and multiplier
Live countdown timer showing time remaining in current timeframe
Floating label with adjustable offset and styling
Date & Timeframe Display
Bottom-right watermark showing current date in LA timezone
Displays current timeframe with proper units (1m, 5m, 1H, etc.)
Useful for backtesting to confirm you're viewing the correct date
Best Used For:
Day trading and scalping (especially on 1-minute charts)
Session-based trading strategies
Volatility analysis using ATR
Time-based entry and exit planning
Settings:
All elements are fully customizable through the indicator settings panel, including colors, sizes, visibility toggles, and calculation parameters.
GaussianWavePacketLibrary "GaussianWavePacket"
gaussianEnvelope(gamma, t, t0)
Parameters:
gamma (float)
t (int)
t0 (int)
oscillatorReal(omega, t, phase)
Parameters:
omega (float)
t (int)
phase (float)
oscillatorImag(omega, t, phase)
Parameters:
omega (float)
t (int)
phase (float)
wavePacket(amplitude, gamma, omega, t, t0, phase)
Parameters:
amplitude (float)
gamma (float)
omega (float)
t (int)
t0 (int)
phase (float)
estimateGamma(amplitudeCurrent, amplitudePast, timeDelta)
Parameters:
amplitudeCurrent (float)
amplitudePast (float)
timeDelta (int)
periodToOmega(period)
Parameters:
period (float)
omegaToPeriod(omega)
Parameters:
omega (float)






















