Multi Timeframe Market Structure ContinuationOverview
This indicator identifies Break of Structure (BOS) and Change of Character (ChoCh) patterns using multi-timeframe (MTF) analysis to filter high-probability trade setups. By aligning lower timeframe signals with higher timeframe bias, it helps traders enter positions in the direction of the dominant trend while avoiding counter-trend traps.
Multi-Timeframe Analysis
The indicator analyzes market structure on two timeframes simultaneously:
Current Timeframe (CTF): Detects immediate BOS and ChoCh signals for entry timing
Higher Timeframe (HTF): Establishes the overall trend direction (default: 1H, customizable)
Signals only appear when the current timeframe structure aligns with the higher timeframe bias, ensuring you're trading with the momentum, not against it.
Break of Structure (BOS)
BOS signals indicate trend continuation - when price breaks a previous high in an uptrend or a previous low in a downtrend. These are reliable entries that confirm the trend is still active and strong.
Change of Character (ChoCh)
ChoCh signals mark early trend reversals - when market structure shifts from bearish to bullish (or vice versa). When captured in alignment with the higher timeframe trend, ChoCh entries can achieve exceptional risk-to-reward ratios as they allow entry near the beginning of a new impulse move.
Exit Signals
Exit signals are plotted when a ChoCh occurs in the opposite direction of the HTF trend. For example, if the HTF is bullish and a bearish ChoCh forms on the current timeframe, an orange "EXIT" signal appears - warning long traders that the lower timeframe structure is shifting against them. This provides an early warning system to protect profits or minimize losses before the HTF trend itself reverses.
Trading Strategy Recommendations
Trending Markets (Recommended)
In strong trending conditions, both BOS and ChoCh signals can be taken when aligned with the HTF bias. ChoCh entries are particularly powerful as they catch early reversals within the larger trend, offering entries with tight stop losses and extended profit targets.
Ranging Markets
During consolidation or choppy conditions, it's best to be selective and take only BOS entries. BOS signals confirm that the trend is continuing beyond the range, reducing false breakouts and whipsaw trades that are common with counter-trend ChoCh signals in sideways markets.
Customization
Pivot Length: Adjust the sensitivity of structure detection (default: 5). Lower values detect structure more frequently with earlier but potentially noisier signals. Higher values provide cleaner, more significant structural breaks but with some delay.
Higher Timeframe: Customize the HTF to suit your trading style. Day traders might use 1H HTF on 5m charts, while swing traders could use 4H or Daily HTF.
Alert System
Six alert conditions available:
Long BOS Entry / Long ChoCh Entry
Short BOS Entry / Short ChoCh Entry
Long Exit / Short Exit
All alerts fire only on confirmed candle closes to eliminate repainting and false signals.
Visual Features
Color-coded background showing HTF bias
Clear BOS/ChoCh labels with horizontal lines at structure levels
Orange "EXIT" signals when structure breaks against your position
Gray lines tracking current swing highs/lows
HTF trend indicator in the top-right corner
المؤشرات والاستراتيجيات
TradeVision Pro - Multi-Factor Analysis System═══════════════════════════════════════════════════════════════════
TRADEVISION PRO - MULTI-FACTOR ANALYSIS SYSTEM
Created by Zakaria Safri
═══════════════════════════════════════════════════════════════════
A comprehensive technical analysis tool combining multiple factors for
signal generation, trend analysis, and dynamic risk management visualization.
Designed for educational purposes to study multi-factor convergence trading
strategies across all markets and timeframes.
⚠️ IMPORTANT DISCLAIMER:
This indicator is provided for EDUCATIONAL and INFORMATIONAL purposes only.
It does NOT constitute financial advice, investment advice, or trading advice.
Past performance does not guarantee future results. Trading involves
substantial risk of loss. Always do your own research and consult a
financial advisor before making trading decisions.
🎯 KEY FEATURES
═══════════════════════════════════════════════════════════════════
✅ MULTI-FACTOR SIGNAL GENERATION
• Price Volume Trend (PVT) analysis
• Rate of Change (ROC) momentum confirmation
• Volume-Weighted Moving Average (VWMA) trend filter
• Simple Moving Average (SMA) price smoothing
• Signals only when all factors align
✅ DYNAMIC RISK VISUALIZATION (Educational Only)
• ATR-based stop loss calculation
• Risk-reward based take profit levels (1-5 targets)
• Visual lines and labels showing entry, SL, and TPs
• Automatically adapts to market volatility
• ⚠️ VISUAL REFERENCE ONLY - Does not execute trades
✅ SUPPORT & RESISTANCE DETECTION
• Automatic pivot-based level identification
• Red dashed lines for resistance zones
• Green dashed lines for support areas
• Helps identify key price levels
✅ VWMA TREND BANDS
• Volume-weighted moving average with standard deviation
• Color-changing bands (Green = Uptrend, Red = Downtrend)
• Filled band area for easy visualization
• Volume-confirmed trend strength
✅ TREND DETECTION SYSTEM
• Counting-based trend confirmation
• Three states: Up Trend, Down Trend, Ranging
• Requires threshold of consecutive bars
• Independent trend validation
✅ PRICE RANGE VISUALIZATION
• High/Low range lines showing market structure
• Filled area highlighting price volatility
• Helps identify breakout zones
✅ COMPREHENSIVE INFO TABLE
• Real-time trend status
• Last signal type (BUY/SELL)
• Entry price display
• Stop loss level
• All active take profit levels
• Clean, professional layout
✅ OPTIONAL FEATURES
• Bar coloring by trend direction
• Customizable alert notifications
• Toggle visibility for all components
• Fully configurable parameters
📊 HOW IT WORKS
═══════════════════════════════════════════════════════════════════
SIGNAL METHODOLOGY:
BUY SIGNAL generates when ALL conditions are met:
• Smoothed price > Moving Average (upward price trend)
• PVT > PVT Average (volume supporting uptrend)
• ROC > 0 (positive momentum)
• Close > VWMA (above volume-weighted average)
SELL SIGNAL generates when ALL conditions are met:
• Smoothed price < Moving Average (downward price trend)
• PVT < PVT Average (volume supporting downtrend)
• ROC < 0 (negative momentum)
• Close < VWMA (below volume-weighted average)
This multi-factor approach filters out weak signals and waits for
strong convergence before generating alerts.
RISK CALCULATION:
Stop Loss = Entry ± (ATR × SL Multiplier)
• Uses Average True Range for volatility measurement
• Automatically adjusts to market conditions
Take Profit Levels = Entry ± (Risk Distance × TP Multiplier × Level)
• Risk Distance = |Entry - Stop Loss|
• Creates risk-reward based targets
• Example: TP Multiplier 1.0 = 1:1, 2:2, 3:3 risk-reward
⚠️ NOTE: All risk levels are VISUAL REFERENCES for educational study.
They do not execute trades automatically.
⚙️ SETTINGS GUIDE
═══════════════════════════════════════════════════════════════════
SIGNAL SETTINGS:
• Signal Length (14): Main calculation period for averages
• Smooth Length (8): Price data smoothing period
• PVT Length (14): Price Volume Trend calculation period
• ROC Length (9): Rate of Change momentum period
RISK MANAGEMENT (Visual Only):
• ATR Length (14): Volatility measurement lookback
• SL Multiplier (2.2): Stop loss distance (× ATR)
• TP Multiplier (1.0): Risk-reward ratio per TP level
• TP Levels (1-5): Number of take profit targets to display
• Show TP/SL Lines: Toggle visual reference lines
SUPPORT & RESISTANCE:
• Pivot Lookback (10): Sensitivity for S/R detection
• Show SR: Toggle support/resistance lines
VWMA BANDS:
• VWMA Length (20): Volume-weighted average period
• Show Bands: Toggle band visibility
TREND DETECTION:
• Trend Threshold (5): Consecutive bars required for trend
PRICE LINES:
• Period (20): High/low calculation lookback
• Show: Toggle price range visualization
DISPLAY OPTIONS:
• Signals: Show/hide BUY/SELL labels
• Table: Show/hide information panel
• Color Bars: Enable trend-based bar coloring
ALERTS:
• Enable: Activate alert notifications for signals
💡 USAGE INSTRUCTIONS
═══════════════════════════════════════════════════════════════════
RECOMMENDED APPROACH:
• Works on all timeframes (1m to Monthly)
• Suitable for all markets (Stocks, Forex, Crypto, etc.)
• Best used with additional analysis and confirmation
• Always practice proper risk management
ENTRY STRATEGY:
1. Wait for BUY or SELL signal to appear
2. Check trend table for trend confirmation
3. Verify VWMA band color matches signal direction
4. Look for nearby support/resistance confluence
5. Consider entering on next candle open
6. Use visual SL level for risk management
EXIT STRATEGY:
1. Use TP levels as potential exit zones
2. Consider scaling out at multiple TP levels
3. Exit on opposite signal
4. Adjust stops as trade progresses
5. Account for spread and slippage
TREND TRADING:
• "Up Trend" → Focus on BUY signals
• "Down Trend" → Focus on SELL signals
• "Ranging" → Wait for clear trend or use range strategies
🎨 VISUAL ELEMENTS
═══════════════════════════════════════════════════════════════════
• GREEN VWMA BANDS → Bullish trend indication
• RED VWMA BANDS → Bearish trend indication
• ORANGE DASHED LINE → Entry price reference
• RED SOLID LINE → Stop loss level
• GREEN DOTTED LINES → Take profit targets
• RED DASHED LINES → Resistance levels
• GREEN DASHED LINES → Support levels
• GREY FILLED AREA → Price high/low range
• GREEN BUY LABEL → Long signal
• RED SELL LABEL → Short signal
• BLUE INFO TABLE → Current trade details
• GREEN/RED BARS → Trend direction (optional)
⚠️ IMPORTANT NOTES
═══════════════════════════════════════════════════════════════════
RISK WARNING:
• Trading involves substantial risk of loss
• You can lose more than your initial investment
• Past performance does not guarantee future results
• No indicator is 100% accurate
• Always use proper position sizing
• Never risk more than you can afford to lose
EDUCATIONAL PURPOSE:
• This tool is for learning and research
• Not a complete trading system
• Should be combined with other analysis
• Requires interpretation and context
• Test thoroughly before live use
• Consider consulting a financial advisor
TECHNICAL LIMITATIONS:
• Signals lag price action (all indicators lag)
• False signals occur in choppy markets
• Works better in trending conditions
• Support/resistance levels are approximate
• TP/SL levels are suggestions, not guarantees
📚 METHODOLOGY
═══════════════════════════════════════════════════════════════════
This indicator combines established technical analysis concepts:
• Price Volume Trend (PVT): Volume-weighted price momentum
• Rate of Change (ROC): Momentum measurement
• Volume-Weighted Moving Average (VWMA): Trend identification
• Average True Range (ATR): Volatility measurement (J. Welles Wilder)
• Pivot Points: Support/resistance detection
All methods are based on publicly available technical analysis
principles. No proprietary or "secret" algorithms are used.
⚖️ FULL DISCLAIMER
═══════════════════════════════════════════════════════════════════
LIABILITY:
The creator (Zakaria Safri) assumes NO liability for:
• Trading losses or damages of any kind
• Loss of capital or profits
• Incorrect signal interpretation
• Technical issues, bugs, or errors
• Any consequences of using this tool
USER RESPONSIBILITY:
By using this indicator, you acknowledge that:
• You are solely responsible for your trading decisions
• You understand the substantial risks involved
• You will not hold the creator liable for losses
• You will conduct your own research and analysis
• You may consult a licensed financial professional
• You are using this tool entirely at your own risk
AS-IS PROVISION:
This indicator is provided "AS IS" without warranty of any kind,
express or implied, including but not limited to warranties of
merchantability, fitness for a particular purpose, or non-infringement.
The creator is not a registered investment advisor, financial planner,
or broker-dealer. This tool is not approved or endorsed by any
financial authority.
📞 ABOUT THE CREATOR
═══════════════════════════════════════════════════════════════════
Created by: Zakaria Safri
Specialization: Technical analysis indicator development
Focus: Multi-factor analysis, risk visualization, trend detection
This is an educational tool designed to demonstrate technical
analysis concepts and multi-factor signal generation methods.
📋 VERSION INFO
═══════════════════════════════════════════════════════════════════
Version: 1.0
Platform: TradingView Pine Script v5
License: Mozilla Public License 2.0
Creator: Zakaria Safri
Year: 2024
═══════════════════════════════════════════════════════════════════
Study Carefully, Trade Wisely, Manage Risk Properly
TradeVision Pro - Educational Trading Tool
Created by Zakaria Safri
═══════════════════════════════════════════════════════════════════
Swing AURORA v4.0 — Refined Trend Signals### Swing Algo v4.0 — Refined Trend Signals
#### Overview
Swing Algo v4.0 is an advanced technical indicator designed for TradingView, built to detect trend changes and provide actionable buy/sell signals in various market conditions. It combines multiple technical elements like moving averages, ADX for trend strength, Stochastic RSI for timing, and RSI divergence for confirmation, all while adapting to different timeframes through auto-tuning. This indicator overlays on your chart, highlighting trend regimes with background colors, displaying buy/sell labels (including "strong" variants), and offering early "potential" signals for proactive trading decisions. It's suitable for swing trading, trend following, or as a filter for other strategies across forex, stocks, crypto, and other assets.
#### Purpose
The primary goal of Swing Algo v4.0 is to help traders identify high-probability trend reversals and continuations early, reducing noise and false signals. It aims to provide clear, non-repainting signals that align with market structure, volatility, and momentum. By incorporating filters like higher timeframe (HTF) alignment, bias EMAs, and divergence, it refines entries for better accuracy. The indicator emphasizes balanced performance across aggressive, balanced, and conservative modes, making it versatile for both novice and experienced traders seeking to optimize their decision-making process.
#### What It Indicates
- **Trend Regimes (Background Coloring)**: The chart background changes color to reflect the current market regime:
- **Green (Intense for strong uptrends, faded when cooling)**: Indicates bullish trends where price is above the baseline and EMAs are aligned upward.
- **Red/Maroon (Intense maroon for strong downtrends, faded red when cooling)**: Signals bearish trends with price below the baseline and downward EMA alignment.
- **Faded Yellow**: Marks "no-trade" zones or potential trend changes, where conditions are choppy, weak, or neutral (e.g., low ADX, near baseline, or low volatility).
- **Buy/Sell Signals**: Labels appear on the chart for confirmed entries:
- "BUY" or "STRONG BUY" for bullish signals (strong variants require higher scores and optional divergence).
- "SELL" or "STRONG SELL" for bearish signals.
- **Potential Signals**: Early warnings like "Potential BUY" or "Potential SELL" appear before full confirmation, allowing traders to anticipate moves (confirmed after a few bars based on the trigger window).
- **Divergence Marks**: Small "DIV↑" (bullish) or "DIV↓" (bearish) labels highlight RSI divergences on pivots, adding confluence for strong signals.
- **Lines**: Optional plots for baseline (teal), EMA13/21 (lime/red based on crossover), providing visual trend context.
Signals are anchored either to the current bar or confirmed pivots, ensuring alignment with price action. The indicator avoids repainting by confirming on close if enabled.
#### Key Parameters and Customization
Swing Algo v4.0 offers minimal yet efficient parameters for fine-tuning, with defaults optimized for common use cases. Most can be auto-tuned based on timeframe for simplicity:
- **Confirm on Close (no repaint)**: Boolean (default: true) – Ensures signals don't repaint by waiting for bar confirmation.
- **Auto-tune by Timeframe**: Boolean (default: true) – Automatically adjusts lengths and sensitivity for 5-15m, 30-60m, 2-4h, or higher frames.
- **Mode**: String (options: Aggressive, Balanced , Conservative) – Controls signal thresholds; Aggressive for more signals, Conservative for fewer but higher-quality ones.
- **Signal Anchor**: String (options: Pivot (divLB) , Current bar) – Places labels on confirmed pivots or the current bar.
- **Trigger Window (bars)**: Integer (default: 3) – Window for signal timing; auto-tuned if enabled.
- **Baseline Type**: String (options: HMA , EMA, ALMA) – Core trend line; lengths auto-tune (e.g., 55 for short frames).
- **Use Bias EMA Filter**: Boolean (default: false) – Adds a long-term EMA for trend bias.
- **Use HTF Filter**: Boolean (default: false) – Aligns with higher timeframe (auto or manual like 60m, 240m, D); override for stricter scoring.
- **Sensitivity (10–90)**: Integer (default: 55) – Adjusts ADX threshold for trend detection; higher = more sensitive.
- **Use RSI-Stoch Trigger**: Boolean (default: true) – Enables Stochastic RSI for entry timing; customizable lengths, smooths, and levels.
- **Use RSI Divergence for STRONG**: Boolean (default: true) – Requires divergence for strong signals; pivot lookback (default: 5).
- **Visual Options**: Booleans for background regime, labels, divergence marks, and lines (all default: true).
These parameters are grouped for ease, with tooltips in TradingView for quick reference. Start with defaults and tweak based on backtesting.
#### How It Works
At its core, Swing Algo v4.0 calculates a baseline (e.g., HMA) to define the trend direction. It then scores potential buys/sells using factors like:
- **Trend Strength**: ADX above a dynamic threshold, combined with EMA crossovers (13/21) and slope analysis.
- **Volatility/Volume**: Bollinger/Keltner squeeze exits, volume z-score, and ATR filters to avoid choppy markets.
- **Timing**: Stochastic RSI crossovers or micro-timing via DEMA/TEMA for precise entries.
- **Filters**: Bias EMA, HTF alignment, gap from baseline, and no-trade zones (weak ADX, near baseline, low vol).
- **Divergence**: RSI pivots confirm strong signals.
- **Scoring**: Buy/sell scores (min 3-5 based on mode) trigger labels only when all gates pass, with early "potential" detection for foresight.
The algorithm processes these in real-time, auto-adapting to timeframe for efficiency. Signals flip only on direction changes to prevent over-trading. For best results, use on liquid assets and combine with risk management.
#### Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice, investment recommendations, or trading signals. Trading involves significant risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always backtest the indicator on your preferred assets and timeframes, and consult a qualified financial advisor before making any trading decisions. The author assumes no liability for any losses incurred from using this script. Use at your own risk.
Buy/Sell Signals [WynTrader]My name is WynTrader. I cumulate 24 years of experience.
This Indicator produces Buy/Sell Signals using these features:
- Fast and Slow Moving averages (modifiable) optimized at EMA-8 and SMA-35
- Bollinger Bands (modifiable) optimized at Basis-18 and Multiplier-1
Also, the Buy/Sell Signals are conditioned by three Filters (optionable, modifiable) :
. Bollinger-Bands Lookback
. High-Low vs Candle Range %
. Distance from Fast and Slow Moving averages %
The Results Calculation presented in a Table are based :
- on the Current Chart Visible Range (optionable)
or
- on the specified TIme Frame Start and End Dates (modifiable)
The Table shows Calculation Results of the Buy and Sell Signals that are activated on the chart, with the Number of Trades (Signals), the Winning Points and the Win Rate %. The Buy&Hold starts calculation at the first Buy encountered.
So be surprised by my Buy/Sell Indicator. But always remember that the world is not perfect. The Graal Indicator, even with AI, doesn't already exist, maybe one day (all of us richier...), but not now. , depending on the chart product (stocks...), volatility, probabilities, unpredictable behaviour. , the moves, etc.
Enjoy
WynTrader
P. s. :
My name is WynTrader. I cumulate 24 years of experience. In 2001, I took an intensive technical analysis course taught by an exceptional friend, Cyril, who taught me everything I know. The foundation I gained through his teaching remains solid and relevant to this day, never failing me.
Before i made this Indicator, I have used many Trading View Buy/Sell Indicators using alone or combined RSI, SMI, OBV, MACD ATR, ADX, Neural, Fractal, Geometry, etc., that are already available for the Trading View community. A great thanks to those who give their time that help me build this tool.
Note that I'm not a programmer, so... ;-)
Outside Candle Session Breakout [CHE]Outside Candle Session Breakout
Session - anchored HTF levels for clear market-structure and precise breakout context
Summary
This indicator is a relevant market-structure tool. It anchors the session to the first higher-timeframe bar, then activates only when the second bar forms an outside condition. Price frequently reacts around these anchors, which provides precise breakout context and a clear overview on both lower and higher timeframes. Robustness comes from close-based validation, an adaptive volatility and tick buffer, first-touch enforcement, optional retest, one-signal-per-session, cooldown, and an optional trend filter.
Pine version: v6. Overlay: true.
Motivation: Why this design?
Short-term breakout tools often trigger during noise, duplicate within the same session, or drift when volatility shifts. The core idea is to gate signals behind a meaningful structure event: a first-bar anchor and a subsequent outside bar on the session timeframe. This narrows attention to structurally important breaks while adaptive buffering and debouncing reduce false or mid-run triggers.
What’s different vs. standard approaches?
Baseline: Simple high-low breaks or fixed buffers without session context.
Architecture: Session-anchored first-bar high/low; outside-bar gate; close-based confirmation with an adaptive ATR and tick buffer; first-touch enforcement; optional retest window; one-signal-per-session and cooldown; optional EMA trend and slope filter; higher-timeframe aggregation with lookahead disabled; themeable visuals and a range fill between levels.
Practical effect: Cleaner timing at structurally relevant levels, fewer redundant or late triggers, and better multi-timeframe situational awareness.
How it works (technical)
The chart timeframe is mapped to an analysis timeframe and a session timeframe.
The first session bar defines the anchor high and low. The setup becomes active only after the next bar forms an outside range relative to that first bar.
While active, the script tracks these anchors and checks for a breakout beyond a buffered threshold, using closing prices or wicks by preference.
The buffer scales with volatility and is limited by a minimum tick floor. First-touch enforcement avoids mid-run confirmations.
Optional retest requires a pullback to the raw anchor followed by a new close beyond the buffered level within a user window.
Optional trend gating uses an EMA on the analysis timeframe, including an optional slope requirement and price-location check.
Higher-timeframe data is requested with lookahead disabled. Values can update during a forming higher-timeframe bar; waiting and confirmation mitigate timing shifts.
Parameter Guide
Enable Long / Enable Short — Direction toggles. Default: true / true. Reduces unwanted side.
Wait Candles — Minimum bars after outside confirmation before entries. Default: five. More waiting increases stability.
Close-based Breakout — Confirm on candle close beyond buffer. Default: true. For wick sensitivity, disable.
ATR Buffer — Enables adaptive volatility buffer. Default: true.
ATR Multiplier — Buffer scaling. Default: zero point two. Increase to reduce noise.
Ticks Buffer — Minimum buffer in ticks. Default: two. Protects in quiet markets.
Cooldown Bars — Blocks new signals after a trigger. Default: three.
One Signal per Session — Prevents duplicates within a session. Default: true.
Require Retest — Pullback to raw anchor before confirming. Default: false.
Retest Window — Bars allowed for retest completion. Default: five.
HTF Trend Filter — EMA-based gating. Default: false.
EMA Length — EMA period. Default: two hundred.
Slope — Require EMA slope direction. Default: true.
Price Above/Below EMA — Require price location relative to EMA. Default: true.
Show Levels / Highlight Session / Show Signals — Visual controls. Default: true.
Color Theme — “Blue-Green” (default), “Monochrome”, “Earth Tones”, “Classic”, “Dark”.
Time Period Box — Visibility, size, position, and colors for the info box. (Optional)
Reading & Interpretation
The two level lines represent the session’s first-bar high and low. The filled band illustrates the active session range.
“OUT” marks that the outside condition is confirmed and the setup is live.
“LONG” or “SHORT” appears only when the breakout clears buffer, debounce, and optional gates.
Background tint indicates sessions where the setup is valid.
Alerts fire on confirmed long or short breakout events.
Practical Workflows & Combinations
Trend-following: Keep close-based validation, ATR buffer near the default, one-signal-per-session enabled; add EMA trend and slope for directional bias.
Retest confirmation: Enable retest with a short window to prioritize cleaner continuation after a pullback.
Lower-timeframe scalping: Reduce waiting and cooldown slightly; keep a small tick buffer to filter micro-whips.
Swing and position context: Increase ATR multiplier and waiting; maintain once-per-session to limit duplicates.
Timeframe Tiers and Trader Profiles
The script adapts its internal mapping based on the chart timeframe:
Under fifteen minutes → Analysis: one minute; Session: sixty minutes. Useful for scalpers and high-frequency intraday reads.
Between fifteen and under sixty minutes → Analysis: fifteen minutes; Session: one day. Suits day traders who need intraday alignment to the daily session.
Between sixty minutes and under one day → Analysis: sixty minutes; Session: one week. Serves intraday-to-swing transitions and end-of-day planning.
Between one day and under one week → Analysis: two hundred forty minutes; Session: two weeks. Fits swing traders who monitor multi-day structure.
Between one week and under thirty days → Analysis: one day; Session: three months. Supports position traders seeking quarterly context.
Thirty days and above → Analysis: one day; Session: twelve months. Provides a broad annual anchor for macro context.
These tiers are designed to keep anchors meaningful across regimes while preserving responsiveness appropriate to the trader profile.
Behavior, Constraints & Performance
Signals can be validated on closed bars through close-based logic; enabling this reduces intrabar flicker.
Higher-timeframe values may evolve during a forming bar; waiting parameters and the outside-bar gate reduce, but do not remove, this effect.
Resource footprint is light; the script uses standard indicators and a single higher-timeframe request per stream.
Known limits: rare setups during very quiet periods, sensitivity to gaps, and reduced reliability on illiquid symbols.
Sensible Defaults & Quick Tuning
Start with close-based validation on, ATR buffer on with a multiplier near zero point two, tick buffer two, cooldown three, once-per-session on.
Too many flips: increase the ATR multiplier and cooldown; consider enabling the EMA filter and slope.
Too sluggish: reduce the ATR multiplier and waiting; disable retest.
Choppy conditions: keep close-based validation, increase tick buffer, shorten the retest window.
What this indicator is—and isn’t
This is a visualization and signal layer for session-anchored breakouts with stability gates. It is not a complete trading system, risk framework, or predictive engine. Combine it with structured analysis, position sizing, and disciplined risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Niv Deal + Previ D W M + OPR + Asian🧭 Indicator Description (English)
Name: Niveaux Dealers + Previous D/W/M Auto + OPR + Asian Session
Platform: TradingView (Pine Script v6)
Type: Multi-module visual indicator for market structure and session ranges
🧩 Overview
This indicator combines three complementary modules to help traders visualize key market levels, opening ranges, and session dynamics — all in one comprehensive tool.
It is designed primarily for index and futures trading (e.g. NQ, ES, DAX), but can be applied to any market or timeframe.
MODULE 1 — Dealers Levels + Previous High/Low (Auto)
This first module automatically extracts and plots custom Dealer Levels and Previous Period Levels.
It can parse manually entered price levels (from a single text input) such as daily max/min, control levels, put supports, and call resistances — then draw horizontal lines and labels on the chart.
Features:
One text input for all dealer levels (easy copy-paste format).
Automatic parsing of prices from text (ignores irrelevant characters).
Groups of levels:
Maxima (Max 1D / Event / Extreme)
Minima (Min 1D / Event / Extreme)
Buyer/Seller Controls
Put Supports and Call Resistances
Independent color, style, and width for each line.
Transparent rectangular labels positioned perfectly on the levels.
Previous Daily, Weekly, and Monthly High/Low levels added automatically.
Optional summary table showing all levels and values in real time.
MODULE 2 — OPR (Opening Price Range)
The second module highlights the Opening Price Range, defined by the first 15 minutes (or any chosen period) of the trading session.
Features:
Fully configurable start and end time (local chart timezone).
Displays:
High, Low, and Midline (median)
Optional rectangle between high/low
Optional labels on each line
Independent color, line style, and thickness.
Works perfectly with non-standard sessions (e.g. 13:30–22:00 UTC for U.S. futures).
Uses local chart time instead of exchange time for intuitive control.
MODULE 3 — Asian Session Range
The third module draws the Asian trading session range, automatically detecting price action between configurable hours (default 17:00 → 01:00).
Features:
Adjustable start and end time (supports overnight sessions).
Plots Asian High, Asian Low, and Asian Middle (mid-range line).
Highlights the Asian box area with semi-transparent color.
Optional labels at the end of each level.
Fully synchronized with the chart’s local timezone (same logic as OPR).
Simple toggle to enable or disable the entire Asian module.
⚙️ Customization & Display
Each module can be toggled independently.
Colors, line styles (solid, dashed, dotted), and thickness are customizable.
Label visibility and extensions (left/right) can be adjusted.
The indicator is lightweight and optimized for real-time performance.
💡 Use Case
Traders can use this multi-module setup to:
Identify dealer reaction zones and institutional levels.
Track previous highs/lows for potential liquidity sweeps.
Monitor session ranges (Opening and Asian) for volatility shifts.
Combine all three perspectives (Dealer, Session, Historical) into one unified view.
Would you like me to rewrite this description in TradingView publication form
Dammu AI ADVANCED PRO1. Indicator Overview
Name: Dammu
Type: Overlay indicator (draws on price chart)
Purpose: Combines SuperTrend, SMA/EMA trends, Swing/Structure analysis, Order Blocks, Fair Value Gaps, High/Low levels, TP/SL labels, and alerts.
Pine Script Version: v5
2. SuperTrend Module
Computes SuperTrend line using ATR and sensitivity.
Signals:
Bullish: Price crosses above SuperTrend.
Bearish: Price crosses below SuperTrend.
Plots buy/sell labels 🚀🐻 based on SMA comparison and SuperTrend cross.
3. SMA/EMA Trend Components
SMA8 & SMA9: Used for additional trend confirmation.
EMA lines: Multiple EMAs with different multipliers for trend detection.
Trend Cloud: Uses Hull MA for trend smoothing.
4. Risk Management
TP/SL Levels: Automatic calculation of stop-loss and take-profit (TP1, TP2, TP3).
Configurable ATR-based risk percentage.
Lines and labels drawn for visual TP/SL.
5. Chart Features
Smooth Range Filter: Filters noise for trend detection.
Colored Trend Cloud: Upward trend = cyan, downward = red.
Sideways Market: ADX filter to color bars purple if trend is weak/sideways.
Bar Colors: Green/red based on SuperTrend signals.
6. Swing & Structure Analysis
Detects Swing Highs/Lows, labels as HH, LH, LL, HL.
Detects CHoCH (Change of Character) or BOS (Break of Structure).
Can show internal or swing structures with configurable label size and color.
7. Order Blocks (Smart Money Concepts)
Detects Internal Order Blocks (iOB) and Swing Order Blocks (OB).
Stores top/bottom/left/time/type in arrays.
Colors and shows boxes based on bullish/bearish type.
Automatically deletes OB if price breaks the block.
8. Fair Value Gaps (FVG)
Identifies gaps between candles as potential trading zones.
Configurable bullish/bearish colors and extension bars.
9. EQH/EQL (Equal Highs/Lows)
Detects equal highs/lows using a threshold.
Plots dotted lines and labels EQH/EQL.
10. High/Low Levels MTF
Optional plotting of previous daily, weekly, monthly highs/lows.
11. Premium/Discount Zones
Plots Premium, Discount, and Equilibrium Zones.
Colors: Premium = red, Discount = green, Equilibrium = gray.
12. Alerts
Buy/Sell alerts for:
SuperTrend crossover
BOS/CHoCH (swing/internal)
EQH/EQL triggers
13. Miscellaneous
Configurable visuals: line style, label size, transparency.
Adjustable volatility filters, ATR lengths, smoothing constants.
Integrated risk & reward visualization.
✅ In short:
This is an all-in-one Smart Money + Trend indicator with SuperTrend signals, swing/structure detection, order blocks, FVGs, EQH/EQL, TP/SL visualization, and optional alerts. It’s designed for both trend-following and order-block-based trading.
If you want, I can make a super-short 1-paragraph version that summarizes it even faster for quick reference.
EU & US Open Signals (Triple Confirmation)🚀 EU & US Open Signals: Triple Confirmation Breakouts
💡 What This Indicator Does
This indicator plots the opening prices of the European (EU) and American (US) trading sessions as key daily support/resistance levels. Its main function is to generate three distinct levels of signals based on the breakout of these levels, strictly filtered by candlestick type.
The goal is to easily spot market momentum following the opening of the major trading sessions.
🔑 Key Features
1. Daily Session Levels
The indicator plots two crucial horizontal lines that reset daily:
EU Open (Black Line): The European session opening price (Default: 06:00 UTC).
US Open (Dark Blue Line): The American session opening price (Default: 12:00 UTC).
2. Triple Signaling Logic
All signals are only generated if the breakout candle is bullish (for Buy) or bearish (for Sell), and only within your set trading hours.
Logic I. EU Single Break
Condition: Close breaks above/below the EU Open Level + Bullish/Bearish candle.
Visual Plot: Small Cross (Green for Buy / Red for Sell).
Meaning: Early signal focused on EU session momentum.
Logic II. US Single Break
Condition: Close breaks above/below the US Open Level + Bullish/Bearish candle.
Visual Plot: Small Cross (Green for Buy / Red for Sell).
Meaning: Signal focused on US session momentum.
Logic III. Double Break (HIGH CONFIRMATION)
Condition: Close breaks above Both Levels (EU and US) for Buy, or below Both Levels for Sell + Bullish/Bearish candle.
Visual Plot: Large Triangle (Dark Green/Red).
⚠️ Crucial: This is the strongest signal, indicating strong momentum as both key daily levels have been broken.
⚙️ Simple Settings
Easily customize the indicator to fit your strategy:
EU/US Session Open Hour (UTC): Set the exact session open times.
Time Zone: Select your time zone for accurate level calculation.
Start/End Trading Hour: Define the daily window for when signals will be active.
🎯 Recommended Use
High Confidence: Focus on the Double Break (Logic III) - Large Triangle for your most confirmed entries.
Context: Use the Single Break signals (I and II) to confirm early market bias.
Risk: The Open Levels can serve as natural points for setting Stop-Loss orders.
Disclaimer: Trading carries risk. This tool is for analysis purposes only. Use it at your own discretion.
Swing Points LiquiditySwing Points Liquidity
Unlock advanced swing detection and liquidity zone marking for smarter trading decisions.
Overview:
Swing Points Liquidity automatically identifies key swing highs and swing lows using a five-candle “palm” structure, marking each significant price turn with precise labels: “BSL swing high” for potential bearish liquidity and “SSL swing low” for potential bullish liquidity. This transparent swing logic provides a robust way to highlight areas where price is most likely to react—making it an invaluable tool for traders applying Smart Money Concepts, supply and demand, or liquidity-based strategies.
How It Works:
The indicator scans every candle on your chart to detect and label swing highs and lows.
A swing high (“BSL swing high”) is identified when a central candle’s high is greater than the highs of the previous two and next two candles.
A swing low (“SSL swing low”) is identified when a central candle’s low is lower than the lows of the previous two and next two candles.
Labels are plotted for every detected swing point, providing clear visualization of important market liquidity levels on any symbol and timeframe.
How to Use:
Liquidity levels marked by the indicator are potential price reversal zones. To optimize your entries, combine these levels with confirmation signals such as reversal candlestick patterns, order blocks, or fair value gaps (FVGs).
When you see a “BSL swing high” or “SSL swing low” label, observe the price action at that area—if a reliable reversal pattern or order block/FVG forms, it can signal a high-probability trade opportunity.
These marked liquidity swings are also excellent for locating confluence zones, setting stop losses, and identifying where institutional activity or smart money may trigger significant moves. Always use market structure and price action in conjunction with these levels for greater consistency and confidence in your trading.
Features:
Customizable label display for swing highs (BSL) and swing lows (SSL)
Automatic detection using robust 5-candle palm logic
Works with all symbols and chart timeframes
Lightweight, clear visual style—easy for manual and algorithmic traders
Notes:
The indicator requires at least two candles both before and after each swing point, so labels will start appearing after enough historical data is loaded.
For deeper historical analysis, simply scroll left or zoom out on your chart to load more candles—the indicator will automatically process and display swing points on all available data.
Countdown, Trading Volume, Price, Time Period"Volume and Price Countdown Code: This code will display colors according to the closing status of different timeframes."
EMA 9 + VWAP Lower Band Buy SignalEMA 9 + VWAP Lower Band Buy Signal. It uses Ema 9 and VWAP lower band. Has buy alerts
Single MA Distance Oscillator with Threshold Colorsused from another developer and Ai modified. input the percentage (make sure if percent below 1 you input 0. and then the number
Fast Scalping Volume Confirmation (v2)//@version=5
indicator("Fast Scalping Volume Confirmation (v2)", overlay=true)
// ---------- INPUTS ----------
maLength = input.int(5, "Volume MA Length", minval=1)
multiplier = input.float(1.5, "Volume Multiplier (Trigger Above MA)", minval=0.1, step=0.1)
usePriceFilter = input.bool(true, "Enable Entry Price Range Filter")
priceMin = input.float(184.5, "Price Min (if filter on)")
priceMax = input.float(185.2, "Price Max (if filter on)")
// ---------- CALCS ----------
volMA = ta.sma(volume, maLength)
highVolume = volume > volMA * multiplier
// Simple reversal detection (non-exhaustive)
bullishEngulfing = (close > open ) and (open < close ) and (close > open)
hammer = (close > open) and ((high - low) > 3 * math.abs(open - close)) and ((close - low) / (high - low) > 0.6)
// ensure candle is closed to avoid repainting
confirmedBar = barstate.isconfirmed
// price filter
inPriceRange = not usePriceFilter or (close >= priceMin and close <= priceMax)
// final entry condition (only on closed bar)
entrySignal = confirmedBar and inPriceRange and highVolume and (bullishEngulfing or hammer)
// ---------- PLOTTING ----------
plotshape(entrySignal, title="Entry Confirmation", location=location.belowbar,
color=color.new(color.green, 0), style=shape.triangleup, size=size.small, text="ENTRY")
// show volume MA in the volume pane for reference (optional visual)
// We draw a small label on chart with current volume vs MA
var label volLab = na
if barstate.islast
label.delete(volLab)
volText = "Vol: " + str.tostring(volume) + " MA(" + str.tostring(maLength) + "): " + str.tostring(math.round(volMA))
volLab := label.new(x=bar_index, y=low, text=volText, yloc=yloc.belowbar, style=label.style_label_left, color=color.new(color.gray,85), textcolor=color.white)
// ---------- ALERT ----------
alertcondition(entrySignal, title="Entry Confirmed", message="✅ Entry confirmed: High Volume + Reversal Candle")
High Volume Arrow Signals (Ajustável)The High Volume Arrow Signals (Adjustable) indicator is a professional technical analysis tool designed to clearly pinpoint moments when trading volume significantly exceeds its recent average, signaling potential institutional pressure, strong conviction, or market exhaustion.
Its primary function is to overlay confirmation signals directly onto the price bars without altering the original candle colors.
Strategic Application
This indicator is most effective when used as a confluence tool to confirm moves initiated by price action or other indicators:
Breakout Confirmation: An arrow plotted during a price range breakout suggests the move has genuine volume conviction.
Reversal Identification: A Buy arrow appearing at a key support level (or a Sell arrow at resistance) indicates strong volume rejection and a potential turning point.
The adjustable multiplier ensures users can fine-tune the indicator to the specific volatility and volume characteristics of assets like BTC and ETH across different timeframes.
BTC Flow Dashboard : Spot Premium + OI + Funding + Cycle SignalsSpot Premium vs Perpetual Basket (%):
Tracks how aggressively perps are trading relative to spot, a leading indicator of speculative activity and leverage buildup.
Aggregated Open Interest Z-Score:
A normalized view of OI expansion/contraction across major exchanges (Binance, BitMEX, Bybit, Kraken, etc.), highlighting when leverage enters overheated zones.
Composite Funding Rate Analysis:
Calculates a TWAP-smoothed funding composite across major venues, with optional APR scaling, showing where perpetual markets are paying for long or short exposure.
Confluence Signal Engine:
Dynamically flags bullish or bearish market conditions based on premium behavior and leverage environment — including over-leverage warnings that often precede volatility spikes.
Extreme Cycle Tops & Bottoms (Experimental):
Optional signal module that highlights historically significant extremes (e.g., 2020 bottom or 2021 top) based on statistical Z-score thresholds across the three core metrics.
Notes & Tips
Works best on weekly or monthly timeframes for macro cycle analysis.
Daily and 3D views provide short-term leverage context but may produce more frequent signals.
The Extreme Signal Engine is experimental — not a trading signal on its own, but a contextual tool to support macro decision-making.
GLD to GC Price ConverterAi converted another coders script. shows gld strike price on gc. enter current strike whole number of gld and lines appear on gc
MTF Intraday v2.0📊 Description
MTF Intraday v2.0 is an informative indicator for analyzing trend strength across multiple timeframes simultaneously. Designed specifically for intraday (session) trading during European and US market hours.
The indicator shows the real market picture without lagging signals - you see the trend strength right now for each timeframe.
🎯 Key Features
1. Multi-Timeframe Analysis (D1, H4, H1, M30, M15)
Analyzes 4 indicators on each TF: SuperTrend, RSI, EMA crossover, EMA200
Shows strength for each timeframe: STRONG / MED / WEAK
Color indication: 🟢 green (LONG strong), 🔴 red (SHORT strong), 🟡 yellow (medium), ⚪ gray (weak)
2. Intraday Trading Hierarchy
D1 - global context (affects quality assessment)
H4 - general (sets the main trend)
H1 - reference point for intraday
M30/M15 - finding entry points during sessions
3. Market Pulse
🔥 HOT - when both H4 and H1 are STRONG (best time to enter!)
✓ GOOD - when H4 or H1 is STRONG
L:45 S:20 - balance of power between LONG and SHORT (statistics instead of "wait")
4. Volume Indicator (24 hours)
Shows volume change over the last 24 hours
SPIKE! - when volume increased by the set % (default 50%)
Considers candle color: 🟢 LONG spike (rise + green candle), 🔴 SHORT spike (rise + red candle)
Works on any timeframe (automatically recalculates)
5. Compact Mode
OFF - shows all details: every indicator for each TF
ON - only strength per timeframe (for clean chart)
⚙️ Settings
Main:
SuperTrend Period (21) / Multiplier (6.3)
RSI Length (14)
EMA Short (50) / Long (100) / 200
Compact Mode - hide detailed indicators
Volume:
Show Volume - show/hide volume indicator
Volume Alerts ON/OFF - enable/disable volume alerts
Volume Spike (%) - spike threshold (30% / 50% / 100%)
🔔 Alerts
The indicator has 5 types of alerts:
Market HOT - H4 and H1 simultaneously became STRONG
VOL LONG - volume spike on bullish candle
VOL SHORT - volume spike on bearish candle
EMA200 UP - price crossed EMA200 upward
EMA200 DN - price crossed EMA200 downward
Set up in TradingView: Create Alert → Select desired alert from the list
📈 How to Use
For finding entry points:
Check H4 - should be at least MED (better STRONG)
Verify H1 - main filter for intraday
Wait for pulse "🔥 HOT" or at least "✓ GOOD"
Look at M30/M15 - seek confirmation
Check 24h VOL - if SPIKE, momentum has started
Quality Assessment:
EXCELLENT ⭐ - all stars aligned (D1 with us, high score)
GOOD - good setup
WARNING ⚠️ - D1 against trend (counter-trend, be careful!)
Color Indication:
🟢 Green cells - bullish signal
🔴 Red cells - bearish signal
🟡 Yellow cells - neutral/waiting
🟠 Orange TF labels - for readability
⚠️ Important
This is an informative indicator, not a trading system
Does not give "entry/exit" signals - shows trend strength in the moment
Use together with Price Action and your trading strategy
RSI on M15 is displayed but not counted (too much noise)
💡 Who is it for
✅ Intraday traders (Europe/US sessions)
✅ Scalpers on crypto and forex
✅ Swing traders for trend confirmation
✅ Those who trade on multiple timeframes simultaneously
Power Zone Trader (PZT)The PZT Indicator (Power Zone Trader ) is a multi-timeframe confluence system designed to identify and visualize natural support and resistance levels with exceptional clarity. By automatically mapping key structural highs and lows from higher timeframes, PZT allows traders to see where price is most likely to react, reverse, or accelerate, forming the foundation for high-probability trade setups. PZT highlights key reaction zones that influence order flow and trader behavior across all markets — including Forex, Crypto, Indices, and Commodities.
📍 Indicator Key
Each color represents a significant price level derived from its respective timeframe, helping traders instantly gauge market context and potential liquidity pools:
Color Level Represented Significance
🔴 Red Yearly High Strong resistance — potential selling pressure and major liquidity sweep zones.
🟢 Green Yearly Low Strong support — potential buying interest and accumulation points.
🟠 Orange Monthly High Intermediate resistance — swing rejection or continuation decision zone.
🔵 Blue Monthly Low Intermediate support — potential retracement or base-building area.
🟣 Purple Weekly High Short-term resistance — common rejection level or stop hunt zone.
🟤 Teal Weekly Low Short-term support — potential rebound or liquidity grab.
⚫ Gray Daily High Intraday resistance — active scalper and day trader interest.
⚪ White Daily Low Intraday support — short-term bounce or continuation pivot.
SFC Bollinger Band and Bandit概述 (Overview)
SFC 布林通道與海盜策略 (SFC Bollinger Band and Bandit Strategy) 是一個基於 Pine Script™ v6 的技術分析指標,結合布林通道 (Bollinger Bands)、移動平均線 (Moving Averages) 以及布林海盜 (Bollinger Bandit) 交易策略,旨在為交易者提供多時間框架的趨勢分析與進出場訊號。該腳本支援風險管理功能,並提供視覺化圖表與交易訊號提示,適用於多種金融市場。
This script, written in Pine Script™ v6, combines Bollinger Bands, Moving Averages, and the Bollinger Bandit strategy to provide traders with multi-timeframe trend analysis and entry/exit signals. It includes risk management features and visualizes data through charts and trading signals, suitable for various financial markets.
功能特點 (Key Features)
布林通道 (Bollinger Bands)
提供可調整的標準差參數 (σ1, σ2),支援多層布林通道顯示。
進場訊號基於價格穿越布林通道上下軌,並結合連續K線確認機制。
Provides adjustable standard deviation parameters (σ1, σ2) for multi-layer Bollinger Bands display.
Entry signals are based on price crossing the upper/lower bands, combined with a consecutive bar confirmation mechanism.
移動平均線 (Moving Averages)
支援簡單移動平均線 (SMA) 或指數移動平均線 (EMA),可自訂快、中、慢線週期。
Supports Simple Moving Average (SMA) or Exponential Moving Average (EMA) with customizable fast, medium, and slow line periods.
布林海盜策略 (Bollinger Bandit Strategy)
基於變動率 (ROC) 與布林通道動態止損,提供做多與做空訊號。
包含動態止損均線與平倉天數設定,增強交易靈活性。
Utilizes Rate of Change (ROC) and Bollinger Bands with dynamic stop-loss for long and short signals.
Includes dynamic stop-loss moving average and liquidation days for enhanced trading flexibility.
多時間框架分析 (Multi-Timeframe Analysis)
支援六個時間框架 (5分、15分、1小時、4小時、日線、週線) 的趨勢分析。
通過表格顯示各時間框架的連續上漲/下跌趨勢,輔助交易決策。
Supports trend analysis across six timeframes (5m, 15m, 1h, 4h, daily, weekly).
Displays consecutive up/down trends in a table to aid decision-making.
風險管理 (Risk Management)
提供基於 ATR 或布林通道的停利/停損設定。
自動計算交易手數,根據報價貨幣匯率調整風險敞口。
Offers take-profit/stop-loss settings based on ATR or Bollinger Bands.
Automatically calculates trading lots, adjusting risk exposure based on quote currency exchange rates.
視覺化與提示 (Visualization and Alerts)
繪製布林通道、移動平均線、海盜策略動態止損線及交易訊號。
提供多時間框架趨勢表格、交易手數標籤及浮水印。
支援交易訊號快訊,方便即時監控。
Plots Bollinger Bands, Moving Averages, Bandit strategy stop-loss lines, and trading signals.
Includes multi-timeframe trend tables, trading lot labels, and watermark.
Supports alert conditions for real-time trade monitoring.
使用說明 (Usage Instructions)
設置參數 (Parameter Setup)
布林通道 (Bollinger Bands): 可調整週期 (預設21)、標準差 (σ1=1, σ2=2) 及停利/停損依據 (ATR 或 BAND)。
移動平均線 (Moving Averages): 可選擇顯示快線 (10)、中線 (20)、慢線 (60),並切換 SMA/EMA。
布林海盜 (Bollinger Bandit): 調整通道週期 (50)、平倉均線週期 (50) 及 ROC 週期 (30)。
時間框架 (Timeframes): 自訂六個時間框架,預設為 5分、15分、1小時、4小時、日線、週線。
Adjust Bollinger Band period (default 21), standard deviations (σ1=1, σ2=2), and take-profit/stop-loss basis (ATR or BAND).
Configure Moving Averages (fast=10, medium=20, slow=60) and toggle SMA/EMA.
Set Bollinger Bandit parameters: channel period (50), liquidation MA period (50), ROC period (30).
Customize six timeframes (default: 5m, 15m, 1h, 4h, daily, weekly).
交易訊號 (Trading Signals)
買入訊號 (Buy): 價格穿越下軌且滿足連續K線條件。
賣出訊號 (Sell): 價格穿越上軌且滿足連續K線條件。
海盜策略訊號: 基於 ROC 與布林通道穿越,結合動態止損。
Buy signal: Price crosses below lower band with consecutive bar confirmation.
Sell signal: Price crosses above upper band with consecutive bar confirmation.
Bandit strategy signals: Based on ROC and band crossings with dynamic stop-loss.
視覺化 (Visualization)
布林通道以不同顏色顯示上下軌與中軌。
移動平均線以快、中、慢線區分顏色。
趨勢表格顯示各時間框架的趨勢狀態 (🔴上漲, 🟢下跌, ⚪中性)。
海盜策略顯示動態止損線與交易狀態。
Bollinger Bands display upper, lower, and middle bands in distinct colors.
Moving Averages use different colors for fast, medium, and slow lines.
Trend table shows timeframe trends (🔴 up, 🟢 down, ⚪ neutral).
Bandit strategy displays dynamic stop-loss and trading status.
[boitl] Trendfilter🧭 Trend Filter – Curve View (1D / 1H + M15 Check)
A multi-timeframe trend filter that blends daily, hourly, and 15-minute data into a smooth, color-coded curve displayed in a separate panel.
It visualizes both trend direction and strength while accounting for overextension, providing a reliable “context indicator” for entries and filters.
🔍 Concept
The indicator evaluates three timeframes:
1D (Daily) → SMA200 for long-term trend bias
1H (Hourly) → EMA50 for medium-term confirmation
15M (Intraday) → EMA20 + ATR to detect overextension or mean reversion zones
It computes a continuous trend score between −1 and +1:
+1 → Strong bullish alignment (D1 & H1 both up)
−1 → Strong bearish alignment (D1 & H1 both down)
≈ 0 → Neutral, conflicting, or overextended conditions
The score is smoothed and normalized for a clean visual curve —
green for bullish, red for bearish, with dynamic transparency based on strength.
⚙️ Logic Overview
Timeframe Indicator Purpose
1D SMA200 Long-term trend direction
1H EMA50 Medium-term confirmation
15M EMA20 + ATR Overextension control
Alignment between D1 and H1 defines clear trend bias
Conflicts between them reduce the trend score
M15 overextension (price far from EMA20) softens the signal further
The result is a responsive trend-strength oscillator, ideal for multi-timeframe setups.
🧩 Use Cases
As a trend filter for strategies (e.g. allow entries only if score > 0.3 or < −0.3)
As a visual confirmation of higher-timeframe direction
To avoid trades during conflict or exhaustion
💡 Visualization
Single curve (area plot):
Green = bullish bias
Red = bearish bias
Transparency increases with weaker trend
Background colors:
🟠 Orange → D1/H1 conflict
🔴 Light red → M15 overextension active
Optional: binary alignment line (+1 / 0 / −1) for simplified display
⚙️ Parameters
Proximity to EMA20 (M15) = X×ATR → defines “near” condition
Overextension threshold = X×ATR → sets exhaustion boundary
EMA smoothing → reduces noise for a smoother score
Toggle overextension impact on/off