HPDR Bands AdvancedCalculates the historical median of the given range and draws the percentile bands.
Chỉ báo và chiến lược
Session Levels + PDH/PDL (Adjustable, v6 fixed) 📊 Session Levels + PDH/PDL (Adjustable)
This indicator plots key intraday reference levels based on major market sessions and the previous day’s range. It is designed for traders who rely on session highs/lows, liquidity levels, and market structure rather than indicators like EMAs or oscillators.
🔹 What it shows
Asia Session High & Low
UK (London) Session High & Low
New York Session High & Low
Previous Day High (PDH) & Previous Day Low (PDL)
Each level is drawn as a horizontal line and can optionally include a label for quick identification.
⚙️ Fully adjustable
Session times for Asia, UK, and New York are fully editable
Custom colors for each session and PDH/PDL
Show / hide toggles for each session individually
Adjustable line width and right-side extension
Optional session background shading with adjustable transparency
Optional labels for all levels
🕒 Timezone handling
Uses a user-defined timezone (default: Europe/Dublin)
Works on any intraday timeframe
Session logic is replay-safe and does not repaint past levels
🎯 How traders typically use it
Identify liquidity pools at session highs/lows
Use PDH/PDL as targets, reactions, or bias levels
Combine with price action, market structure, ORBs, or ICT-style models
Mark London and NY expansions after Asia range is set
✅ Designed for
Futures traders (ES, NQ, YM, Gold)
Forex and indices
Intraday & session-based strategies
Traders who want clean charts with meaningful levels only
Session Killzone & Liquidity Sweep Engine [2025]A session-based market analysis tool designed to visualize key intraday trading sessions and monitor price interaction with session highs and lows.
The script draws configurable session ranges (Asia, London, New York AM, Lunch, and PM) using session-based boxes. For each session, the high and low levels are calculated in real time and projected forward as reference levels.
Each session high and low reacts dynamically to price behavior:
• If price wicks beyond a session level without a candle close beyond it, the level is marked as a liquidity sweep and stops extending.
• If price closes beyond a session level, the level is considered invalidated and removed.
Optional midpoint levels can be displayed for each session. Users can choose whether levels extend only until mitigation or continue beyond it, as well as whether only the most recent session or all past sessions are tracked.
Additional features include:
• Timezone support with proper session alignment
• Session drawing limits to manage chart clutter
• Timeframe filtering to restrict drawings to lower timeframes
• Optional alerts when session highs or lows are broken by a candle close
• Extensive customization for colors, line styles, labels, and visibility
This tool is intended for traders who analyze intraday price behavior around session highs and lows and want a structured way to observe wick-based interactions and level invalidations.
Kairos QX Indicator [v1.6]This script, Kairos QX , is a sophisticated, highly customizable trading engine designed for automated execution. It serves as a bridge between discretionary charting and algorithmic trading, allowing you to visually backtest complex ideas and then automate them via alerts.
Its core logic is built on Mean Reversion, but it features a powerful "Inverse Mode" that instantly transforms it into a Trend Following system.
1. The Core Strategy: Mean Reversion (Default)
By default, the script operates on the principle that price eventually returns to an average value after an extreme move.
Logic: It fades the move.
Short Signal: Price pierces the Upper Bollinger Band (overbought) + optional confluence filters (e.g., RSI > 70). The bet is that price will revert down.
Long Signal: Price pierces the Lower Bollinger Band (oversold) + optional confluence filters. The bet is that price will revert up.
2. The "Inverse Mode": Trend Following (Flip Switch)
The script includes a unique Inverse Trades checkbox that flips the entire logic engine. This allows you to adapt to market conditions where price isn't reverting but is instead "running" hard.
Logic: It rides the breakout.
Short Signal becomes Long: When price pierces the Upper Bollinger Band, instead of shorting (expecting a drop), the script enters Long (expecting the trend to blast through and continue higher).
Long Signal becomes Short: When price pierces the Lower Bollinger Band, the script enters Short, betting on a trend continuation downward.
Why this matters: If your backtest shows a failing Mean Reversion strategy (e.g., a "F" grade), flipping this switch can instantly invert those losses into wins by aligning with the trend instead of fighting it.
3. Built for Automation & Safety
The script is engineered to safely drive third-party auto-trading bots (like TradersPost, 3Commas, or PineConnector) without manual intervention.
State-Aware Execution: The script tracks its own trade state. It will never fire a duplicate "Open" signal if a trade is already active, preventing accidental double-entries.
No Trade Zone (Force Close): You can set a specific time window (e.g., 15:55 PM) where the script automatically triggers a Close Alert for any open position. This protects you from holding day trades overnight or through major news events.
Signal Cooldown: To prevent over-trading in choppy markets, you can set the script to ignore the next 1-5 signals after a trade finishes, forcing it to wait for a fresh setup.
4. Modular "Recipe" Building
You don't need to know code to change the strategy. The settings menu allows you to mix and match 10 different indicators as confluence filters.
Example Recipe: "Only take a Mean Reversion Long if: Price is below the Bollinger Band AND RSI is < 30 AND MFI is < 20."
If you check the boxes, the script enforces the rules. If you uncheck them, they are ignored.
5. Visual Projection Dashboard
The script doesn't just print arrows; it performs a real-time visual backtest on the chart.
Glowing Projections: It draws the exact Take Profit (Green) and Stop Loss (Red) boxes for historical trades. These boxes glow to indicate if the trade won or lost.
Data Integrity: It automatically detects and isolates "N/A" trades—candles so volatile that they hit both your SL and TP in the same bar—excluding them from your win rate to keep your data realistic.
Live Grading: A dashboard in the corner grades your current settings (A-F) based on their performance over the last 1,000 to 40,000 bars.
HTF Liquidity Sweep EngineHTF Liquidity Sweep Detector (Dual HTF)
Overview
This indicator is designed to identify validated liquidity sweeps on Higher Timeframes (HTF) and project them accurately onto lower-timeframe charts.
Unlike basic sweep indicators that mark every high or low break, this tool applies context-aware validation and invalidation logic to distinguish meaningful liquidity events from random volatility.
The script supports two independent higher timeframes (HTF 1 & HTF 2), allowing traders to analyze liquidity hierarchy and confluence across multiple market structures within a single chart.
⸻
Core Concept
A liquidity sweep is not considered valid simply because price exceeds a previous high or low.
This script evaluates each sweep within the structural context of the HTF candle that formed it, accounting for:
• Bullish vs bearish candle structure
• Open, close, high, and low relationships
• Temporal sequencing between HTF candles
Sweeps are treated as stateful events with a full lifecycle rather than static lines.
⸻
Sweep Lifecycle & Invalidation Logic
Each detected sweep progresses through multiple states:
• Formation – A sweep is detected when price exceeds a prior HTF high or low under valid structural conditions.
• Validation – The sweep remains provisional until subsequent HTF candles confirm it.
• Invalidation – If later HTF price action violates the structural conditions, the sweep is automatically marked as invalidated.
• Removal – Sweeps that fail during their formation phase are removed entirely to avoid misleading signals.
This approach ensures that only structurally meaningful sweeps remain visible on the chart.
⸻
Dual Higher-Timeframe Analysis
HTF 1 and HTF 2 operate as separate liquidity layers, each with independent:
• Detection logic
• Validation and invalidation rules
• Visualization styles
This allows traders to identify:
• HTF liquidity alignment
• Higher-timeframe dominance
• Confluence or conflict between liquidity zones
⸻
Projection to Lower Timeframes
Detected HTF sweeps are dynamically projected onto the active chart timeframe.
Sweep levels update in real time and maintain accurate positioning relative to HTF candle boundaries, ensuring visual consistency across timeframes.
⸻
Valid Pullback Swing Line (Optional)
An optional internal swing structure module is included to identify valid pullback swings.
This feature tracks structural pivots, updates dynamically, and automatically invalidates broken swing structures, helping traders contextualize liquidity sweeps within current market structure.
⸻
Customization
Each HTF layer supports full independent customization:
• Enable / disable HTF layers
• Timeframe selection and lookback depth
• Sweep and invalidation line styles, colors, and widths
• Label and marker display options
• Label positioning and sizing
• Alert notifications for sweep formation
⸻
Alerts
Optional alerts trigger when a liquidity sweep is formed, allowing traders to monitor potential liquidity events without constant chart supervision.
⸻
This script is published as closed-source because its sweep validation, invalidation, and multi-timeframe interaction logic represents the core intellectual property of the tool.
The description above is intended to provide conceptual clarity without disclosing proprietary implementation details.
⸻
Intended Use
This indicator is designed as a market structure and liquidity analysis tool, not a standalone trading system.
It is best used in combination with price action, higher-timeframe bias, and risk management principles.
Navigator Volume Profil FixedLong Term Investing
Day Trading
Navigator Volume Profile Fixed (Fixed + Current Session)
**Navigator Volume Profile Fixed** plots a horizontal volume profile on your chart using a **fixed timeframe anchor** (ex: Daily) and optionally overlays a **live “current” profile** for the active session/period.
It’s designed to help you quickly see where volume is building (acceptance) vs. thinning out (rejection), and to identify the key reference levels traders watch most: **PoC, VAH, and VAL**.
### What it plots
**Fixed Volume Profile (anchored to a timeframe)**
Builds a completed profile each time the selected anchor timeframe rolls over (ex: each new day on a Daily anchor).
**Current Volume Profile (live)**
Continuously updates the developing profile for the current anchor period (optional toggle).
**Point of Control (PoC)**
Highlights the single price level with the highest traded volume.
**Value Area (VAH / VAL)**
Plots the Value Area boundaries using a configurable percentage (default **68%**), and visually differentiates the value area from the rest of the profile.
Key settings
* **Enable Fixed VP**: turn the fixed/anchored profile on/off
* **Timeframe Anchor**: choose the profile reset period (ex: 1D)
* **Show Current Fixed VP**: show/hide the developing (current) profile
* **Number of Rows**: controls profile resolution (price “bins”)
* **Profile Width (%)** and **Bar Thickness**: visual scaling controls
* **PoC + Value Area toggles**: show/hide PoC and VA boundaries
* **Extend PoC Line**: optionally extend the PoC into the future
How to use it (practical)
* Treat **PoC** as the most accepted price for the anchored period.
* Use **VAH/VAL** as reference boundaries for balance vs. imbalance.
* Compare **Fixed** vs **Current** profiles to see whether volume is migrating higher/lower during the session and where price is building acceptance.
**Note:** This script draws using TradingView line objects and is optimized to stay within platform limits while maintaining a clean profile display.
Double/Triple Tops & Bottoms & Rectangle BoxesThis indicator is an algorithmic pattern recognition tool designed to automatically identify, validate, and track significant reversal structures—specifically Double/Triple Tops and Bottoms. Unlike subjective drawing tools, this script uses a strict set of quantitative rules based on swing pivots and volatility (ATR) to define market structure.
The Logical Methodology The script operates on a three-stage "scientific" detection process:
Pivot Chaining (Level Detection): The algorithm scans for significant swing highs and lows using a user-defined lookback period. It stores these pivot levels and monitors subsequent price action. If price returns to a previous pivot level within a specific volatility threshold (normalized by ATR), it registers a "touch."
Pattern Construction (Neckline Identification): Once a level has been touched the required number of times (e.g., 2 for Double patterns, 3 for Triple patterns), the script calculates the "Neckline."
For Tops: It identifies the lowest trough between the peaks.
For Bottoms: It identifies the highest peak between the valleys. This creates a valid trading range, visualized as a blue box connecting the pivot level to the neckline.
Signal Validation (Breakout vs. Failure): The pattern remains in a "pending" state until a breakout occurs.
Confirmation: A signal is generated only when a candle closes beyond the neckline (below for Tops, above for Bottoms).
Invalidation: If price breaks the pivot level itself (e.g., makes a higher high on a Double Top) before breaking the neckline, the pattern is immediately marked invalid to prevent false signals.
Key Features
ATR-Based Sensitivity: Uses Average True Range to dynamically adjust how "precise" a re-test must be, adapting to changing market volatility.
Dual-Scanning: Can independently scan for Triple Tops (Bearish) and Double Bottoms (Bullish) simultaneously with separate settings.
Time & Width Constraints: Filters out "noise" by enforcing a minimum pattern width (in bars), ensuring only structurally significant patterns are displayed.
Settings Guide
Min Top/Bottom Touches: Set to 2 for Double patterns or 3 for Triple patterns.
Pivot Lookback: The number of bars used to define a swing point (higher = larger, more significant patterns).
Touch Sensitivity: Adjusts how strictly the price must match the previous level.
Min Pattern Width: Prevents the detection of micro-patterns that are too narrow to be reliable.
Top Detector V2 This indicator detects valid tops for future double tops. Once a top is confirmed, it displays an entry line for a potential entry point and a stop-loss line for a potential stop loss.
The indicator is fully programmable.
Indicator for the best FINDING GOLDEN ZONES by OeZKAN 🌟 FIBONACCI FX ALARM PRO (V13): Precision Pullback & Reversal SystemThe FIBONACCI FX ALARM PRO (V13) is a sophisticated, single-overlay indicator designed for the tactical trader who masters high-probability pullback and reversal entries. By fusing key Multi-Timeframe (MTF) structural analysis with validated Fibonacci levels and momentum confirmation, this system provides crystal-clear Entry, Take Profit (TP), and Stop Loss (SL) targets.This is your ultimate tool for trading Mean Reversion and Retracement strategies, providing the exact levels needed for disciplined execution.
🔥 Key System Features & Core Logic1.
⚙️ Multi-Timeframe Structural MappingThe system maps the dominant structural context from a higher timeframe onto your current chart, ensuring your trades align with the institutional flow:Dynamic Supply & Demand Zones: Automatic calculation and visualization of the highest high (Supply) and lowest low (Demand) over the last 100 bars on a user-defined MTF (e.g., 60m, 240m). These zones act as highly reliable reversal and breakout levels.Structural Breakouts: Clear alerts and labels notify you the moment the price decisively breaches the main Supply or Demand boundaries, signaling potential trend continuation.2.
🎯 Fibonacci Precision (The Golden Trade Zone)At the core of the strategy is the intelligent use of Fibonacci Retracements, automatically anchored to the MTF High/Low:The Golden Ratio (61.8%): This is the Primary Entry Trigger. The system is optimized to generate a Buy or Sell signal when the price crosses the $61.8\%$ level, confirming a deep, high-value retracement.TP1 / TP2 Targets: Built-in profit targets are automatically set at the $50.0\%$ (TP1 Long) and $38.2\%$ (TP2 Long) levels for Long trades, and the $70.5\%$ (TP1 Short) and $78.6\%$ (TP2 Short) levels for Short trades, ensuring disciplined profit-taking.SL Placement: The initial Stop Loss is strategically placed at the deep $78.6\%$ (Long) or $38.2\%$ (Short) level, providing wide protection against volatility before the target is hit.3.
🚦 RSI Momentum ConfirmationMomentum is crucial for timing successful reversals. The indicator integrates the Relative Strength Index (RSI) for powerful confirmation:Oversold/Overbought Signals: Clear labels (OVERBOUGHT (SELL) / OVERSOLD (BUY)) are generated directly on the price chart when the RSI crosses the critical $70$ and $30$ levels, respectively.Dual Visibility: You get both a visual arrow/text on the main chart (governed by the show_rsi_indicator toggle) and independent alarms to confirm the momentum shift coinciding with a structural level.
🔔 FX ALARM System: Never Miss an OpportunityThe robust alert system ensures you are instantly notified of high-probability events, even when away from your screen:GOLDEN ENTRY ALARM: Triggers when price crosses the crucial $61.8\%$ Golden Ratio, signaling a potential trade setup.STRUCTURAL BREAKOUT ALARMS: Instant notification when Supply (Highest High) or Demand (Lowest Low) zones are breached.TP HIT ALARMS: Alerts for Long TP1 (50.0%) and Short TP1 (70.5%) hits, vital for managing partial exits and moving your stop loss to breakeven.
🔑 How to Use This Indicator for Disciplined TradingSet Your Context: Select a higher Timeframe for Zones & Fib (e.g., "D" or "240") than your execution timeframe (e.g., 5m or 15m).Wait for the Setup: Wait for the price to retrace and approach the $61.8\%$ Golden Ratio.Confirm & Execute: Confirm the setup with a concurrent RSI Oversold/Overbought signal. If the price crosses $61.8\%$, the system instantly plots the E (Entry), TP1/TP2, and SL levels for a disciplined trade.Elevate your strategy with the FIBONACCI FX ALARM PRO (V13). Precision, structure, and momentum—all in one powerful tool.
👉 Add it to your favorites now and start executing high-confidence trades!
Recovery Adaptive Optimizer [Starbots]Recovery Adaptive Optimizer is a high-performance, on-chart parameter optimization engine designed specifically for the Recovery Adaptive Strategy.
It enables professional traders and quantitative researchers to systematically evaluate thousands of parameter combinations directly within Pine Script, without relying on external tools.
The optimizer performs a full simulation of the strategy logic, replicating adaptive position sizing, dynamic take-profit expansion, and loss-streak behavior with precision.
🧠 Optimization Methodology
The optimizer executes a multi-configuration simulation grid in parallel, where each configuration represents a unique combination of:
Base Take-Profit (%)
Take-Profit Factor
Stop-Loss (%)
Position Size Factor
Volatility Filter (On / Off)
Flat-Market Filter (On / Off)
Trend Filter (On / Off)
Each configuration is evaluated using the same execution logic as the strategy:
Single-position model
Loss-streak-based scaling
Step-capped progression
Bar-confirmed entries and exits
Commission-aware equity accounting
This allows precise comparative analysis across high-volatility market conditions, where parameter sensitivity and expansion behavior are most relevant.
Optional features include:
Higher-timeframe signal evaluation
Volatility-conditioned execution
Flat-market exclusion
EMA trend alignment (manual toggle)
All filters can be evaluated independently across the optimization grid.
📊 Performance Metrics & Ranking
Each configuration is evaluated using multiple institutional-grade metrics:
Net Profit (%)
Maximum Drawdown (%)
Win Rate
Trade Count
Equity Curve Peak-to-Valley 'Drawdown'
Configurations are ranked using a score metric:
Score = Profit % ÷ Max Drawdown %
This allows rapid identification of parameter sets that balance performance efficiency and capital utilization.
🏆 Automated Best-Case Selection
At the end of the historical data window, the optimizer additionally identifies and displays:
🏆 Best Configuration by Net Profit
🛡️ Best Configuration by Lowest Drawdown
🎯 Best Configuration by Win Rate (with optional minimum profitability threshold)
Top-ranked configurations are displayed via ranked comparison table (Top 5 or Top 15 results)
🧩 Intended Use
This optimizer is designed for:
Professional traders
Systematic strategy developers
Quantitative research
Parameter tuning for volatile markets
Strategy calibration across different instruments and timeframes
It provides a structured, transparent environment for identifying robust parameter clusters rather than single isolated results.
POWER INDICATOR - PRO PREMIUM by OeZKAN 👑 POWER INDICATOR PRO PREMIUM V24: Predictive Intelligence Meets Precision ExecutionThe POWER INDICATOR PRO PREMIUM V24 is the pinnacle of algorithmic trading intelligence. This system transcends traditional indicators by utilizing a sophisticated framework of advanced mathematical equations to predict the impending trend direction before the market moves. It combines Smart Money Concepts (SMC), Multi-Timeframe (MTF) convergence, and Dynamic Risk Management to deliver unparalleled clarity and execution confidence.If you seek a trading partner that provides leading, predictive signals and high-probability entries, this system is your definitive solution.🧠 The Core Element: Predictive Market Context & Directional ForecastThe foundational strength of the POWER INDICATOR is its ability to forecast the market's bias through advanced quantification:🚀 Directional Pre-Cognition (LRC & Mathematical Models):The system utilizes the Linear Regression Curve (LRC) and proprietary statistical models as its core mathematical engine. This process extrapolates the probable trend path and generates a Directional Forecast for the coming bars, enabling you to anticipate moves rather than react to them. This forecast serves as the ultimate bias filter.🧠 The Convictional Filter: Quantifying Probability ($60\%$ Confidence):This filter is our proprietary Probability Brain. It eliminates market noise by forcing convergence across multiple high-level factors (MTF agreement, Momentum, SMC levels).High-Conviction Threshold: Independent analysis confirms that the Conviction Filter provides an exceptionally high win rate and signal quality starting at just $60\%$. Setting your threshold at this level ensures you only consider trades where the predictive mathematical components are in strong alignment.🌊 FVG & GP Predictive Zones:The system automatically identifies and projects critical Fair Value Gaps (FVG/LSOB) and the Golden Pocket (GP) Re-Test Zone. These zones are algorithmically identified as high-probability targets for pullbacks and reversals, providing a clear map of where liquidity will be sought.💡 The Convictional Trading Workflow: A 3-Step Guide to ExecutionContext Check: Confirm the LRC Directional Forecast aligns with your trade and the Conviction Score Meter is above your desired threshold (minimum $60\%$).Optimal Entry: Wait for the signal to trigger at a high-R:R entry point (GP, FVG, or Aggressive Impulse), guided by your chosen trading mode.Dynamic Management: Let the system handle risk, utilizing Structural SL and automatic Multi-Method Trailing Stops post-TP1.🎯 Mode Selection: Matching Strategy to MarketThe indicator's power lies in its Modularity. Selecting the correct mode is crucial for optimizing your results.Trading StyleRecommended ModesPrimary Rationale & Entry LogicHigh-Frequency ScalpingCT Scalp-OnlyDesigned for counter-trend entries in a pullback towards the Golden Pocket (GP). Uses tighter SL/TP multipliers for quick profit-taking. (Fast, high-R:R)ATR Channel Scalp (ACS)Utilizes volatility channels (ATR bands) for quick mean-reversion trades when price overextends.Strategic Day Trading / Swing TradingUltimate Fusion Mode (UFM)The highest probability mode. Best for catching major shifts confirmed by SMC (LRC, GP, FVG, MSS). Waits for a deep, high-R:R Re-Test Entry.Haupttrend & Scalp (Kombi)Excellent general-purpose mode. Focuses on trend continuation but allows for high-R:R pullback entries at key levels (GP/FVG). (Balanced)FVG Mitigation Entry (FME)Ideal for SMC traders. Waits for the price to precisely re-test and mitigate an unmitigated Fair Value Gap (FVG) or Liquidity Sweep (LSOB) zone before entry.Breakout & Momentum TradingBand Breakout-OnlyTriggers an entry only when price decisively breaks outside the SMA Volatility Bands (configurable). Filtered by momentum requirements.Dynamic Range Expansion (DRE)Specifically detects low-volatility consolidation before an anticipated high-momentum expansion phase.🔔 The Master Alert System: Your Execution EdgeThe powerful Alert functionality ensures you can monitor multiple assets and timeframes without being glued to the screen.1. ✅ Dynamic MASTER ALARM (Compact Text)The core alert uses a compact, dynamic JSON/text message that contains all necessary information for quick execution:Action: BUY / SELLMode Used: Conviction Score: Key Level: 2. LRC/GP Combo-Alert (High-R:R)This is the most valuable alert for strategic traders. It triggers only when the LRC direction is confirmed and the price enters the Golden Pocket (GP) Re-Test Zone, indicating an optimal high-R:R pullback opportunity.Final Note: To maximize the predictive power, ensure the useConvictionFilter is set to a minimum of $60\%$ and the useStructureSL is activated to protect your capital with intelligent stop placement.Stop reacting. Start predicting. Activate the POWER INDICATOR PRO PREMIUM V24 and lead the market today!
Macro Pulse Engine (Fixed Feeds)The Macro Engine aggregates key macro signals (DXY, 10Y yields, VIX, market breadth, and major indices) into a single risk-on vs risk-off read.
Green / positive readings favor risk-taking and dip-buying
Red / negative readings signal caution, volatility expansion, and defensive positioning
The score updates off confirmed daily closes, not noisy intraday data
It doesn’t predict direction — it confirms whether risk is being rewarded or punished.
zhanzhang6
Script Name: Zero Lag Trend Signals (MT5)
Description:
A high-sensitivity trend-tracking tool optimized for crypto and stock markets. It eliminates lag in price signals via advanced filtering, generating clear long/short prompts (marked by colored blocks) aligned with market momentum. Suitable for intraday and swing trading—works with all timeframes, with adjustable sensitivity to fit different asset volatilities.
zhanzhang6666
Script Name: Zero Lag Trend Signals (MT5)
Description:
A high-sensitivity trend-tracking tool optimized for crypto and stock markets. It eliminates lag in price signals via advanced filtering, generating clear long/short prompts (marked by colored blocks) aligned with market momentum. Suitable for intraday and swing trading—works with all timeframes, with adjustable sensitivity to fit different asset volatilities.
FTL Context - Public TeaserFTL Context (Teaser) – Public
FTL Context (Teaser) is a visual market context layer designed to highlight periods of increased market risk and structural tension.
This script does NOT provide trading signals and is NOT intended for standalone trading decisions.
It serves as a contextual overlay only, helping traders visually identify when market conditions shift away from equilibrium.
The teaser version is intentionally limited and does not expose the underlying logic or decision framework.
Full functionality, advanced filters, and integrated decision logic are available in the invite-only FTL Context Layer (PRO).
Educational & informational use only.
zhanzhang666Crypto: RSI (overbought/oversold), MACD (trend), Bollinger Bands (volatility), Volume (trend validity), EMA/SMA (trends), RSI Divergence (reversals), Fibonacci (support/resistance), Stochastic (extremes).
• US Stocks: EPS (profit), P/E (valuation), MACD/RSI (trend/overbought), Volume (movement strength), SMA/EMA (trends), ADX (trend strength), Bollinger Bands (volatility), Dividend Yield (returns), ROE (efficiency).
CRS (2 symbols: Ratio or Normalized) + InverseMade for Crosrate comparison By Leo Hanhart
This script is made to do a comparison between two assets under your current chart.
For example if you want to compare SPX over Growth ETF's Below a current asset to find momentum in your stock trading above it
NQ Market DNA: ML ScorerNQ Market DNA: ML Scorer — Indicator Description
NQ Market DNA: ML Scorer is a session-structure and machine-learning scoring tool designed specifically for Nasdaq futures (NQ/MNQ). It converts the market’s overnight behavior into a single, probability-style score (0–100%) and a clear directional bias for the upcoming New York session.
This script is not a generic “trend indicator.” It is a rules-based implementation of a machine-learning model whose feature set and weightings were built and calibrated in Python using historical session data. The Pine Script version is the real-time execution layer: it measures the live session structure, applies the model weights, and displays the result on-chart.
________________________________________
What the indicator plots
1) Session Boxes (Structure Map)
The indicator draws three session ranges using boxes and a midline:
• Asia Session (20:00–02:00 NY time by default)
• London Session (02:00–08:00 NY time by default)
• New York Session (08:00–16:00 NY time by default)
Each session box:
• Expands in real time as highs/lows develop
• Includes a dotted midline (session midpoint)
• “Locks” its final values once the session ends
2) Extension Levels (Target Interaction)
When Asia or London ends, the script projects high and low extension lines forward into the day. These lines extend until one of the following happens:
• Price trades back through the level (a touch/cross condition), or
• The script reaches the hard stop at 16:00 (end of NY session)
This makes it easy to visually track whether later sessions respect or invalidate prior-session extremes.
________________________________________
The ML scoring concept
Output: “Probability of High First” (0–100%)
The model’s output is a normalized score intended to behave like a probability. Practically:
• Score ≥ 50% → Bullish bias (“London High First”)
• Score < 50% → Bearish bias (“London Low First”)
The score is produced by summing weighted session features. If a feature is bullish, it contributes its weight; if bearish, it contributes zero. The weights approximately sum to ~100, so the final score naturally maps into a 0–100 range.
Bias coloring
The on-chart score cell uses a risk-style color gradient:
• Strong Bullish (typically > 75): green
• Neutral / mixed (around 40–75): orange
• Bearish / weak (below ~40): red
________________________________________
Features used by the model (and why they matter)
The ML scorer is driven by session positioning, trend, and volatility. Your Python research determined the relative importance of each feature; the largest weights reflect the strongest historical explanatory power.
Primary drivers (most important)
1. NY Open Location (Weight ~63.73%)
Checks whether the NY session opens above or below the London midpoint.
This is treated as the dominant structural signal because it captures whether NY is opening in the “upper half” or “lower half” of London’s range.
2. London Trend (Weight ~28.09%)
London close vs London open (bullish if close > open).
This represents whether London printed a directional push versus chop.
3. London Outcome / Structure (Weight ~4.21%)
Classifies London relative to Asia:
o “High-only sweep” (bullish structure) if London breaks Asia high without breaking Asia low
This is a proxy for one-sided liquidity behavior rather than symmetric volatility.
Minor factors (smaller weights, but still additive)
4. London Volatility (Weight ~1.11%)
London range relative to its own rolling average (lookback-controlled).
Used as a contextual amplifier: higher-than-normal London range can support continuation.
5. Asia Volatility (Weight ~1.05%)
Asia range relative to its rolling average.
Helps distinguish “quiet overnight” vs “expanded overnight,” which can change the day’s tendency.
6. Asia Trend (Weight ~1.00%)
Asia close vs Asia open.
A light directional context input.
7. London Open Location vs Asia Mid (Weight ~0.81%)
Whether London opens above/below the Asia midpoint.
Helps quantify early handoff positioning.
________________________________________
How to read the table
The table is designed to be a compact decision panel:
• ML PREDICTOR: the score (%) for the current day once NY has opened
• NY Bias: bullish or bearish interpretation based on the 50 threshold
• Top Drivers: shows the state of the highest-weighted features (NY location, London trend, structure)
• Minor Factors: a condensed read on volatility context (e.g., “High Vol” vs “Mixed/Low”)
This layout lets you quickly understand not only the bias, but what caused it.
________________________________________
Best-practice usage notes
• This tool is intended to be used as a context engine, not a standalone entry signal.
• It is most effective when combined with your execution framework (levels, risk model, confirmations, etc.).
• Because it relies on session boundaries, chart symbol and market hours must match the intended instrument (NQ futures) for the cleanest behavior.
________________________________________
Critical disclaimer and settings warning
IMPORTANT — DO NOT CHANGE SETTINGS.
This indicator’s machine-learning weights and feature calibration were derived in Python from historical data under a specific configuration (session windows, timezone, and feature definitions). Changing any inputs—especially session times, timezone, rolling windows, or ML feature weights—can materially invalidate the model’s expected behavior and may produce misleading outputs.
Use with caution.
This script is provided for educational and informational purposes only and does not constitute financial advice. Futures trading involves substantial risk and is not suitable for all traders. Past performance and historical patterns do not guarantee future results. You are solely responsible for any trading decisions and risk management.
If you ever re-train or re-calibrate the model in Python, update the weights only by replacing them with the new Python-derived values as a complete set—do not “tune” them manually.
Swing TraderCore Logic
This is a swing reversal system designed to catch bounces at swing lows (LONG) and rejections at swing highs (SHORT).
Signal Flow:
Warning Phase: Yellow diamonds appear when price makes new lows/highs within the lookback period
Entry Phase: Signals fire when price bounces back after the warning (close > previous low for LONG, close < previous high for SHORT)
Swing Size Filter: Requires minimum point movement (default 50 points) between the stored high/low levels
Strengths
✅ Two-step system prevents premature entries - warns first, then confirms
✅ Alternating signals - won't fire consecutive LONGs or SHORTs
✅ Swing size requirement ensures meaningful moves
✅ Clean visuals - large labels, thick lines, clear table
zhanzhang66Key Indicators for Crypto & US Stock Analysis
These indicators are vital for crypto and US stock trading, aiding in trend identification, overbought/oversold judgment, valuation assessment and reversal signal capture, supporting rational trading decisions.
Crypto Indicators
• RSI: Measures price strength to spot overbought/oversold conditions.
• MACD: Tracks trend direction and momentum, capturing reversal signals.
• Bollinger Bands: Gauges price volatility and potential breakouts.
• Volume: Verifies trend validity and market liquidity.
• EMA/SMA: Identifies short/long-term trend directions.
• RSI Divergence: Warns of potential trend reversals.
• Fibonacci Retracement: Predicts key support/resistance levels.
• Stochastic Oscillator: Pinpoints extreme overbought/oversold states.
US Stock Indicators
• EPS: Reflects company profitability, a core fundamental metric.
• P/E Ratio: Evaluates stock valuation rationality.
• MACD/RSI: Tracks trend, momentum and overbought/oversold conditions.
• Volume: Confirms price movement strength.
• SMA/EMA: Clarifies short/long-term trends.
• ADX: Measures trend strength to avoid sideways market trades.
• Bollinger Bands: Judges volatility and breakout directions.
• Dividend Yield: Key for value investors, showing stable returns.
• ROE: Assesses company profit efficiency for long-term investment.
C2 Closure Alert From Key Level (FVG & Swings)This indicator is designed based on the C2 Closure Trader, specifically focusing on identifying high-probability C2 Candle Closures and Key Level Sweeps. It automates the detection of "Candle 2" setups where price sweeps a key level (Swing High/Low or FVG) and closes back inside, signaling a potential reversal or continuation.
Key Features :
Advanced C2 Detection:
Detects when the current candle (C2) sweeps the previous candle (C1).
Deep Context Check: It validates the setup by checking if C1 was interacting with a Key Level (Swing High/Low or FVG) OR if C1 just created a Fresh FVG.
Logic: Ensures no valid setup is missed, even if the sweep happens instantly after FVG creation.
Straight Sweep Lines (Visuals):
Draws a clean, straight horizontal line from the C1 High/Low to the C2 candle.
Helps you visualize exactly which level was swept.
Customization: You can change the line color and width from settings.
Smart FVG & Swing Levels:
Automatically plots Active Bullish/Bearish FVGs and Swing Highs/Lows.
Mitigation Logic: Levels remain active until a valid signal is generated or price invalidates them. Once used, they turn gray (mitigated) to keep the chart clean.
Mechanical Settings Menu:
Fully customizable inputs organized into clean groups (Algorithm, Signal, Visuals, Limits).
Label Size Control: Adjust the signal label size (Tiny to Huge) to fit your screen.
Transparent Labels: Clean "C2" text without background boxes for a professional look.
Robust Alert System:
Three specific alert options added for automation:
Bullish C2 Closure: Fires only on valid Long setups.
Bearish C2 Closure: Fires only on valid Short setups.
Any C2 Close: Fires on any valid setup.
Note: Alerts are strictly set to trigger Once Per Bar Close to avoid false signals during running candles.
How to Use:
Add to Chart: Apply the indicator to your timeframe (Recommended: 15m, 1H, 4H for narrative).
Identify Signals: Look for the "C2" text label.
Green C2: Bullish Setup (Sweep of Low + Close Up).
Red C2: Bearish Setup (Sweep of High + Close Down).
Validation: The indicator automatically checks if the sweep occurred at a valid Swing Point or FVG. If you see the signal, the context is valid.
Entry: Use the close of the C2 candle as your confirmation to frame a trade or look for lower timeframe entries.
Settings Guide:
Algorithm Sensitivity: Adjust Pivot Left/Right Bars to define how strict the Swing Highs/Lows should be.
Signal Appearance: Change the text (e.g., "Entry") or adjust the Label Size.
Active/History Limits: Control how many active or old (mitigated) lines/boxes stay on the chart to manage clutter.
Visuals: Customize colors for Bull/Bear FVGs, Highs/Lows, and Sweep Lines to match your chart theme.
Disclaimer: This tool is for educational and analytical purposes only. Always manage your risk properly.
S50 Complete Hedge & Trade SystemTFEX:S501!
คู่มือการเทรด CALENDAR SPREAD
1. กลยุทธ์หลัก: MEAN REVERSION SPREAD TRADING
หลักการ:
- Spread ระหว่าง series จะมีค่าเฉลี่ย (Mean) และแกว่งไปมารอบๆ ค่าเฉลี่ยนี้
- เมื่อ Spread เบี่ยงเบนไปจาก Mean มากเกินไป จะกลับมาหาค่าเฉลี่ย (Mean Reversion)
2. INDICATORS ที่ใช้
A. Z-Score
Z-Score = (Spread ปัจจุบัน - Spread เฉลี่ย) / Standard Deviation
การตีความ:
- Z > +2.0 → Spread แพงเกินไป → SHORT spread
- Z < -2.0 → Spread ถูกเกินไป → LONG spread
- Z ≈ 0 → Spread อยู่ที่ค่าเฉลี่ย → EXIT
B. Correlation
Correlation > 0.9 = ดีมาก (เคลื่อนไหวพร้อมกัน 90%+)
Correlation > 0.7 = ดี (ใช้ได้)
Correlation < 0.7 = ไม่แนะนำ (Hedge ไม่มีประสิทธิภาพ)
C. Beta & Hedge Ratio
Beta = Cov(S1, S2) / Var(S2)→ บอกว่า S1 เคลื่อนไหวเท่าไหร่เมื่อ S2 เคลื่อนไหว 1 หน่วย
Hedge Ratio = Beta→ ใช้คำนวณจำนวน contract ที่ต้อง hedge
3. วิธีการเทรด SPREAD (ทีละขั้นตอน)
STEP 1: หาโอกาส
เงื่อนไข Entry:
1. |Z-Score| >= 2.0
2. Correlation > 0.7
3. Signal = "SHORT SPREAD" หรือ "LONG SPREAD"
STEP 2: คำนวณ Position Size
ตัวอย่าง:
- Account Size = 1,000,000 บาท
- Risk Per Trade = 2% = 20,000 บาท
- Spread Std Dev = 15 จุด
- Stop Loss = 1.0x Std Dev = 15 จุด
- S50 มูลค่า = 5 บาท/จุด
Position Size = Risk Amount / (SL Distance × Point Value)
= 20,000 / (15 × 5)
= 20,000 / 75
= 266 contracts (ปัดเป็น 26 สัญญา)
STEP 3: คำนวณ Hedge Ratio
สมมติ: Beta (S1:S2) = 1.05
ถ้าเทรด SHORT S2-S1 spread:
- Sell S2: 26 contracts
- Buy S1: 26 × 1.05 = 27.3 → ปัดเป็น 27 contracts
Portfolio Delta ≈ 0 (Market Neutral)
4. ตัวอย่างการเทรดจริง
SCENARIO A: SHORT SPREAD (Z-Score = +2.5)
สถานการณ์:
- S2-S1 Spread = 50 จุด
- Spread MA = 35 จุด
- Spread Std Dev = 6 จุด
- Z-Score = (50-35)/6 = +2.5 ⚠️ แพงเกินไป
- Correlation = 0.92 ✅
- Beta = 1.05
TRADE PLAN:
1. SELL S2: 10 contracts @ 1,200
2. BUY S1: 10 × 1.05 = 10.5 → 11 contracts @ 1,150
Initial Spread = 50 จุด
Take Profit (TP):
- Target Spread = MA = 35 จุด
- TP Distance = 50 - 35 = 15 จุด
- Profit = 15 × 5 = 75 บาท/spread
- Total Profit = 75 × 10 = 750 บาท
Stop Loss (SL):
- SL Spread = MA + (1.5 × Std Dev) = 35 + 9 = 44 จุด
- SL Distance = 50 - 44 = 6 จุด (ผิดพลาด - ควรเป็น 50 + 6 = 56)
- Loss = 6 × 5 × 10 = 300 บาท
Risk:Reward = 300:750 = 1:2.5
SCENARIO B: LONG SPREAD (Z-Score = -2.3)
สถานการณ์:
- S3-S2 Spread = 20 จุด
- Spread MA = 35 จุด
- Spread Std Dev = 6.5 จุด
- Z-Score = (20-35)/6.5 = -2.3 ⚠️ ถูกเกินไป
- Correlation = 0.88 ✅
- Beta = 1.03
TRADE PLAN:
1. BUY S3: 10 contracts @ 1,230
2. SELL S2: 10 × 1.03 = 10.3 → 10 contracts @ 1,210
Initial Spread = 20 จุด
Take Profit:
- Target Spread = 35 จุด
- Profit = (35-20) × 5 × 10 = 750 บาท
Stop Loss:
- SL Spread = MA - (1.5 × Std Dev) = 35 - 9.75 = 25.25 จุด
- SL = 20 - (20-25.25) = 14 จุด
- Loss = 6 × 5 × 10 = 300 บาท
5. RISK MANAGEMENT
A. Position Sizing Rules
1. อย่าเสี่ยงเกิน 2-3% ต่อการเทรด
2. ใช้ Beta Hedge Ratio เสมอ
3. ตรวจสอบ Margin requirement
B. Stop Loss Strategy
วิธีที่ 1: Fixed Std Dev
- SL = Entry ± (1.0-1.5x Std Dev)
วิธีที่ 2: ATR-based
- SL = Entry ± (1.5x ATR)
วิธีที่ 3: Time-based
- ปิดภายใน 3-5 วัน ถ้าไม่ได้กำไร
C. Take Profit Strategy
วิธีที่ 1: Target MA
- TP เมื่อ Spread กลับมาที่ MA
วิธีที่ 2: Partial Profit
- ปิด 50% เมื่อได้ 1x Std Dev
- ปิดอีก 50% เมื่อ Z-Score = 0
วิธีที่ 3: Trailing Stop
- Trailing SL = 0.5x Std Dev
6. สูตรคำนวณสำคัญ
1. Position Size
position_size = (account_size × risk_pct) / (sl_distance × point_value)
2. Hedge Contracts
hedge_contracts = position_size × beta
3. Profit/Loss Calculation
pnl = (exit_spread - entry_spread) × contracts × point_value
4. Risk:Reward Ratio
risk = sl_distance × contracts × point_value
reward = tp_distance × contracts × point_value
rr_ratio = reward / risk // ควร >= 2:1
5. Spread Value
spread_value = price_far - price_near
7. CHECKLIST ก่อนเทรด
☐ Z-Score >= ±2.0
☐ Correlation > 0.7
☐ Beta Hedge Ratio คำนวณแล้ว
☐ Position Size ไม่เกิน 2-3% risk
☐ TP/SL กำหนดชัดเจน
☐ Risk:Reward >= 2:1
☐ Margin เพียงพอ
☐ ตรวจสอบ Expiry Date ทั้ง 2 series
8. เทคนิคขั้นสูง
A. Calendar Roll Strategy
เมื่อ Near series ใกล้หมดอายุ:
1. ปิด Near leg
2. เปิด Next series leg ใหม่
3. รักษา Spread position ต่อไป
B. Butterfly Spread
ใช้ 3 series พร้อมกัน:
- Buy S1
- Sell 2×S2
- Buy S3
เหมาะกับตลาดไซด์เวย์
C. Dynamic Hedging
ปรับ Hedge Ratio ตาม:
- Beta ที่เปลี่ยนแปลง
- Volatility
- Time to Expiry






















