Multi-TF 👀### Multi-Timeframe Analysis (MTF-Analysis)
**Overview**
The Multi-Timeframe Analysis indicator is a powerful visualization tool designed for traders who incorporate multi-timeframe (MTF) strategies into their decision-making process. It overlays compact, customizable candle representations from up to four higher timeframes directly on your chart, positioned to the right of the last bar for quick reference. This allows you to monitor price action, momentum via EMAs, and key levels like Fair Value Gaps (FVGs) across multiple resolutions without switching charts. Built with efficiency in mind, it supports automatic timeframe detection, real-time updates, and a clean, non-intrusive design that enhances your trading workflow.
Ideal for day traders, swing traders, and scalpers, this indicator helps identify alignments between timeframes, spot potential reversals or continuations, and validate entries/exits based on higher-timeframe context. It leverages Pine Script v6 for smooth performance, with optimizations to handle up to 5000 bars back and extensive drawing limits.
**Key Features**
- **Multi-Timeframe Candle Display**: Renders recent candles (configurable from 5 to 100 per timeframe) from selected higher timeframes (e.g., 5m, 15m, 1H, 4H) as compact bars with customizable width, spacing, and padding. Bullish and bearish candles are color-coded for instant recognition.
- **Automatic Timeframe Adaptation**: When enabled, the indicator intelligently selects complementary timeframes based on your chart's resolution (e.g., on a 1m chart, it might show 5m, 15m, and 1H). Manual overrides are available for full control.
- **EMA Overlays**: Plots EMA9, EMA21, and EMA50 on each MTF section using a user-defined source (e.g., OHLC/4, close). EMAs can be dashed for clarity and enabled/disabled per timeframe, helping to gauge momentum and trend strength.
- **Fair Value Gaps (FVGs)**: Detects bullish (+FVG) and bearish (-FVG) gaps with a configurable lookback length (5-50 bars). Gaps are visualized as dotted boxes extending from the candle, highlighting potential support/resistance zones or imbalances.
- **Time Labels and Debugging**: Displays timestamp labels under every fourth candle for chronological context. A debug mode expands spacing and adds detailed labels (e.g., OHLC, volume, EMA values) for testing and verification.
- **Customization Options**: Extensive inputs for colors (bodies, wicks, EMAs, FVGs), label sizes/styles, and layout ensure seamless integration with your chart theme. Supports futures symbols with a time offset adjustment.
- **Performance Optimizations**: Uses arrays for efficient data management, clears drawings on realtime updates or timeframe changes, and limits buffer sizes to prevent overload.
**How to Use**
1. Add the indicator to your chart via TradingView's "Indicators" menu.
2. Configure timeframes: Enable/disable up to four TFs and set the number of candles to display. Use "Auto Timeframe" for smart defaults.
3. Adjust EMAs: Select the source type and toggle per TF to focus on relevant momentum signals (e.g., EMA9 crossovers for short-term trades).
4. Enable FVGs: Activate per TF and tweak the length to suit your market (shorter for volatile assets, longer for trends).
5. Fine-tune appearance: Modify padding, candle width, and colors to avoid clutter. Use debug mode during setup.
6. Interpret: Align your chart's price action with MTF candles—look for confluence in trends, FVGs filling as support/resistance, or EMA alignments for high-probability setups.
**Input Settings**
- **General**: Hour offset for time adjustments (useful for futures).
- **Timeframes**: Enable TFs 1-4, select resolutions (e.g., "5m"), and set candle counts. Auto mode simplifies this.
- **FVG/iFVG**: Toggle per TF, customize colors and detection length.
- **EMA**: Enable per TF, choose source, colors, and dashed style.
- **Candle Appearance**: Bull/bear colors for bodies/wicks, width/spacing/padding, label size/color.
- **Debug**: Expands view for detailed inspection.
**Notes**
- This indicator is non-repainting and updates in realtime, but performance may vary on lower timeframes with many candles—reduce counts if needed.
- FVGs are calculated locally on recent bars for efficiency; historical gaps beyond the buffer aren't shown.
- Compatible with all symbols, but best on volatile markets like forex, crypto, or indices.
- Feedback welcome—updates may include more MA types or advanced FVG filters.
Enhance your edge with multi-timeframe insights—try MTF-Analysis today!
Multitimeframe
Market Sessions Table, H/L/POCHello Everyone,
This is my first effort and first script for the community. This indicator has two major parts
Table with Pre-Market Session Time, Regular Market Session Time and Commodity Market Session
High, Low and POC (Middle) of 4 Hour, Previous 1 Day and Last Week
This will mark the following:
High, Low and POC of 4 Hours Candle with Lines
High, Low and POC of previous day Candle with Lines
High, Low and POC of previous week Candle with Lines
User has option to either disable any or all the Lines.
User has option to change the color, size and line type (flat or dotted) on lines.
User also has an option to see the High, Low and POC in a separate table as well.
Table with Pre-Market Session Time, Regular Market Session Time and Commodity Market Session
As the name suggest this is a table which shows the Pre-Market Session Time, Regular Market Session Time and Commodity Market Session of US, UK, Tokyo and Indian Exchanges.
User has an ability to enable or disable any Exchange or session.
User can also enable or disable highlighting a particular market session in the chart background.
Additionally user can choose to display the different market session is there own local time zone. Since I am from India I choose to display the open and close of market session as per India standard time.
Guys please suggest any improvement or anything additional you wanted on the same indicator.
Multi Timeframe BOS & rBOSThis is the same Multi-Timeframe Break of Structure and Market Structure Shift posted by Lenny_Kiruthu. However, the only difference is the naming of Market Structure Shift to rBOS (Break of Structure Reverse). To me, they are all break of structures when previous peaks or valleys are violated. The only difference is in sequence. Once a sequence of BOS reverses, then a new sequence begins. To me, this simplifies the various terminology incorporated by different systems such as ICT or SMT which adds unnecessary complexity.
eT
WaveMacBollI wanted to see the two indicators in the candle chart, not in a separate window. And within the Bollinger band, it seemed to put it fine.
Important Note on Line Styles
Due to TradingView's multi-timeframe environment restrictions (timeframe = '', timeframe_gaps = true), I couldn't implement dotted or dashed line styles programmatically. The indicator uses solid lines by default.
If you prefer dotted/dashed lines for better visual distinction:
Add the indicator to your chart
Click on the indicator settings (gear icon)
Go to "Style" tab
Manually change line styles for each plot
Unfortunately, PineScript doesn't support line.new() or similar drawing functions in multi-timeframe mode, limiting our styling options to basic plot styles.
If you know a good solution for implementing dotted/dashed lines in multi-timeframe indicators without using drawing objects, please share it in the comments! I'd love to improve this aspect of the indicator
StoxAI Magic Trend Indicator V2StoxAI Magic Trend Indicator V2 is here. Get live Trade Stats and Strength Scores with AI weights for each candlestick chart.
Volume-Weighted RSI & Multi-Normalized MACD### Description for Publishing: Volume-Weighted RSI & Multi-Normalized MACD
**Overview**
The "Volume-Weighted RSI & Multi-Normalized MACD" indicator is a powerful and versatile tool designed for traders seeking enhanced momentum and trend analysis. Combining a volume-weighted Relative Strength Index (VW-RSI) with a customizable Moving Average Convergence Divergence (MACD) featuring multiple normalization methods, this indicator provides deep insights into market dynamics. It supports multi-timeframe (MTF) analysis and includes an optional stepped plotting mode for discrete signal visualization, making it ideal for both trend-following and mean-reversion strategies across various markets (stocks, forex, crypto, etc.).
**Key Features**
1. **Volume-Weighted RSI (VW-RSI)**:
- A modified RSI that incorporates trading volume for greater sensitivity to market activity.
- Normalized to a user-defined range (default: -50 to +50) for consistent analysis.
- Optional smoothing with multiple moving average types (SMA, EMA, WMA, VWMA, SMMA, or SMA with Bollinger Bands) to reduce noise and highlight trends.
- Overbought (+20) and oversold (-20) levels for quick reference.
2. **Multi-Normalized MACD**:
- Offers six normalization methods for MACD, allowing traders to tailor the output to their strategy:
- Normalized Volume Weighted MACD (unbounded).
- Min-Max Normalization (bounded).
- Volatility Normalization (unbounded, volatility-adjusted).
- Volatility Normalization with Min-Max (bounded).
- Hyperbolic Tangent Normalization (bounded).
- Arctangent Normalization (bounded).
- Min-Max with Smoothing (bounded).
- All bounded methods scale to the user-defined range (default: -50 to +50), ensuring comparability with VW-RSI.
- Dynamic color changes for MACD line (lime/red) and histogram (aqua/blue/red/maroon) based on momentum and signal line crosses.
3. **Stepped Plotting Mode**:
- Optional mode to plot RSI and MACD as discrete, stepped lines, reducing noise by only updating when values change significantly (configurable thresholds).
- Ideal for traders focusing on clear, actionable signal changes.
4. **Multi-Timeframe Support**:
- Configurable timeframe input (default: chart timeframe) for analyzing RSI and MACD on higher or lower timeframes, enhancing cross-timeframe strategies.
5. **Customizable Display**:
- Toggle options to show/hide MACD line, signal line, histogram, and cross dots.
- Bollinger Bands for RSI smoothing (optional) with adjustable standard deviation multiplier.
- Clear visual cues with horizontal lines for overbought/oversold levels, midline, and MACD bounds.
**Usage Instructions**
1. **Add to Chart**: Apply the indicator to any symbol (e.g., BTCUSD, SPY) on any timeframe (1H, 1D, etc.).
2. **Configure Settings**:
- **General**: Adjust `Lower Bound` (-50 default) and `Upper Bound` (+50 default) for the output range. Set `Timeframe` for MTF analysis. Enable `Stepped?` for discrete plotting.
- **RSI**: Choose `Price Source` (default: ohlc4), `RSI Length` (default: 9), and smoothing options (e.g., EMA, Bollinger Bands). Adjust `RSI Diff Threshold` for stepped mode.
- **MACD**: Select `Price Source`, `Fast Length` (9), `Slow Length` (21), `Signal Length` (9), and a normalization method (default: Volatility Min-Max). Adjust `MACD Diff Threshold` for stepped mode.
- **Display Options**: Toggle MACD components and histogram colors for clarity.
3. **Interpretation**:
- **VW-RSI**: Watch for crosses above +20 (overbought) or below -20 (oversold) for potential reversals. Use smoothed RSI or Bollinger Bands for trend confirmation.
- **MACD**: Look for MACD/Signal line crosses (dots indicate crossings) and histogram changes for momentum shifts. Bounded normalizations align with RSI for unified analysis.
- **Stepped Mode**: Focus on significant changes in RSI/MACD for clearer signals.
4. **Companion Overlay**: For visualization on the main price chart, use the companion script "VW-RSI & MACD Price Overlay" (available separately, requires this script to be published). It plots RSI and MACD as price-scaled echo lines, with toggles to show/hide and customizable scaling (high/low or ATR).
**Who Is This For?**
- **Trend Traders**: Use MACD normalizations and MTF to identify momentum shifts across timeframes.
- **Mean-Reversion Traders**: Leverage VW-RSI’s overbought/oversold signals for entry/exit points.
- **Technical Analysts**: Customize normalization and smoothing to match specific market conditions.
- **All Markets**: Works on stocks, forex, cryptocurrencies, and more, with any timeframe.
**Notes**
- Unbounded MACD normalizations (`enable_nvw`, `enable_vol`) may produce values outside -50/+50, suitable for volatility-focused strategies.
- For price chart overlay, publish this script and use its ID in the companion script’s `request.security` call.
- Adjust scaling inputs in the companion script for optimal visualization on volatile or stable assets.
**Author’s Note**
Developed by NEPOLIX, this indicator combines volume-weighted precision with flexible normalization for robust technical analysis. Feedback and suggestions are welcome to enhance future versions!
INKY Rejection Blocks - Current ZonesBullish and Bearish block colors with adjustable opacity.
Border visibility, border width, and 50% midline display toggles.
Label size customization for optimal chart clarity.
⚙️ How the Indicator Works:
Swing Detection: Identifies significant highs and lows based on pivot structures.
Rejection Filtering: Confirms strong rejections with wick-to-body ratio validation.
Block Creation: Highlights bullish or bearish rejection zones with customizable visuals.
Midline Plotting: (Optional) Marks the 50% midpoint of the block for entry targeting.
Mitigation and Cleanup: Blocks are deleted automatically when their structure is invalidated, maintaining a clean and accurate chart view.
🎯 How to Use It:
Identify Reaction Zones: Use rejection blocks as potential areas for price reversals or consolidations.
Plan Trade Entries: Monitor retests of the block boundaries or 50% lines for precision entries.
Manage Risk: If price closes beyond the block, treat it as a potential invalidation or Change in State of Delivery (CISD) event.
Multi-Timeframe Stochastic RSI Momentum MatrixThis indicator gives you a "bigger picture" view of a stock's momentum by showing you the Daily, Weekly, and Monthly Stoch RSI all in one place. It helps answer two key questions: "Where is the price going?" and "When might things change?". The results of this indicator are presented in a table for easy viewing.
What the Columns Mean:
Stoch RSI : The main momentum score. Red means "overbought" (momentum is high and might be getting tired), and green means "oversold" (momentum is low and might be ready to bounce).
Price for OB/OS : This shows you the approximate price the stock needs to hit to become overbought or oversold.
- (Hist) means the target is a real price that happened recently.
- (Pred) means the price has exceeded the historical momentum boundary at which was oversold or overbough so the indicator has to predict a new target instead of leveraging a historical target.
Key Anchor Reset In : Think of this as a simple countdown. It tells you how many bars (days, weeks, etc.) are left until a key old price is dropped from the indicator's memory. When this countdown hits zero, it can cause a sharp change in the momentum reading, giving you a "heads-up" for a potential shift.
If you're interested in more technical details, read below:
I have leveraged a quantitative framework for analyzing the temporal dynamics of the Stochastic RSI across multiple timeframes (Daily, Weekly, Monthly). It functions as a correlational matrix, designed to move beyond simple overbought/oversold signals by providing contextual and data-driven targets in both price and time.
The matrix computes two primary sets of forward-looking data points:
Price Targets : A hybrid model is employed to determine the price required to push the StochRSI oscillator into an extreme state.
- Historical Anchor (Hist) : This is the primary/default method. It identifies the
deterministic close price within the lookback period that corresponds to the highest (or
lowest) RSI value. This represents a concrete and historically-defined momentum boundary.
- Predictive Heuristic (Pred) : In instances where the current price has invalidated this
historical anchor (i.e., the market is in a state of momentum expansion), the model
switches to a predictive heuristic. It calculates the recent price-to-RSI volatility ratio and
extrapolates the approximate price movement required to achieve an overbought or
oversold state.
Temporal Targets ("Key Anchor Reset In") : This metric provides a temporal forecast. It identifies the highest and lowest RSI values currently anchoring the Stochastic calculation and determines the number of bars remaining until these key data points are excluded from the lookback window. The roll-off of these anchors can precede a significant, non-linear reset in the oscillator's value, thus serving as a leading indicator for a potential momentum state-shift.
Disclaimer : This tool is a derivative of historical price action and should be used for quantitative analysis of momentum states, not as an oracle. The "predictive" components are heuristic extrapolations based on recent volatility and momentum characteristics and they are probabilistic in nature and do not account for exogenous market variables or fundamental shifts. All outputs are contingent on the continuation of the ticker's current momentum profile.
Rylan Trades ToolkitStay ahead of the market with this all-in-one levels indicator.
It automatically plots key opens (Midnight, Day Session, Week, Month, Quarter, Year, or custom time) plus previous Highs and Lows from multiple timeframes.
Customize your style, width, and extensions, while the indicator keeps charts clean by auto-replacing old lines as new periods begin.
Trade smarter, cut through the noise, and focus only on the levels that matter most.
MTF-RISK [Module+]Description
MTF-RISK is a futures risk management tool that calculates standardized position sizing across multiple CME micro contracts, anchored to higher-timeframe structure. By combining multi-timeframe reference levels with a contract-based dollar-per-point model, it allows traders to maintain consistent risk across different futures markets.
Example:
User has selected the 1H timeframe for the risk table. Once an hourly candle closes, the high and low of that completed hour are locked as reference boundaries.
Lower timeframe candles (e.g., 1m, 5m, 15m) reference these established 1H boundaries to calculate:
Distance in points from the current close to the HTF high or low.
Corresponding dollar risk based on the user-defined Max Risk per Trade ($) setting.
The risk table updates in real-time, showing the current stop distance, calculated contract size, and resulting risk in dollars for both upward and downward directions.
Benefit: Traders always maintain a fixed dollar risk, regardless of intraday price movement, while using HTF structure as the anchor for accurate and consistent position sizing.
1. Higher Timeframe Anchor
Always uses the last fully closed candle from the selected higher timeframe (default: 60m).
Captures the prior HTF high and low as reference boundaries.
Lower timeframe closers (e.g., 1m, 5m, 15m bars) reference these established HTF boundaries to measure stop distances and calculate risk.
Use: Ensures all position sizing is tied to completed HTF structure, providing a consistent framework for intraday trades.
2. Risk Model Engine
Traders define maximum dollar risk per trade.
The system calculates allowable micro contracts based on stop distance (current close → HTF high/low).
Supported contracts and their point values:
MNQ (Micro Nasdaq 100): $2.00 per point
MES (Micro S&P 500): $5.00 per point
MYM (Micro Dow Jones): $0.50 per point
MGC (Micro Gold): $10.00 per point
Formula:
Contracts = Max Risk ÷ (Stop Distance × TSE:VALUE per Point)
Risk ↑: Based on distance to HTF high.
Risk ↓: Based on distance to HTF low.
Use: Provides consistent dollar risk sizing across different futures contracts and multiple intraday timeframes.
3. Risk Table Overlay
Compact, real-time on-chart table with customizable styling.
Columns:
OP: Operation time (adjusted by user’s timezone offset).
Points ↑ / ↓: Stop distances in points relative to HTF boundaries.
Risk ↑ / ↓ ($): Dollar exposure at those stops.
Micros ↑ / ↓: Allowable contract count.
Asset: Displays selected futures contract in the header.
Custom features:
Independent text/background colors per column.
Highlighted latest row for clarity.
Adjustable outline, row colors, and text size.
Use: Gives traders immediate insight into position sizing without leaving the chart.
Intended Use:
This is a risk visualization module, not a trade signal generator. Traders can use it to:
Standardize risk sizing across multiple CME micro futures.
Quickly evaluate trade setups relative to HTF structure.
Measure stop distances from lower timeframe closes while referencing HTF boundaries.
Maintain consistency in risk management regardless of the instrument traded.
Limitations & Disclaimers:
Calculations assume standard CME tick values for MNQ, MES, MYM, and MGC.
Other markets may not align with these dollar-per-point values.
This indicator does not predict direction, generate entries, or guarantee outcomes.
For educational and informational purposes only.
Trading involves risk; always use proper risk management.
Closed-source (Protected): Logic is visible on charts, but source code is hidden.
cd_bsl_ssl_CxGeneral
This indicator is designed to show the levels where stop-loss orders from buyers and sellers are most likely clustered.
Swing levels formed on the aligned higher time frame (HTF) are displayed on the chart as Buy Side Liquidity (BSL) and Sell Side Liquidity (SSL).
________________________________________
Menu & Usage
• HTF Selection:
o In “Auto” mode, the HTF is selected automatically.
o In “Manual” mode, the user can choose the HTF themselves.
• Bar Control:
By adjusting the bar control value, the user can define the number of bars required for a valid BSL or SSL sweep.
This option helps keep the number of alerts under control.
________________________________________
I’d be happy to hear your feedback and suggestions.
Happy trading! 🎉
One White Soldier & One Black Crow DetectorOne white soldier & one black crow.
Blue and yellow highlights
Elliott Wave Auto (Impulse + Correction) — stable deleteAutomatic pivot detection: The script identifies swing highs and swing lows using ta.pivothigh and ta.pivotlow.
Impulse wave labeling (1–5):
Detects 5 alternating pivots and labels them as waves 1 to 5.
Uses green/red labels for impulse and correction legs.
Connects waves with blue lines for visual clarity.
Corrective wave labeling (A–B–C):
Detects the next 3 alternating pivots after wave 5.
Labels them as A, B, C with orange lines connecting them.
Dynamic cleanup:
Stores labels and lines in arrays.
Deletes previous drawings automatically before redrawing, keeping the chart clean.
Optional pivot markers:
Plots tiny triangles for detected pivots (green for lows, red for highs).
Information table:
Displays the direction (Bullish/Bearish) and percentage move of the 1–5 impulse waves.
Pine Script v5 compliant:
Uses str.tostring() and array-based deletion to avoid tostring() or line.deleteall() errors.
If you want, I can also add an alert feature to notify you when a full impulse + corrective wave pattern completes. This makes it actionable for trading.
RSI (1 y 5m) + divergences y rsiNDX 1mWith this indicator we incorporate
RSI of the selected asset in 1 minute.
RSI of the selected asset in 5 minutes.
RSI of the NASDAQ 100 in 1 minute.
Includes divergences that are drawn at the extremes of the RSI of the symbol in 1 minute.
Objective of the indicator:To use it in scalping (intraday) with assets from the Nasdaq 100 ETF, to compare the behavior of the asset against its base index.
Vortag High/LowThe script displays the previous day's high/low during trading hours from 9:30 to 16:00 EST. This gives us a clean chart.
MTF EMA Smooth Indicator By : KaizenotradingPH (Open Source)This indicator script can display three different timeframe MTF EMA indicators simultaneously. The special thing of this script is that it has smoothing feature that can smooth the MTF EMA but only in minutes and hours timeframe (script limitation). You can enable the anti repainting as well which reference the previous bar. These features are useful for customize strategies scripts to avoid repainting. Additionally, this script have customizable length for the three MTF EMA indicators.
This is the open source version of the script.
EvoTrend-X Indicator — Evolutionary Trend Learner ExperimentalEvoTrend-X Indicator — Evolutionary Trend Learner
NOTE: This is an experimental Pine Script v6 port of a Python prototype. Pine wasn’t the original research language, so there may be small quirks—your feedback and bug reports are very welcome. The model is non-repainting, MTF-safe (lookahead_off + gaps_on), and features an adaptive (fitness-based) candidate selector, confidence gating, and a volatility filter.
⸻
What it is
EvoTrend-X is adaptive trend indicator that learns which moving-average length best fits the current market. It maintains a small “population” of fast EMA candidates, rewards those that align with price momentum, and continuously selects the best performer. Signals are gated by a multi-factor Confidence score (fitness, strength vs. ATR, MTF agreement) and a volatility filter (ATR%). You get a clean Fast/Slow pair (for the currently best candidate), optional HTF filter, a fitness ribbon for transparency, and a themed info panel with a one-glance STATUS readout.
Core outputs
• Selected Fast/Slow EMAs (auto-chosen from candidates via fitness learning)
• Spread cross (Fast – Slow) → visual BUY/SELL markers + alert hooks
• Confidence % (0–100): Fitness ⊕ Distance vs. ATR ⊕ MTF agreement
• Gates: Trend regime (Kaufman ER), Volatility (ATR%), MTF filter (optional)
• Candidate Fitness Ribbon: shows which lengths the learner currently prefers
• Export plot: hidden series “EvoTrend-X Export (spread)” for downstream use
⸻
Why it’s different
• Evolutionary learning (on-chart): Each candidate EMA length gets rewarded if its slope matches price change and penalized otherwise, with a gentle decay so the model forgets stale regimes. The best fitness wins the right to define the displayed Fast/Slow pair.
• Confidence gate: Signals don’t light up unless multiple conditions concur: learned fitness, spread strength vs. volatility, and (optionally) higher-timeframe trend.
• Volatility awareness: ATR% filter blocks low-energy environments that cause death-by-a-thousand-whipsaws. Your “why no signal?” answer is always visible in the STATUS.
• Preset discipline, Custom freedom: Presets set reasonable baselines for FX, equities, and crypto; Custom exposes all knobs and honors your inputs one-to-one.
• Non-repainting rigor: All MTF calls use lookahead_off + gaps_on. Decisions use confirmed bars. No forward refs. No conditional ta.* pitfalls.
⸻
Presets (and what they do)
• FX 1H (Conservative): Medium candidates, slightly higher MinConf, modest ATR% floor. Good for macro sessions and cleaner swings.
• FX 15m (Active): Shorter candidates, looser MinConf, higher ATR% floor. Designed for intraday velocity and decisive sessions.
• Equities 1D: Longer candidates, gentler volatility floor. Suits index/large-cap trend waves.
• Crypto 1H: Mid-short candidates, higher ATR% floor for 24/7 chop, stronger MinConf to avoid noise.
• Custom: Your inputs are used directly (no override). Ideal for systematic tuning or bespoke assets.
⸻
How the learning works (at a glance)
1. Candidates: A small set of fast EMA lengths (e.g., 8/12/16/20/26/34). Slow = Fast × multiplier (default ×2.0).
2. Reward/decay: If price change and the candidate’s Fast slope agree (both up or both down), its fitness increases; otherwise decreases. A decay constant slowly forgets the distant past.
3. Selection: The candidate with highest fitness defines the displayed Fast/Slow pair.
4. Signal engine: Crosses of the spread (Fast − Slow) across zero mark potential regime shifts. A Confidence score and gates decide whether to surface them.
⸻
Controls & what they mean
Learning / Regime
• Slow length = Fast ×: scales the Slow EMA relative to each Fast candidate. Larger multiplier = smoother regime detection, fewer whipsaws.
• ER length / threshold: Kaufman Efficiency Ratio; above threshold = “Trending” background.
• Learning step, Decay: Larger step reacts faster to new behavior; decay sets how quickly the past is forgotten.
Confidence / Volatility gate
• Min Confidence (%): Minimum score to show signals (and fire alerts). Raising it filters noise; lowering it increases frequency.
• ATR length: The ATR window for both the ATR% filter and strength normalization. Shorter = faster, but choppier.
• Min ATR% (percent): ATR as a percentage of price. If ATR% < Min ATR% → status shows BLOCK: low vola.
MTF Trend Filter
• Use HTF filter / Timeframe / Fast & Slow: HTF Fast>Slow for longs, Fast threshold; exit when spread flips or Confidence decays below your comfort zone.
2) FX index/majors, 15m (active intraday)
• Preset: FX 15m (Active).
• Gate: MinConf 60–70; Min ATR% 0.15–0.30.
• Flow: Focus on session opens (LDN/NY). The ribbon should heat up on shorter candidates before valid crosses appear—good early warning.
3) SPY / Index futures, 1D (positioning)
• Preset: Equities 1D.
• Gate: MinConf 55–65; Min ATR% 0.05–0.12.
• Flow: Use spread crosses as regime flags; add timing from price structure. For adds, wait for ER to remain trending across several bars.
4) BTCUSD, 1H (24/7)
• Preset: Crypto 1H.
• Gate: MinConf 70–80; Min ATR% 0.20–0.35.
• Flow: Crypto chops—volatility filter is your friend. When ribbon and HTF OK agree, favor continuation entries; otherwise stand down.
⸻
Reading the Info Panel (and fixing “no signals”)
The panel is your self-diagnostic:
• HTF OK? False means the higher-timeframe EMAs disagree with your intended side.
• Regime: If “Chop”, ER < threshold. Consider raising the threshold or waiting.
• Confidence: Heat-colored; if below MinConf, the gate blocks signals.
• ATR% vs. Min ATR%: If ATR% < Min ATR%, status shows BLOCK: low vola.
• STATUS (composite):
• BLOCK: low vola → increase Min ATR% down (i.e., allow lower vol) or wait for expansion.
• BLOCK: HTF filter → disable HTF or align with the HTF tide.
• BLOCK: confidence → lower MinConf slightly or wait for stronger alignment.
• OK → you’ll see markers on valid crosses.
⸻
Alerts
Two static alert hooks:
• BUY cross — spread crosses up and all gates (ER, Vol, MTF, Confidence) are open.
• SELL cross — mirror of the above.
Create them once from “Add Alert” → choose the condition by name.
⸻
Exporting to other scripts
In your other Pine indicators/strategies, add an input.source and select EvoTrend-X → “EvoTrend-X Export (spread)”. Common uses:
• Build a rule: only trade when exported spread > 0 (trend filter).
• Combine with your oscillator: oscillator oversold and spread > 0 → buy bias.
⸻
Best practices
• Let it learn: Keep Learning step moderate (0.4–0.6) and Decay close to 1.0 (e.g., 0.99–0.997) for smooth regime memory.
• Respect volatility: Tune Min ATR% by asset and timeframe. FX 1H ≈ 0.10–0.20; crypto 1H ≈ 0.20–0.35; equities 1D ≈ 0.05–0.12.
• MTF discipline: HTF filter removes lots of “almost” trades. If you prefer aggressive entries, turn it off and rely more on Confidence.
• Confidence as throttle:
• 40–60%: exploratory; expect more signals.
• 60–75%: balanced; good daily driver.
• 75–90%: selective; catch the clean stuff.
• 90–100%: only A-setups; patient mode.
• Watch the ribbon: When shorter candidates heat up before a cross, momentum is forming. If long candidates dominate, you’re in a slower trend cycle.
⸻
Non-repainting & safety notes
• All request.security() calls use lookahead=barmerge.lookahead_off, gaps=barmerge.gaps_on.
• No forward references; decisions rely on confirmed bar data.
• EMA lengths are simple ints (no series-length errors).
• Confidence components are computed every bar (no conditional ta.* traps).
⸻
Limitations & tips
• Chop happens: ER helps, but sideways microstructure can still flicker—use Confidence + Vol filter as brakes.
• Presets ≠ oracle: They’re sensible baselines; always tune MinConf and Min ATR% to your venue and session.
• Theme “Auto”: Pine cannot read chart theme; “Auto” defaults to a Dark-friendly palette.
⸻
Publisher’s Screenshots Checklist
1) FX swing — EURUSD 1H
• Preset: FX 1H (Conservative)
• Params: MinConf=70, ATR Len=14, Min ATR%=0.12, MTF ON (TF=4H, 20/50)
• Show: Clear BUY cross, STATUS=OK, green regime background; Fitness Ribbon visible.
2) FX intraday — GBPUSD 15m
• Preset: FX 15m (Active)
• Params: MinConf=60, ATR Len=14, Min ATR%=0.20, MTF ON (TF=60m)
• Show: SELL cross near London session open. HTF lines enabled (translucent).
• Caption: “GBPUSD 15m • Active session sell with MTF alignment.”
3) Indices — SPY 1D
• Preset: Equities 1D
• Params: MinConf=60, ATR Len=14, Min ATR%=0.08, MTF ON (TF=1W, 20/50)
• Show: Longer trend run after BUY cross; regime shading shows persistence.
• Caption: “SPY 1D • Trend run after BUY cross; weekly filter aligned.”
4) Crypto — BINANCE:BTCUSDT 1H
• Preset: Crypto 1H
• Params: MinConf=75, ATR Len=14, Min ATR%=0.25, MTF ON (TF=4H)
• Show: BUY cross + quick follow-through; Ribbon warming (reds/yellows → greens).
• Caption: “BTCUSDT 1H • Momentum break with high confidence and ribbon turning.”
Special Red & Green CandlesCore Concept
The strategy identifies potential reversal points by looking for candles that show strong rejection (engulfing behavior) at key technical levels across multiple timeframes, combined with specific Fibonacci and volatility conditions.
Key Components
Multi-Timeframe Pivot System
Calculates Daily, Weekly, and Monthly pivot points (Standard & CPR methods)
Tracks traditional pivots (PP, R1-R4, S1-S4) and Central Pivot Range (CPR) values
Includes VWAPs (VWAP, 50-period, 250-period SMAs)
Dynamic Volatility Filter
Uses timeframe-based multipliers to adapt to different chart resolutions:
dynamicMultiplier: Defines minimum candle size requirement (0.015%-0.4% of close)
dynamicMultiplierS: Defines maximum candle size filter (0.025%-0.55% of close)
Special Candle Conditions
For Special Red Candles (Bearish Reversal):
Red candle (close < open)
Open below at least one pivot point (any timeframe)
High touches at least one pivot point
Close below 38.2% Fibonacci level of candle range
Current high is 5-bar highest but low isn't 8-bar lowest
Meets volatility conditions (absolute gap > 0.7% of close)
For Special Green Candles (Bullish Reversal):
Green candle (close > open)
Open above at least one pivot point
Low touches at least one pivot point
Close above 61.8% Fibonacci level
Current low is 5-bar lowest but high isn't 8-bar highest
Meets same volatility requirement
Additional Features
Gap Analysis Table: Shows relationships between key daily/weekly levels
Visual Indicators: Colors background, plots labels, and Fibonacci levels
Comprehensive Level Tracking: Monitors 30+ different pivot points across all timeframes
Trading Logic
This is essentially a fade-the-extreme-move strategy that identifies:
Candles that have significant range (volatility filter)
That show clear rejection at important technical levels
Across multiple timeframes simultaneously
With Fibonacci confluence for additional confirmation
Potential Use Cases
Swing Trading: Identifying reversal points in larger moves
Day Trading: Using lower timeframe signals for intraday reversals
Position Sizing: The strength of confluence could determine trade size
Risk Management
The strategy includes inherent risk controls through:
Multiple confirmation requirements (reduces false signals)
Volatility filters (avoids choppy market conditions)
Multi-timeframe confluence (increases signal reliability)
This is a sophisticated institutional-grade approach that combines traditional pivot analysis with modern volatility-based filtering and Fibonacci theory.
SW's Asia/London H/L'sAccurate Asia and London (with other session) High's and Low's. As well as NY Pre-market and opening bell, and end of day vertical lines. Also created 4 slots in UI to be able to set specific vertical lines with custom label options.