Opening Range BoxThis indicator, called the "Opening Range Box," is a visual tool that helps you track the start of key trading sessions like London and New York.
It does three main things:
Finds the Daily 'First Move': It automatically calculates the High and Low reached during the first 30 minutes (or whatever time you set) of each defined session.
Draws a Box: It immediately draws a colored, transparent box on your chart from the moment the session starts. This box acts as a clear reference for the session's initial boundaries.
Extends the Levels: After the initial 30 minutes are over, the box stops growing vertically (it locks in the OR High/Low) but continues to stretch out horizontally for the rest of the trading session. This allows you to easily see how the price reacts to the opening levels throughout the day.
In short: It visually highlights the most important price levels established at the very beginning of the major market sessions.
Analisi trend
[FRK] Dual Timeline - Separate Pane
The Dual Timeline - Separate Pane indicator is a sophisticated multi-timeframe analysis tool that tracks and displays up to 4 different timeline counts simultaneously in a dedicated pane below your chart. This indicator is designed for traders who use Time-Based Trading (TDT) strategies and need precise tracking of candle/bar counts across multiple timeframes.
Key Features
🔢 Multi-Timeline Tracking:
• Timeline 1: Current chart timeframe counting
• Timeline 2: Customizable higher timeframe (HTF) with proper boundary alignment
• Timeline 3: Specialized 90-minute cycle counting aligned to 2:30 AM NY time
• Timeline 4: Advanced HTF counting with special handling for daily/weekly timeframes
🎯 Strategic Milestone Display:
• Tracks key milestone numbers: 1, 3, 5, 7, 9, 13, 17, 21, 25, 31
• Color-coded sequences for TDT strategies:
◦ Green: Primary sequence (3, 7, 13, 21)
◦ Purple: Secondary sequence (5, 9, 17, 25)
◦ Orange: Current position markers
◦ Gray: Future projections
⚙️ Advanced Customization:
• Individual milestone visibility controls
• Quick presets for TDT strategies:
◦ Top 3 performers (1, 3, 13, 17, 21)
◦ TDT Primary sequence (1, 3, 7, 13, 21)
◦ TDT Secondary sequence (1, 5, 9, 17, 25)
• Customizable colors and font sizes
• Timeline enable/disable controls
📊 Professional Visual Layout:
• Clean separate pane display with labeled timelines
• Subtle center lines for easy reading
• Current position arrows (▲) for active counts
• Connecting lines from latest milestones
• Dots for non-milestone positions
• Future projection capabilities
Special Features
Time-Based Alignment:
• Daily/Weekly timeframes align to 6:00 PM NY (Asia market open)
• Custom 4-hour boundaries: 10:00, 14:00, 18:00, 22:00, 02:00, 06:00
• 90-minute cycles precisely aligned to 2:30 AM NY base time
• HTF boundary detection for accurate positioning
Smart Positioning:
• Time-based positioning for gap handling
• Extended visibility range (1000+ bars back, 500+ bars forward)
• Automatic bar position calculation
• Cross-timeframe synchronization
Use Cases
1. TDT Strategy Implementation: Perfect for Time-Based Trading strategies that rely on specific count sequences
2. Multi-Timeframe Analysis: Track multiple timeframes simultaneously without switching charts
3. Cycle Analysis: Specialized 90-minute cycle tracking for intraday strategies
4. Milestone Targeting: Visual identification of key support/resistance levels based on time counts
5. Future Planning: Project upcoming milestone levels for trade planning
Settings Groups
• Timeline 1-4: Individual start times and timeframe selections
• Display: Colors, fonts, and visual preferences
• Milestone Visibility: Granular control over which counts to display
• Quick Presets: One-click strategy templates
Data Window Output
The indicator provides detailed count information in the data window for precise analysis and strategy backtesting.
Perfect for traders using:
• Time-based trading strategies
• Multi-timeframe analysis
• Cycle-based approaches
• Milestone targeting systems
• Advanced chart timing techniques
This indicator transforms complex multi-timeframe counting into an intuitive visual tool, making it easier to spot patterns, time entries, and plan exits across multiple time dimensions simultaneously.
Ultimate BB Squeeze [Final]This indicator gives the move as it is about to happen and I have even added adx to the same so as to have a directional trade and not get stopped by loss.
pyogi24 Intraday Ichimoku + RSIcustom script to get entry exit
its based on the ichimoku cloud indicator
and the cross over of the leading ang lagging spans to get the signals,
its under development.
i have also integrated the vwap so we know the bias of the trend.
this should work on a trending day.
Unmitigated Candle Highs and Lows What Does "Unmitigated" Mean?
- Unmitigated High: The highest point of a bullish candle that hasn’t been revisited or retested by price after it formed.
- Unmitigated Low: The lowest point of a bearish candle that remains untouched by subsequent price movement.
These levels are often seen as "untapped" supply or demand zones, meaning:
- Price may return to these levels to fill orders left behind.
- They can act as magnetic zones, attracting price back for a reaction.
📈 Why Traders Care About Them
- Liquidity Pools: Institutions often leave unfilled orders at these levels. Price may return to "mitigate" or fulfill those orders.
- Reversal or Continuation Signals: When price revisits an unmitigated high/low, it may either reverse sharply or break through, depending on market context.
- Entry/Exit Points: Traders use these zones to plan entries, stop losses, or take profits.
🧠 Example
Imagine a strong bullish candle forms, but price never returns to its low. That low is considered unmitigated. If price revisits it later, traders watch closely for a bounce or a break.
ICT Killzones Pro Suite — ICT & SMC Indicator with AlertsThe ICT Killzones Pro Suite is a complete ICT and Smart Money Concepts (SMC) indicator that brings together the most important institutional concepts into one single tool.
Instead of manually drawing sessions, structure breaks, liquidity levels or imbalances, this ICT indicator for TradingView automatically plots them with precision and full customization.
It is widely used by traders in Forex, Indices, Crypto and Commodities who want to study market structure the same way institutions do.
🔎 Features
✅ Killzones (Asia, London, New York)
Session boxes with customizable colors
50% midline level for equilibrium reference
Real-time status display (“In Killzone” / “Out of Killzone”)
✅ Equal Highs & Equal Lows (Liquidity zones)
Automatic detection of EQH/EQL
Equality tolerance parameter
Zone expiry (bars)
Rejection filter (2 consecutive closes)
Option to show only the latest active EQH/EQL
✅ Break of Structure (BOS) & Market Structure Shift (MSS)
Detects continuation (BOS) and reversal (MSS) structures
Customizable line styles and colors
“Body only” or “Body/Wick” break modes
Option to show only the latest signals
✅ Open Price Range (OPR)
Institutional daily open level in UTC
Historical OPR memory for backtesting
Optional labels for quick identification
✅ Previous Highs and Lows
Daily (PDH/PDL), Weekly (PWH/PWL), Monthly (PMH/PML)
Full label system
Customizable line width/style
Breakout alerts for each level
✅ Fair Value Gaps (FVGs)
Automatic imbalance detection
Wick or body detection modes
Highlighted imbalance candles in yellow
✅ Alerts Engine
One global alert condition
Modular alerts:
• Killzone opens/closes
• EQH/EQL created or broken
• BOS/MSS bullish & bearish signals
• Previous Highs/Lows breakouts
• FVGs
⚙️ Parameters Explained
Killzones: start/end times in UTC, colors, extension lines, 50% midline
EQH/EQL: tolerance (0 = strict equality, >0 = margin allowed), expiry age (bars), rejection filter, body/wick break type, latest only toggle
BOS/MSS: swing bars (pivots), body vs wick detection, line styles & widths, only-latest option
OPR: exact UTC time (HH:MM), history toggle, label size/color
Previous Highs/Lows: daily/weekly/monthly levels, line styles, label settings, breakout alerts
FVGs: wick vs body detection, candle highlight color
Alerts: global condition + per-module toggles (sessions, liquidity, BOS/MSS, FVG)
Every parameter is fully customizable, making this SMC indicator adaptable to any trading style or timeframe.
📌 Why use this ICT & SMC indicator?
Saves time by automating repetitive tasks
Provides an institutional framework directly on charts
Keeps analysis structured and consistent
Optimized for intraday scalping and swing trading
⚠️ Disclaimer
This script is for educational purposes only. It does not guarantee profits or predict markets with certainty. Always use proper risk management.
🔑 Access
This is an invite-only script on TradingView.
Click Request Access on this page to apply.
Quarterly EarningsThis Pine script shows quarterly EPS, Sales, and P/E (TTM-based) in a styled table.
Multi-Oscillator Adaptive Kernel with MomentumMulti-Oscillator Adaptive Kernel w. Momentum
An adaptation of the indicator by AlphaAlgos : Multi-Oscillator-Adaptive-Kernel (MOAK) with Divergence . Please find the description of the indicator in the above link.
Apart from adding labels to show trend/momentum changes, the following changes have been made to the original script:
1. Sensitivity is used in the computation to scale the fast MOAK signal,
2. Selection between two indicator modes:
Trending - (the original script method) assesses whether smoothed MOAK is above/below 0 - for up/down trends respectively.
Momentum - assesses whether the fast MOAK signal is above/below the smoothed MOAK, and can be used to indicate potential trend reversals as momentum of current trend fades.
One Trade Setup for LifeIndicators are refered from @TFlab and @ChartPrime and @UAlgo
***
## Indicator Overview 🚀
**One Trade Setup for Life** is a sophisticated TradingView Pine Script indicator blending Smart Money Concepts (SMC), advanced Price Action, and Liquidity Analysis. It provides signals for structural market moves, trade setups, and custom alerts. This tool is designed for **precision execution**, giving traders a comprehensive edge in diverse market conditions.
***
## Key Logic Sections & Explanation
### Smart Money Concept Logic 💸
- **Pivot Lines**: Plots SMC levels based on swing high/low pivots, customizable for wick/body detection and colored to represent bullish or bearish market structure.
- **Market Structure Detection**: Tracks changes such as BOS (Break of Structure) and CHoCH (Change of Character), using real-time breakout logic to highlight structural shifts, confirm reversal setups, and trigger accompanying alerts.
- **Engulfing & Confirmation**: Identifies engulfing candles, confirms market structure changes, and plots colored lines—with shape plots at exact highs/lows for visual clarity.
***
### Pure Price Action 📈
- **Swing Detection**: Adjustable bars for detecting swing points, making the indicator sensitive to trend reversals and continuations based on candle closes or wicks.
- **BOS/CHoCH Lines**: Plots dashed, solid, or dotted lines (user-selected) to visualize structural changes in price, adding color-coded markers for transparency.
- **Sentiment Table**: Displays an emoji-based sentiment table at the chart bottom, updating live to quickly gauge overall price action and market mood (bull, bear, neutral emoji).
***
### Supertrend Logic 🟩🟥
- **ATR-Based Trend Filter**: Implements Supertrend bands using customizable ATR length, multiplier, and increment. Options include normalization for flexibility in ranging versus trending markets.
- **Multi-Factor Signals**: Detects buy/sell crossovers and plots median/stdev areas for additional confirmation. Users can visually track Supertrend support/resistance as trade triggers.
***
### RSI & Activity Analysis 📊
- **RSI Calculation**: Provides customizable RSI length, overbought/oversold thresholds. Candle coloring flips as RSI hits extreme levels, giving immediate visual signals for exhaustion or reversals.
- **Trading Volume Proxy**: Advanced logic computes percentile rankings and plots quintile bands, triggering signal arrows when activity surges above or below key thresholds.
***
### Liquidity Sweep & Fair Value Gap Logic 💧
- **Sweep Zones**: Detects price sweeps at key resistance/support lines generated from pivots, marking with labels and enabling sweep alerts.
- **FVG & Mitigation**: Integrates Fair Value Gap (FVG) detection. The indicator can filter FVG zones by aggressiveness, classify supply/demand FVGs, and highlight where price is likely to react for entry or exit.
***
### Support, Resistance, and Swing Levels 🟦🟥
- **Multi-Period SR Lines**: Draws dynamic lines for support/resistance from high/low pivots, adjustable for length and quantity, and visually distinct using color, label, and style options.
- **Main Swing Alerts**: Tracks swing direction, assigns colors, and fires alerts only when direction changes, ensuring traders catch priority momentum shifts.
***
### Detailed Alerts System 🚨
- **Custom Alert Inputs**: Users can toggle alerts for CHoCH, BOS, liquidity structure, high-volume, FVG events, sweep zones, false breakouts, and trigger candles—ensuring critical signals are never missed.
- **On-Chart Graphics**: Circles, arrows, and emoji labels clearly mark confirmation, swings, and reversal points directly on the chart, streamlining decision-making.
***
## Example Markdown Table: Alert Features
| Alert Type | Logic/Trigger | Emoji | Visual Output |
|------------------------|--------------------------------------|-------|---------------------------|
| CHoCH (Change of Char.)| Counter-trend BOS detection | 🔄 | Colored line & arrow |
| BOS (Break of Struct.) | Trend BOS, confirming market shift | 💥 | Line/circle at high/low |
| Liquidity Sweep | Price breaks support/resistance | 💧 | Label "Sweep" + alert |
| FVG Alert | FVG zone formation by aggression | ⚡ | Box highlight + alert |
| Supertrend Trigger | Median/std crossovers | 🟩🟥 | Colored area, Buy/Sell |
***
## Customization, Emoji & Styling 🎨
- **All key inputs are grouped and tooltipped for easy setup.**
- **Charts use emojis for sentiment** and direction, visible on tables and labels.
- **Colors are user-selected** for all markers (pivot, BOS, CHoCH, FVG, SR, swing).
- **Visuals (circles/arrows)** highlight entry, exit, and alert points for instant interpretation—making the script unique and easy to use.
***
## Publication & Use 🌐
This script is covered under the Mozilla Public License 2.0. When publishing, provide the following metadata:
- **Title**: One Trade Setup for Life
- **Description**: A fusion tool combining SMC, price action, advanced liquidity analytics, and market structure detection—with a robust alert system and richly visual trading interface.
**Enjoy clear signals, custom alerts, and visually appealing chart markers—all in one package!** 🏆
EMA/SMA Market Indicator V1 (Situational Awareness Uptrend)Red condition (highest priority in code)
Background = red if any of these are true:
Close < 10MA
OR Close < 20MA
OR (10MA and 20MA slopes ≤ threshold → “flat/down”)
Green condition (only if not red)
Background = green if:
(Close > 10MA or Close > 20MA)
AND Close > 50MA
Otherwise = nothing (transparent)
If neither red nor green is true → background is off.
So when is there no background?
Close is not below 10MA
Close is not below 20MA
MAs are not both flat/down
AND the price fails the “green test” (ex. under 50MA, or not above 10/20).
Fibonacci Ret/Ext ProFibonacci Ret/Ext Pro - Advanced Fibonacci Retracement & Extension Tool
Transform your technical analysis with this professional-grade Fibonacci indicator that automatically detects market structure and draws precise retracement and extension levels.
Key Features:
🎯 Smart Market Structure Detection
Automatic pivot high/low identification with customizable periods
CHoCH (Change of Character) visualization
Real-time swing tracking with intelligent structure recognition
Bullish/bearish market structure highlighting
📊 Comprehensive Fibonacci Levels
Standard levels: 0, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Extension levels: 127.2%, 161.8%
Negative retracement levels: -27.2%, -38.2%, -61.8%, -100%, -161.8%, -200%
Fully customizable level values and colors
⚙️ Advanced Customization
Individual level toggles - show only what you need
Custom colors for each Fibonacci level
Adjustable line widths and styles
Smart label positioning with price display
Golden Zone highlighting (customizable fill areas)
🔄 Dynamic Display Options
Real-time level extension to current bar
Swing line connections between pivots
Automatic level updates on structure changes
Clean chart display - old levels are automatically cleared
📍 Professional Labeling
Configurable label positions (left/right, above/below/on-line)
Multiple size options (tiny to large)
Price values displayed alongside Fibonacci ratios
Clean, professional appearance
How It Works:
The indicator automatically identifies significant swing highs and lows based on your chosen structure period. When market structure changes from bullish to bearish (or vice versa), it instantly calculates and displays Fibonacci levels from the most recent swing points. No manual drawing required - the algorithm handles everything automatically.
Perfect For:
Swing traders identifying key support/resistance levels
Day traders looking for precise entry/exit points
Position traders planning long-term entries
Anyone seeking professional Fibonacci analysis without manual plotting
Settings Presets:
Short (8 bars) - For intraday/scalping
Medium (21 bars) - For swing trading
Long (55 bars) - For position trading
Custom - Define your own structure period
This indicator provides clean, professional Fibonacci analysis that updates automatically as market structure evolves. No more manual Fibonacci drawing - let the algorithm identify the key levels for you.
Want to take your trading to the next level?
This Fibonacci tool is just one component of a complete trading system. For the full professional experience, check out my Optimus Indicator - a comprehensive full-stack trading system that includes:
Multi-timeframe trend analysis
Advanced buy/sell signals with filtering
Win/loss tracking and statistics
Stop loss management
Real-time alerts and notifications
And much more...
The Optimus Indicator provides everything a serious trader needs in one integrated platform. If you're ready for professional-grade trading tools, reach out privately for access to the complete system.
Disclaimer: This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
Best MA Finder: Sharpe/Sortino ScannerThis script, Best MA Finder: Sharpe/Sortino Scanner, is a tool designed to identify the moving average (SMA or EMA) that best acts as a dynamic trend threshold on a chart, based on risk-adjusted historical performance. It scans a wide range of MA lengths (SMA or EMA) and selects the one whose simple price vs MA crossover delivered the strongest results using either the Sharpe ratio or the Sortino ratio. Reading it is intuitive: when price spent time above the selected MA, conditions were on average more favorable in the backtest; below, less favorable. It is a trend and risk gauge, not an overbought or oversold signal.
What it does:
- Runs individual long-only crossover backtests for many MA lengths across short to very long horizons.
- For each length, measures the total number of trades, the annualized Sharpe ratio, and the annualized Sortino ratio.
- Uses the chosen metric value (Sharpe or Sortino) as the score to rank candidates.
- Applies a minimum trade filter to discard statistically weak results.
- Optionally applies a local stability filter to prefer a length that also outperforms its close neighbors by at least a small margin.
- Selects the optimal MA and displays it on the chart with a concise summary table.
How to use it:
- Choose MA type: SMA or EMA.
- Choose the metric: Sharpe or Sortino.
- Set the minimum trade count to filter out weak samples.
- Select the risk-free mode:
Auto: uses a short-term risk-free rate for USD-priced symbols when available.
Manual: you provide a risk-free ticker.
None: no risk-free rate.
- Optionally enable stability controls: neighbor radius and epsilon.
- Toggle the on-chart summary table as needed.
On-chart output:
- The selected optimal MA is plotted.
- The optional table shows MA length, number of trades, chosen metric value annualized, and the annual risk-free rate used.
Key features:
- Risk-adjusted optimization via Sharpe or Sortino for fair, comparable assessment.
- Broad MA scan with SMA and EMA support.
- Optional stability filter to avoid one-off spikes.
- Clear and auditable presentation directly on the chart.
Use cases:
- Traders who want a defensible, data-driven trend threshold without manual trial and error.
- Swing and trend-following workflows across timeframes and asset classes.
- Quick SMA vs EMA comparisons using risk-adjusted results.
Limitations:
- Not a full trading strategy with position sizing, costs, funding, slippage, or stops.
- Long-only, one position at a time.
- Discrete set of MA lengths, not a continuous optimizer.
- Requires sufficient price history and, if used, a reliable risk-free series.
This script is open-source and built from original logic. It does not replicate closed-source scripts or reuse significant external components.
Smart Money Support/Resistance — LiteSmart Money Support/Resistance — Lite
Overview & Methodology
This indicator identifies support and resistance as zones derived from concentrated buying and selling pressure, rather than relying solely on traditional swing highs/lows. Its design focuses on transparency: how data is sourced, how zones are computed, and how the on‑chart display should be interpreted.
Lower‑Timeframe (LTF) Data
The script requests Up Volume, Down Volume, and Volume Delta from a lower timeframe to expose intrabar order‑flow structure that the chart’s native timeframe cannot show. In practical terms, this lets you see where buyers or sellers briefly dominated inside the body of a higher‑timeframe bar.
bool use_custom_tf_input = input.bool(true, title="Use custom lower timeframe", tooltip="Override the automatically chosen lower timeframe for volume calculations.", group=grpVolume)
string custom_tf_input = input. Timeframe("1", title="Lower timeframe", tooltip="Lower timeframe used for up/down volume calculations (default 5 seconds).", group=grpVolume)
import TradingView/ta/10 as tvta
resolve_lower_tf(useCustom, customTF) =>
useCustom ? customTF :
timeframe.isseconds ? "1S" :
timeframe.isintraday ? "1" :
timeframe.isdaily ? "5" : "60"
get_up_down_volume(lowerTf) =>
= tvta.requestUpAndDownVolume(lowerTf)
var float upVolume = na
var float downVolume = na
var float deltaVolume = na
string lower_tf = resolve_lower_tf(use_custom_tf_input, custom_tf_input)
= get_up_down_volume(lower_tf)
upVolume := u_tmp
downVolume := d_tmp
deltaVolume := dl_tmp
• Data source: TradingView’s ta.requestUpAndDownVolume(lowerTf) via the official TA library.
• Plan capabilities: higher‑tier subscriptions unlock seconds‑based charts and allow more historical bars per chart. This expands both the temporal depth of LTF data and the precision of short‑horizon analysis, while base tiers provide minute‑level data suitable for day/short‑swing studies.
• Coverage clarity: a small on‑chart Coverage Panel reports the active lower timeframe, the number of bars covered, and the latest computed support/resistance ranges so you always know the bounds of valid LTF input.
Core Method
1) Data acquisition (LTF)
The script retrieves three series from the chosen lower timeframe:
– Up Volume (buyers)
– Down Volume (sellers)
– Delta (Up – Down)
2) Rolling window & extrema
Over a user‑defined lookback (Global Volume Period), the algorithm builds rolling arrays of completed bars and scans for extrema:
– Buyers_max / Buyers_min from Up Volume
– Sellers_max / Sellers_min from Down Volume
Only completed bars are considered; the current bar is excluded for stability.
3) Price mapping
The extrema are mapped back to their source candles to obtain price bounds:
– For “maximum” roles the algorithm uses the relevant candle highs.
– For “minimum” roles it uses the relevant candle lows.
These pairs define candidate resistance (max‑based) and support (min‑based) zones or vice versa.
4) Zone construction & minimum width
To ensure practicality on all symbols, zones enforce a minimum vertical thickness of two ticks. This prevents visually invisible or overly thin ranges on instruments with tight ticks.
5) Vertical role resolution
When both max‑ and min‑based zones exist, the script compares their midpoints. If, due to local price structure, the min‑based zone sits above the max‑based zone, display roles are swapped so the higher zone is labeled Resistance and the lower zone Support. Colors/widths are updated accordingly to keep the visual legend consistent.
6) Rendering & panel
Two horizontal lines and a filled box represent each active zone. The Coverage Panel (bottom‑right by default) prints:
– Lower‑timeframe in use
– Number of bars covered by LTF data
– Current Support and Resistance ranges
If the two zones overlap, an additional “Range Market” note is shown.
Key Inputs
• Global Volume Period: shared lookback window for the extrema search.
• Lower timeframe: user‑selectable override of the automatically resolved lower timeframe.
• Visualization toggles: independent show/hide controls and colors for maximum (resistance) and minimum (support) zones.
• Coverage Panel: enable/disable the single‑cell table and its readout.
Operational Notes
• The algorithm aligns all lookups to completed bars (no peeking). Price references are shifted appropriately to avoid using the still‑forming bar in calculations.
• Second‑based lower timeframes improve granularity for scalping and very short‑term entries. Minute‑based lower timeframes provide broader coverage for intraday and short‑swing contexts.
• Use the Coverage Panel to confirm the true extent of available LTF history on your symbol/plan before drawing conclusions from very deep lookbacks.
Visual Walkthrough
A step‑by‑step image sequence accompanies this description. Each figure demonstrates how the indicator reads LTF volume, locates extrema, builds price‑mapped zones, and updates labels/colors when vertical order requires it.
Chart Interpretation
This chart illustrates two distinct perspectives of the Smart Money Support/Resistance — Lite indicator, each derived from different lookback horizons and lower-timeframe (LTF) resolutions.
1- Short-term view (43 bars, 10-second LTF)
Using the most recent 43 completed bars with 10-second intrabar data, the algorithm detects that both maximum and minimum volume extrema fall within a narrow range. The result is a clearly identified range market: resistance between 178.15–184.55 and support between 175.02–179.38.
The Coverage Panel (bottom-right) confirms the scope of valid input: the lower timeframe used, number of bars covered, and the resulting zones. This short-term scan highlights how the indicator adapts to limited data depth, flagging sideways structure where neither side dominates.
2 - Long-term view (120 bars, 30-second LTF)
Over a wider 120-bar lookback with higher-granularity 30-second data, broader supply and demand zones emerge.
– The long-term resistance zone captures the concentration of buyers and sellers at the upper boundary of recent price history.
– The long-term support zone anchors to the opposite side of the distribution, derived from maxima and minima of both buying and selling pressure.
These zones reflect deeper structural levels where market participants previously committed significant volume.
Combined Perspective
By aligning the short-term and long-term outputs, the chart shows how the indicator distinguishes immediate consolidation (range market) from more durable support and resistance levels derived from extended history. This dual resolution approach makes clear that support and resistance are not static lines but dynamic zones, dependent on both timeframe depth and the resolution of intrabar volume data.
Z-Score Trend Channels [BackQuant]Z-Score Trend Channels
A self-contained price-statistics framework that turns a rolling z-score into price channels, bias states, and trade markers. Run either trend-following or mean-reversion from the same tool with clear, on-chart context.
What it is
A rolling statistical map that measures how far price is from its recent average in standard-deviation units (z-score).
Adaptive channels drawn in price space from fixed z thresholds, so the rails breathe with volatility.
A simple trend proxy from z-score momentum to separate trending from ranging conditions.
On-chart signals for pullback entries, stretched extremes, and practical exits.
Core idea (plain English math)
Rolling mean and volatility - Over a lookback you get the average price and its standard deviation.
Z-score - How many standard deviations the current price is above or below its average: z = (price - mean) / stdev. z near 0 means near average; positive is above; negative is below.
Noise control - An EMA smooths the raw z to reduce jitter and false flickers.
Channels back in price - Fixed z levels are converted back to price to form the upper, lower, and extreme rails.
Trend proxy - A smoothed change in z is used as a lightweight trend-strength line. Positive strength with positive z favors uptrend; negative strength with negative z favors downtrend.
What you see on the chart
Channels and fills - Mean, upper, lower, and optional extreme lines. The area mean->upper tints with the bearish color, mean->lower tints with the bullish color.
Background tint (optional) - Soft green, red, or neutral based on detected trend state.
Signals - Bullish Entry (triangle up) when z exits the oversold zone upward; Bearish Entry (triangle down) when z exits the overbought zone downward; Extreme markers (diamonds) at the extreme bands with a one-bar turn.
Table - Current z, trend state, trend strength, distance to bands, market state tag, and a quick volatility regime label.
Edge labels - MEAN, OB, and OS labels slightly projected forward with level values.
Inputs you will actually use
Z-Score Period - Lookback for mean and stdev. Larger = slower and steadier rails, smaller = more reactive.
Smoothing Period - EMA on z. Lower = earlier but choppier flips; higher = later but cleaner.
Price Source - Default hlc3. Choose close if you prefer session-close logic.
Upper and Lower Thresholds - Default around +2.0 and -2.0. Tighten for more signals, widen for fewer and stronger.
Extreme Upper and Lower - Deeper stretch guards, e.g., +/- 2.5.
Strength Period - EMA on z momentum. Sets how fast the trend proxy flips.
Trend Threshold - Minimum absolute z to accept a directional bias.
Visual toggles - Channels, signals, background tint, stats table, colors, and optional last-bar trend label.
How to use it: trend-following playbook
Read the state - Uptrend when z > Trend Threshold and trend strength > 0. Downtrend when z < -Trend Threshold and trend strength < 0. Neutral otherwise.
Entries - In an uptrend, prefer Bullish Entry signals that fire near the lower channel. In a downtrend, prefer Bearish Entry signals that fire near the upper channel.
Stops - Conservative: beyond the extreme channel on your side. Tighter: just outside the standard band that framed the signal.
Exits - For longs, exit or trim on a cross back through z = 0 or a clean tag of the upper threshold. For shorts, mirror with z = 0 up-cross or tag of the lower threshold. You can also reduce if trend strength flips against you.
Adds - In strong trends, additional signals near your side’s band can be add points. Avoid adding once z hovers near the opposite band for several bars.
How to use it: mean-reversion playbook
Find stretch - Standard reversions: Bullish Entry when z leaves the oversold zone upward; Bearish Entry when z leaves the overbought zone downward. Aggressive reversions: Extreme markers at extreme bands with a one-bar turn.
Entries - Take the signal as price exits the zone. Prefer setups where trend strength is near zero or tilting against the prior push.
Targets - First target is the mean line. A runner can aim for the opposite standard channel if momentum keeps flipping.
Stops - Outside the extreme band beyond your entry. If fading without extremes, place risk just beyond the opposite standard band.
Filters - Optional: skip counter-trend fades against a very strong trend state unless your risk is tight and predefined.
Reading the stats table
Current Z-Score - Magnitude and sign of displacement now.
Trend State - Uptrend, Downtrend, or Ranging.
Trend Strength - Smoothed z momentum. Higher absolute values imply stronger directional conviction.
Distance to Upper/Lower - Percent distance from price to each band, useful for sizing targets or judging room left.
Market State - Overbought, Oversold, Extreme OB, Extreme OS, or Normal.
Volatility Regime - High, Normal, or Low relative to recent distribution. Expect bands to widen in High and tighten in Low.
Parameter guidance (conceptual)
Z-Score Period - Choose longer for a structural mean, shorter for a reactive mean.
Smoothing Period - Lower for earlier but noisier reads; higher for slower but steadier reads.
Thresholds - Start around +/- 2.0. Tighten for scalping or quiet ranges. Widen for noisy or fast markets.
Trend Threshold and Strength Period - Raise to avoid weak, transient bias. Lower to capture earlier regime shifts.
Practical examples
Trend pullback long - State shows Uptrend. Price tests the lower channel; z dips near or below the lower threshold; a Bullish Entry prints. Stop just below extreme lower; first target mean; keep a runner if trend strength stays positive.
Mean-revert short - State is Ranging. z tags the extreme upper, an Extreme Bearish marker prints, then a Bearish Entry prints on the leave. Stop above extreme upper; target the mean; consider a runner toward the lower channel if strength turns negative.
Potential Questions you might have
Why z-score instead of fixed offsets - Because the bands adapt with volatility. When the tape gets quiet the rails tighten, when it runs hot the rails expand. Your entries stay normalized.
Do I need both modes - No. Many users run only trend pullbacks or only mean-reversions. The tool lets you toggle what you need and keep the chart readable.
Multi-timeframe workflow - A common approach is to set bias from a higher timeframe’s trend state and execute on a lower timeframe’s signals that align with it.
Summary
Z-Score Trend Channels gives you an adaptive mean, volatility-aware rails, a simple trend lens, and clear signals. Trade the trend by buying pullbacks in green and selling pullbacks in red, or fade stretched extremes back to the mean with defined risk. One framework, two strategies, consistent logic.
PCCE + False Breakout DetectorPCCE + False Breakout Detector
Type: Invite-Only Indicator (closed source)
Purpose : Detect price compression and the first expansion after it, while flagging failed breakouts (bull/bear traps) for risk control.
1) What’s original here!
This tool integrates three behaviour-driven tests that work in a single decision flow:
A compression score built from:
(a) monotonic body shrink,
(b) wick-dominance, and
(c) relative range contraction versus history.
This is not a bands/oscillator port; it’s a structure-first filter that isolates coils.
A thrusted expansion requirement that combines real-body impulse and relative-volume participation (+ optional EMA alignment) to qualify a breakout beyond the coil envelope.
An immediate post-breakout failure test (trap logic) that checks whether the breakout re-enters the prior swing range within a short window.
Used together, these steps turn raw breaks into contextual, risk-aware events: setup → trigger → validation. That is the value of the combination.
⸻
2) Concepts behind the calculations:
Let body_t = |close_t − open_t|,
uw_t = high_t − max(open_t, close_t) (upper wick),
lw_t = min(open_t, close_t) − low_t (lower wick),
R_t(k) = highest(high, k)_t − lowest(low, k)_t (range over k bars),
MA_body(k) = SMA(body, k), MA_vol(k) = SMA(volume, k).
2.1 Compression (coil) detection
We evaluate within a window k = coilLength:
• Body shrink count: number of consecutive steps where body_(t−i) < body_(t−i−1).
• Wick dominance: AvgWickBody = avg( (uw + lw) / body ) over the window; require AvgWickBody > wickRatioMin.
• Relative range contraction: current R_t(k) must be less than α × avg( R_(t−j)(k) ) computed over a lookback of rangeWindow windows, with α < 1 (tight market).
When all three are true, we mark a coil zone; the coil bounds are High_coil = highest(high, k), Low_coil = lowest(low, k).
2.2 Expansion (“Burst”) confirmation
A breakout is only qualified when all hold on bar close:
• Direction: close > High_coil → up; close < Low_coil → down.
• Body thrust: body_t > MA_body(k) × bodyMult.
• Participation: volume_t > MA_vol(k) × volumeMultiplier.
• Trend alignment (optional): close_t > EMA(emaLen) for up / < EMA for down.
• Cooldown: t − lastSignal > cooldownBars.
If satisfied, print Burst↑ or Burst↓ on that bar.
2.3 Failed breakout (trap) detection
Let H_s and L_s be the prior swing high/low from a lookback rangeLookback (excluding the current bar). Define:
• Bull break attempt: a bar that closed above H_s.
Bull trap: within fakeoutBars bars after that attempt, any close returns below H_s. Mark ❌ red above that bar.
• Bear break attempt: a bar that closed below L_s.
Bear trap: within fakeoutBars bars after that attempt, any close returns above L_s. Mark ❌ green below that bar.
Alerts fire on bar close only.
⸻
3) What you’ll see on the chart
• Coil box: shaded envelope (tight-range bounds).
• Burst labels: Burst↑ / Burst↓ only when thrust + volume (and optional EMA) confirm the break.
• Trap markers: ❌ red (failed bullish breakout) / ❌ green (failed bearish breakout).
• Alerts: “Burst Up” and “Burst Down” (close-based).
⸻
4) How to use it
1. Preparation : When a coil box appears, mark the bounds; expect expansion risk to rise.
2. Trigger : Act only on Burst labels (they already encode body/volume thrust and optional trend).
3. Validation : If a ❌ trap prints shortly after a breakout, treat it as a warning/exit event; breakouts that re-enter the prior swing range are statistically fragile.
4. Context : Works well on 15m–4H where structure is visible. Combine with your own higher-timeframe bias, S/R, liquidity pools, and risk rules.
5. Tuning :
• Tighten/loosen coil sensitivity via coilLength, wickRatioMin, and the range contraction factor.
• Use larger bodyMult / volumeMultiplier to demand stronger breaks.
• cooldownBars controls clustering in fast sessions.
• rangeLookback and fakeoutBars control how strict the trap check is.
⸻
5) Repainting, scope, and limitations
• Burst and trap labels are evaluated on bar close; once printed, they do not repaint. Coil boxes can update while forming; they stabilize once conditions are met.
• Sudden news/illiquid periods can defeat filters; adjust multipliers and cooldown for your instrument.
• This is an indicator, not a strategy; it does not publish PnL, win-rate, or forward promises.
LQ sweep (DeadCat)This indicator provides a streamlined approach to Smart Money Concepts (SMC) market structure analysis, focusing on identifying liquidity sweep patterns at key structural levels. The script tracks price action to detect when institutional liquidity is being targeted through systematic structure breaks.
Core Methodology:
The indicator employs a dual-pivot system (20/2 bars) to identify market structure points internally, then monitors for liquidity sweeps at these levels:
Trend Continuation Sweeps: When price breaks above Higher Highs (uptrend) or below Lower Lows (downtrend)
Trend Reversal Sweeps: When price breaks below Higher Lows (uptrend) or above Lower Highs (downtrend)
Market Structure Engine:
Automatically establishes initial trend direction from first two pivot points
Tracks structure progression internally without visual clutter
Requires 2-candle confirmation (bullish/bearish) before finalizing new structure levels
Maintains pending structure states until proper confirmation occurs
Liquidity Sweep Detection:
The indicator identifies four distinct liquidity sweep scenarios:
Bullish Continuation: HH break in established uptrend
Bearish Continuation: LL break in established downtrend
Bullish Reversal: LH break signaling potential uptrend resumption
Bearish Reversal: HL break signaling potential downtrend resumption
Key Features:
Simplified Interface: Single settings group for all liquidity sweep configurations
Flexible Label Positioning: Choose where sweep labels appear on lines
Consistent Visual Style: All sweeps use the same color/style for clarity
Minimal Chart Clutter: No market structure labels, only essential sweep markers
Unique Implementation:
Unlike traditional SMC indicators that display all structure points, this tool focuses exclusively on actionable liquidity sweeps. It maintains the mathematical rigor of structure tracking internally while presenting only the critical sweep levels where institutional activity is likely concentrated.
Usage:
Liquidity sweeps often precede significant moves as they represent areas where stop-losses accumulate. Traders can use these levels to:
- Identify potential reversal zones after sweep completion
- Spot continuation patterns when sweeps align with trend
- Time entries after liquidity has been collected
- Set stop-loss levels beyond recent sweep points
This indicator simplifies complex SMC concepts into actionable liquidity sweep signals, making it suitable for traders who want to focus on key institutional levels without overwhelming chart analysis.
ML-Enhanced Multi-Indicator Composite Signal🤖 ML-Enhanced Multi-Indicator Composite Signal
Revolutionary AI-Powered Trading Indicator with Adaptive Learning
Transform your trading with cutting-edge machine learning technology that automatically optimizes indicator weights based on real market performance!
🎯 What Makes This Indicator Special?
This isn't just another composite indicator. It's an intelligent trading system that learns from market data and continuously adapts to improve signal accuracy. Unlike static indicators with fixed weights, this AI-powered tool dynamically adjusts the importance of each technical indicator based on their actual prediction success rates.
⚡ Key Features
🤖 Adaptive Machine Learning Engine
Automatically tracks prediction accuracy for each indicator
Dynamically adjusts weights based on performance
Continuous learning and adaptation to market conditions
Configurable learning parameters for fine-tuning
📊 Multi-Indicator Fusion
SuperTrend: Trend direction and momentum
Moving Averages: Price trend confirmation (SMA/EMA/WMA/RMA)
VWAP: Volume-weighted price levels
Linear Regression: Mathematical trend analysis
🎯 Intelligent Signal Generation
Strong Buy/Buy/Sell/Strong Sell signals
Configurable threshold levels
Signal smoothing to reduce noise
Smart signal timing to avoid repetitive alerts
📈 Performance Analytics Dashboard
Real-time accuracy tracking for each indicator
Weight distribution visualization
ML vs. Equal weights comparison
Learning progress monitoring
🚀 How It Works
1. Data Collection Phase
The indicator continuously monitors the performance of each technical component, storing predictions and actual market outcomes.
2. Learning Phase
Using configurable learning periods (20-500 bars), the ML engine calculates accuracy rates for each indicator's predictions.
3. Weight Optimization
Based on performance data, the system automatically adjusts weights using a configurable learning rate, ensuring better-performing indicators have more influence.
4. Signal Generation
The optimized composite signal triggers buy/sell alerts when crossing predefined thresholds, with visual signals and background coloring.
⚙️ Customization Options
Machine Learning Parameters
Learning Period: 20-500 bars (default: 100)
Prediction Horizon: 1-20 bars (default: 5)
Learning Rate: 0.01-1.0 (default: 0.1)
Minimum Weight: Prevents any indicator from becoming irrelevant
Performance Smoothing: Reduces noise in accuracy calculations
Traditional Settings
SuperTrend: Period and multiplier adjustment
Moving Average: Type selection and length
VWAP: Source customization
Linear Regression: Length and source options
Signal Configuration
Threshold Levels: Customizable buy/sell trigger points
Signal Smoothing: Reduces false signals
Manual Override: Option to use fixed weights instead of ML
📱 Visual Features
Signal Line Display
Dynamic color coding based on signal strength
Threshold level lines for clear entry/exit points
Background coloring for quick market sentiment assessment
Performance Table
Real-time accuracy metrics for each indicator
Current weight distribution showing ML optimization
Performance comparison between ML and equal weights
Learning progress indicator
Signal Shapes
🚀 Strong Buy: Large green triangle with text
📈 Buy: Standard green triangle
📉 Sell: Standard red triangle
💥 Strong Sell: Large red triangle with text
🎓 Best Practices & Usage Tips
For Beginners
Start with default ML settings
Allow 100+ bars for proper learning
Focus on Strong Buy/Sell signals initially
Monitor the performance table to understand ML adaptation
For Advanced Traders
Adjust learning rate based on market volatility
Customize prediction horizon for your trading timeframe
Fine-tune threshold levels for your risk tolerance
Combine with additional confirmation indicators
Recommended Settings by Timeframe
Scalping (1m-5m): Learning Period: 50, Prediction Horizon: 3
Day Trading (15m-1h): Learning Period: 100, Prediction Horizon: 5
Swing Trading (4h-1D): Learning Period: 200, Prediction Horizon: 10
🔔 Alert System
Set up comprehensive alerts for:
Strong Buy/Sell signals with maximum consensus
Regular Buy/Sell signals for standard entries
Custom message templates with price and signal strength
Email, SMS, and webhook compatibility
⚠️ Important Notes
Learning Period: Allow sufficient data for ML optimization (minimum 50 bars recommended)
Market Conditions: Performance may vary during high volatility or trending vs. ranging markets
Backtesting: Test thoroughly on historical data before live trading
Risk Management: Always use proper position sizing and stop losses
🏆 Why Choose This Indicator?
✅ Adaptive Intelligence: Unlike static indicators, this tool evolves with market conditions
✅ Transparent Performance: See exactly how well each component is performing
✅ Comprehensive Analytics: Make informed decisions with detailed performance metrics
✅ Professional Grade: Developed by experienced traders for serious market participants
✅ Continuous Innovation: Regular updates and improvements based on user feedback
📊 Performance Tracking
The indicator provides unprecedented transparency into its decision-making process:
Individual indicator accuracy rates
Weight evolution over time
Improvement metrics vs. baseline
Learning curve visualization
Transform your trading with the power of adaptive machine learning. Let the market data guide your strategy optimization automatically!
Tags: Machine Learning, AI Trading, Composite Signal, Multi-Indicator, Adaptive Algorithm, Signal Generation, Trading Automation, Technical Analysis
Category: Trend Following, Oscillators, Signal Generators
Hide Out“Hide Out is a leading quant trading indicator that identifies the trending direction, calculates the base and target prices, and plots the Day Opening Range with labels for structured intraday analysis.
GME Cycle Predictor# 🚀 GME Cycle Predictor - Advanced Technical Analysis Tool
**Comprehensive GameStop (GME) cycle tracking indicator based on historical patterns and market mechanics.**
## 📊 **What This Indicator Does:**
- Tracks **147-day quarterly cycles** from the January 28, 2021 squeeze
- Monitors the **1704-day major cycle** (the theoretical "big one")
- Identifies **T+35 FTD settlement periods** for forced buying pressure
- Marks **quarterly OPEX** and **swap roll dates**
- Provides **real-time buy/sell recommendations** based on cycle timing
## 🎯 **Key Features:**
### **Visual Cycle Markers:**
- 🔴 **Red Circles**: 147-day quarterly cycles
- 🟡 **Yellow Diamonds**: 1704-day major cycle (CRITICAL)
- 🟢 **Green Squares**: T+35 FTD settlement dates
- 🟠 **Orange Triangles**: Quarterly OPEX periods
- 🟣 **Purple X's**: Swap roll periods
### **Smart Trading Signals:**
- **🚀 MAJOR BUY**: 10+ days before 1704-day cycle
- **📈 BUY ZONE**: 5-10 days before 147-day cycle
- **💚 FTD BUY**: 2-5 days before T+35 settlement
- **📉 SELL ZONE**: Day of cycle completion
- **⏳ WAIT**: No active signals
## 📈 **How to Use:**
### **For Swing Trading:**
1. **BUY** when cheat sheet shows active buy signals
2. **SELL** on cycle completion days
3. **HODL** through the 1704-day major cycle
### **For Long-term Investors:**
- Monitor the **1704-day countdown** (major cycle theory)
- Accumulate during **confluence periods** (multiple cycles aligning)
- Use **147-day cycles** for entry/exit timing
## 🔧 **Technical Foundation:**
- Based on **Fail-to-Deliver (FTD)** settlement mechanics
- **Quarterly swap theory** and institutional obligations
- **Options expiration (OPEX)** pressure points
- **Historical pattern recognition** from 2021 squeeze
## ⚡ **Real-Time Features:**
- **Live countdown timers** to next major cycles
- **Dynamic trading recommendations**
- **Confluence detection** when multiple cycles align
- **Volume confirmation** for signal validation
- **Clean visual design** with minimal chart clutter
## 🎯 **Perfect For:**
- GME traders following cycle theory
- Technical analysts studying market mechanics
- Swing traders using institutional obligation cycles
- Anyone tracking the theoretical "MOASS" timing
## ⚠️ **Important Notes:**
- This indicator is based on **theoretical cycle patterns**
- Past performance does not guarantee future results
- Always use proper risk management
- The 1704-day cycle is **unproven theory** - trade responsibly
- Best used in conjunction with other technical analysis
## 🚀 **Special Feature:**
The **1704-day major cycle** countdown tracks the theoretical "Mother of All Short Squeezes" (MOASS) timing, calculated from the January 28, 2021 squeeze peak. This is the cycle many GME theorists believe will trigger the ultimate price movement.
---
**Perfect for both beginners and advanced traders who want to incorporate GME cycle theory into their technical analysis toolkit.**
*Disclaimer: This is a theoretical analysis tool based on community research. Not financial advice. Trade at your own risk.*
AtlasTrend - Flat Squueze SignalsSummary
AtlasTrend — Clean Entries + Flat Signals is a compact, multi-filter indicator that detects (1) potential horizontal / “flat” market regimes and (2) discrete Long / Short entry signals outside those flat regimes. It is designed to be visually minimal (only rising-edge signals and a small fixed table) and to avoid repeated signals on consecutive bars. The indicator intentionally exposes only a few critical tuning parameters to the user to reduce overfitting and configuration mistakes.
Key outputs
Table (top-right) — shows current pair, current state (FLAT or TREND), current rising-edge signal (LONG, SHORT, or NONE), and the flatScore (0–1).
Long Signal — green upward triangle plotted only once on the bar where conditions switch from false→true (rising-edge).
Short Signal — red downward triangle plotted only on rising-edge.
Potential Flat Start — small orange dot above bar on rising-edge of a detected flat-start condition.
Potential Flat End — small blue dot above bar on rising-edge of a detected flat-end condition.
Background shading — light shading while indicator is in a detected inFlat state (optional and subtle).
What it measures (methodology, high level)
The indicator builds a single composite score called flatScore (0–1) that expresses how “flat / squeezed / indecisive” the market is at the moment. flatScore is an average of several independent components:
TRIX stability — an ultra-smoothed momentum change (user’s original TRIX-based logic). Low TRIX change increases flatScore.
Volatility / ATR ratio — normalized ATR(close) — low volatility increases flatScore.
Momentum neutrality — RSI and CCI being near neutral ranges increases flatScore.
Trend weakness — price close’s dispersion from a short SMA; small dispersion means weak trend → higher flatScore.
Kernel tightness — rolling standard deviation based tightness metric — small rolling stdev → higher flatScore.
These components are combined using fixed internal weights (deliberately not exposed) into flatScore.
Flat detection (potential flat start) requires flatScore >= flatThreshold for consecBarsToStart consecutive bars (rising-edge triggers). Flat ends when flatScore drops below ~90% of the threshold.
Entry signals (Long / Short) are generated only if:
Market is not in inFlat state, and
A compact trend/momentum filter passes (fast EMA vs slow EMA, price vs EMA, RSI threshold, and a minimum volatility filter), and
The condition appears as a rising edge (so a signal is emitted only once per entry occurrence).
This design intentionally avoids repeated signals on nearly every bar and reduces repaint risk by using rising-edge logic.
Inputs exposed to user
flatThreshold (float) — the composite score threshold above which the indicator considers the market “flat.” Default sensible value supplied.
Lower → more flats detected (sensitive).
Higher → fewer flats (conservative).
consecBarsToStart (int) — how many consecutive bars must meet threshold to produce a potential flat start. Increasing reduces false positives.
tradeAggressiveness (float) — scales the internal EMA lengths used for entry logic (0.5 conservative → 1.5 aggressive). Higher values produce shorter EMAs and more frequent signals.
All other internal weights and thresholds are fixed to keep the UX simple and reduce overfitting.
How to use (practical steps)
Recommended timeframe: daily (1D) for BTC; works on other timeframes but behavior changes. For intraday testing, treat thresholds/expectations accordingly.
Load indicator on the chart (BTCUSDT, 1D recommended) and leave defaults initially.
Observe the top-right table:
State = FLAT → avoid placing breakout entries; treat as consolidation.
Signal = LONG/SHORT → new entry opportunity (rising-edge).
flatScore gives a continuous measure of flatness.
Confirm signals with your own rules (volume, orderflow, structural support/resistance) — indicator is a decision tool, not an automatic executor.
Stop / risk management: use ATR-based stops (e.g., 1.5–3× ATR), position-sizing rules and max-drawdown limits. Never rely on a single indicator.
Backtest visually / manually: scroll historical data, inspect long/short signals and flat start/ends; mark false positives and tune tradeAggressiveness modestly if needed.
Example parameter guidance
Conservative (fewer trades, fewer false signals):
flatThreshold = 0.78, consecBarsToStart = 4, tradeAggressiveness = 0.8
Default / Balanced:
flatThreshold = 0.72, consecBarsToStart = 3, tradeAggressiveness = 1.0
Aggressive (more signals):
flatThreshold = 0.65, consecBarsToStart = 2, tradeAggressiveness = 1.3
Always retest after changing.
Alerts & automation
The indicator exposes alerts for Long, Short, Potential Flat Start, and Potential Flat End (rising-edge only).
When creating alerts in TradingView, choose “Once Per Bar Close” if you want confirmation by bar close, or “Once Per Bar” for earlier notification (bar close reduces repaint risk).
Use the alert message templates provided by the script for easy automation.
Repainting and signal stability
Signals are emitted only on rising-edges (condition from false → true) so a given entry is plotted once.
For automation, prefer bar-close confirmation (alert “Once Per Bar Close”) to avoid acting on conditions that might reverse intra-bar.
The flatScore itself is calculated with closed-bar indicators (EMA, ATR, RSI, etc.) and rolling stats — stable and deterministic.
The indicator intentionally keeps internal weights fixed to simplify reproducibility and avoid parameter bloat.
Limitations & honest warnings
No indicator can predict market moves with 100% accuracy. This tool reduces noise and false entries but does not guarantee profits.
Market regimes change — periodic retuning or revalidation on fresh data is necessary.
Do not use this indicator as the sole basis for high-frequency automated trading without robust money management and slippage modeling.
Suggested workflow for BTC 3-year analysis
Add indicator to BTCUSDT daily chart
Run through historical data and log:
Total Long signals, Total Short signals
Average run length after entry (bars)
False signal examples (manually tag 5–10)
Adjust tradeAggressiveness to reduce false signals if necessary (reduce to be more conservative).
If flat detections are too frequent, increase flatThreshold or consecBarsToStart.
Diamond-Triangle Strategy - Dynamic Trailing v3added more options of edits and lower high higher low exit logic, with .09 ema cloud rather then .1 sep for chop