Ornstein Uhlenbeck Z score1 ORNSTEIN–UHLENBECK Z-SCORE (SPREAD)
This is the main indicator of the series and is typically placed in a separate lower panel.
WHAT IT DOES
The indicator builds a spread between two assets and evaluates how far the current spread is from its long-term equilibrium.
The result is expressed as a Z-score based on an Ornstein–Uhlenbeck type mean-reverting process.
HOW IT WORKS
• The user selects a second asset in the settings
• A spread between the two assets is calculated (price difference or log price spread)
• The spread is modeled as a mean-reverting process over a rolling window
• A Z-score is calculated to measure deviation from equilibrium
Trading signals are generated when the Z-score reaches extreme values and exits when it returns to equilibrium.
HOW TO USE
This indicator does NOT generate signals to buy or sell a single asset.
It generates signals for a paired, hedged position.
• Long signal means long the first asset and short the second
• Short signal means short the first asset and long the second
The trader is always trading the spread, not the market direction.
RECOMMENDED TO USE WITH
• OU Signals Overlay for visualizing trades on the main chart
• Correlation Stability indicator to filter weak or unstable pairs
Indicadores e estratégias
Macro Clock Overlap 166/186/208) Anchored (v6)Macro Clock Overlap is a time-based market structure overlay designed to visualize cyclical pressure zones created by the interaction of three independent macro clocks:
166 weeks — Momentum / expansion cycle (anchored to a major weekly RSI peak)
186 weeks — Capitulation / contraction cycle (anchored to a weekly RSI < 30 trough)
208 weeks — Bitcoin halving cycle (protocol-defined supply shock)
Rather than attempting to predict price, this indicator highlights periods of structural instability where multiple cycles overlap — conditions that historically coincide with increased volatility, regime shifts, and non-linear market behavior.
How it works
Each cycle is projected forward and backward from a fixed anchor date.
Around each projected event, a configurable time window (± weeks) is applied.
For every bar, the script computes an Overlap Score (0–3):
0 — No active macro cycles
1 — Single cycle influence
2 — Reinforced cycle overlap (heightened instability)
3 — Rare full convergence (maximum structural stress)
The background shading reflects the current overlap score, and optional vertical lines mark projected cycle events for each clock.
What this indicator is (and isn’t)
✔ A probabilistic timing framework
✔ A way to identify volatility expansion and transition zones
✔ Useful for risk management, position sizing, and expectation setting
✘ Not a price prediction tool
✘ Not a buy/sell signal generator
✘ Not curve-fitted to price action
This tool is best used in conjunction with price structure, trend, and momentum analysis.
Customization
Anchor dates can be adjusted from the settings panel
Cycle lengths and window sizes are fully configurable
Visuals (background shading, vertical lines, table) can be toggled on/off
Designed for weekly charts, but works on any timeframe with macro intent.
Philosophy
Markets are not governed by a single clock.
They evolve through the interaction of multiple rhythms — internal momentum, stress accumulation, and external shocks.
Macro Clock Overlap makes those rhythms visible.
Money Management Trade Data BoxTrade Data Box - Money Management Indicator
Overview
This indicator provides real-time position sizing and risk management calculations directly on your chart. It displays a clean data box that helps traders maintain disciplined risk management by automatically calculating the optimal number of contracts to trade based on ATR (Average True Range) volatility measurements.
What It Does
The indicator solves a critical problem that many traders face: determining the correct position size before entering a trade. Instead of manually calculating how many contracts to trade based on your risk tolerance and stop loss distance, this tool does all the math for you in real-time.
Key Features
ATR-Based Stop Loss & Target Calculation
Uses the Average True Range to set dynamic stop losses and profit targets that adapt to current market volatility
ATR multipliers allow you to customize how conservative or aggressive your stops and targets are (reasonable reward-to-risk ratio).
Automatic Position Sizing
Calculates exactly how many contracts you should trade to risk a specific dollar amount
Takes into account your defined risk per trade, the instrument's tick value, and the calculated stop loss distance
Updates continuously as market conditions change
Visual Data Box
Displays four critical pieces of information:
Target (ticks): How far your profit target is from entry
Stop (ticks): How far your stop loss should be placed
Risk Amount: Your fixed dollar risk per trade
Contracts: The calculated number of contracts to trade
Customization Options
Adjustable table size for different screen sizes
Six position options to place the box wherever you prefer on your chart
Optional "real close" dots to verify you're seeing actual closing prices if you are using Heiken Ashi Candles.
How Traders Use This
Set Your Risk Parameters: Input your maximum dollar risk per trade (e.g., $200) and the tick value for your instrument (e.g., $0.50 for Micro NQ (MNQ) futures)... verify your tick value before trading to ensure your risk management is correct.
Adjust ATR Settings: Customize the ATR length and multipliers based on your trading style and the instrument's characteristics.
Read the Box Before Trading: Before entering any trade, check the data box to know:
Where to place your stop loss
Where to set your profit target
How many contracts to trade to maintain consistent risk
Execute with Confidence: Enter your trade knowing you're risking exactly the amount you're comfortable with, regardless of how volatile the market is
Why This Matters
Professional traders know that position sizing is more important than entry timing. This indicator ensures you're never over-leveraged during volatile periods or under-leveraged during quiet markets. By basing calculations on ATR, your stops and targets automatically adjust to current market conditions, helping you maintain consistent risk across all trades.
Futures: NQ Overnight Range (% of Daily ATR)## Futures: NQ Overnight Range (% of Daily ATR) — ORB Trading Guide
### What this indicator does
This indicator is built for **NQ / MNQ futures** and is meant to support **Opening Range Breakout (ORB)** trading.
Because futures trade nearly 24 hours, a lot of important movement happens during **Asia + London**. This script measures the **Overnight Range** from **18:00 to 09:30** (exchange time), then compares it to the market’s **typical full-day movement** using **Daily ATR(14)**.
The goal is simple:
> **Before the open, decide whether the day is more likely to behave like a “chop day” or an “expansion day,” and then choose the ORB style that matches.**
---
## Key terms (plain English)
### Daily ATR(14)
ATR is the average daily movement over the last 14 days.
Think of it as:
> “On a normal day, NQ tends to move about *X* points.”
---
### Overnight Range (18:00–09:30)
This is the distance between the **overnight high** and **overnight low** from 18:00 to 09:30.
Think of it as:
> “How much NQ already moved before the cash open.”
---
### Overnight Range % of ATR
This is the “volatility meter” for the day:
It answers:
> “How much of a normal day’s movement already happened overnight?”
---
## How to interpret the Regime label
This script classifies the day into one of three “regimes”:
### **CHOP-LEANING** (Overnight Range < 25% of Daily ATR)
Overnight was quiet. The open is more likely to be:
* range-bound
* full of fakeouts
* slower follow-through
### **NEUTRAL** (25%–50%)
Normal overnight activity. Either outcome is possible:
* trend or chop
* you must let the open confirm it
### **EXPANSION-LEANING** (Overnight Range > 50%)
Overnight was very active. The open is more likely to:
* move faster
* expand range quickly
* have stronger directional pushes (or sharp swings)
**Important:** Expansion does not guarantee a clean trend. It means **movement is more likely**.
---
# How I use this indicator with ORB (my rules)
This indicator is not a buy/sell signal by itself.
I use it to decide **which ORB style to trade**.
## Step 1 — Check the “Regime” before the open
* If the indicator reads **EXPANSION-LEANING**, I treat it like a momentum environment.
* If the indicator reads **CHOP-LEANING**, I treat it like a confirmation environment.
* If it reads **NEUTRAL**, I stay selective and let price action confirm.
---
## Step 2 — ORB Execution Rules
### ✅ If **EXPANSION-LEANING** (momentum day)
**Goal:** Catch the move early and avoid missing the breakout.
**My ORB plan:**
* Build my opening range using the **5-minute ORB**
* Enter on a **break of the ORB level**
* Use the **1-minute timeframe** for the actual entry trigger
**How I confirm the break:**
* I want a clean break through the ORB level (not just a wick touch)
* If price snaps immediately back inside the ORB, I avoid chasing
This approach fits expansion days because the market can move quickly and waiting for perfect retests can cause you to miss the push.
---
### ✅ If **CHOP-LEANING** (confirmation day)
**Goal:** Avoid fakeouts and only enter when the break proves itself.
**My ORB plan:**
* Build my opening range using a **15-minute ORB**
* I do **not** enter on the first break
* I wait for a **break and retest**
* Then I use the **5-minute timeframe** to confirm the retest holds before entry
This fits chop days because breaks fail more often, so I require confirmation before committing.
---
### ✅ If **NEUTRAL**
**Goal:** Reduce low-quality trades.
**My ORB plan:**
* Treat it as “wait and see”
* Only take the break if price shows strong conviction (hold outside ORB)
* If price is whipping in and out of the range, I skip the trade
---
## Best practices
* This indicator works best on **1m / 5m / 15m charts** so the overnight high/low is captured accurately.
* Times are based on the symbol’s **exchange time**.
* Use proper risk management—futures can move fast, especially on expansion days.
---
## Disclaimer
This script is for educational purposes only and is not financial advice. Futures trading carries significant risk. Always use risk management and test any approach before trading live.
---
Bar Count & EMA & PatternsA clean and practical charting tool designed for intraday traders, inspired by Al Brooks' Price Action methodology.
Key Features:
📊 Bar Count
Displays only during RTH (08:30-15:00)
Supports 3-minute and 5-minute charts
Shows bar 1 and multiples of 3 (3, 6, 9, 12...)
Key levels highlighted: 18, 48, 81 (red), multiples of 12 (sky blue), bar 6 (light green)
Optimized for China Securities Index Futures — 3-minute chart displays all 81 bars within RTH
📈 EMA
Default 20-period EMA
Customizable length, source, and color
🔍 Pattern Recognition
Auto-detects Inside Bar (i) and Outside Bar (o)
Supports complex patterns: II, OO, IOI, OIO
Consecutive patterns extend automatically (e.g., iii, ooo)
Design Philosophy: Inspired by Al Brooks' Price Action concepts, this indicator reduces chart noise and displays only essential information to support clearer trading decisions.
CTR Dual Custom MAs + PullbacksUsing this is helping me get in on the pullbacks by watching my higher frame charts and exciting on the lower timeframes. Those interested in learning my trading strategy using this indicator reach out and message back and I will connect with you through my Discord channel. It's free so no worries there.
HMA ZXZ//@version=5
// 显式指定 scale 绑定到价格轴
indicator("HMA 趋势提醒指标 - 织心者优化版", overlay=true, scale=scale.none)
// --- 输入参数 ---
hma_length = input.int(20, "HMA 周期长度", minval=1)
src = input(close, "价格源")
show_labels = input.bool(true, "显示买卖标签")
// --- HMA 核心算法 ---
hma_func(source, length) =>
wma_1 = ta.wma(source, math.floor(length / 2))
wma_2 = ta.wma(source, length)
ta.wma(2 * wma_1 - wma_2, math.floor(math.sqrt(length)))
hma_value = hma_func(src, hma_length)
// --- 趋势与颜色判断 ---
is_up = hma_value > hma_value
line_color = is_up ? color.new(#00ff08, 0) : color.new(#ff0055, 0)
// 绘制 HMA 主线
plot(hma_value, title="HMA 主线", color=line_color, linewidth=3)
// --- 信号逻辑 ---
long_signal = is_up and not (hma_value > hma_value )
short_signal = not is_up and (hma_value > hma_value )
// --- 视觉标注 ---
plotshape(long_signal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="看多拐点")
plotshape(short_signal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="看空拐点")
if show_labels
if long_signal
label.new(bar_index, low, "B", color=color.green, textcolor=color.white, style=label.style_label_up, size=size.tiny)
if short_signal
label.new(bar_index, high, "S", color=color.red, textcolor=color.white, style=label.style_label_down, size=size.tiny)
// 警报
alertcondition(long_signal, title="HMA 向上", message="HMA 转多")
alertcondition(short_signal, title="HMA 向下", message="HMA 转空")
Level 1 Gold - MAs & BiasLevel 1 Gold - MAs & Bias
A clean trend bias indicator designed for the Level 1 Gold trading strategy.
Features:
EMA 5 (Orange) - Fast exponential moving average for momentum confirmation
SMA 21 (Blue) - Slow simple moving average for trend direction
Trend Bias Detection - Tracks the last EMA5/SMA21 crossover to determine trade direction:
EMA5 crosses ABOVE SMA21 → "BUYS ONLY" (only take long trades)
EMA5 crosses BELOW SMA21 → "SELLS ONLY" (only take short trades)
Session Filter - Highlights invalid trading sessions (default: 06:00-16:00 UK time, avoids Monday AM and Friday PM)
Crossover Markers - Green Circle (bullish cross), Red Circle (bearish cross)
How to Use:
Wait for an EMA5/SMA21 crossover to establish bias
Only take trades in the direction of the bias
Avoid trading during shaded (invalid) session times
Look for breakouts across your horizontal support/resistance levels that align with the bias
Settings:
Moving average lengths (default: EMA 5, SMA 21)
Session times and filters (customizable)
Toggle visuals on/off
Adjustable colors
Best Used On: 1H timeframe for Gold (XAUUSD)
stelaraX - Auto FibonaccistelaraX – Auto Fibonacci
stelaraX – Auto Fibonacci is an automatic Fibonacci plotting indicator that detects recent pivot highs and pivot lows and draws Fibonacci retracement and extension levels across the latest swing range. The script updates dynamically whenever a new pivot is confirmed, providing an always-current Fibonacci map without manual drawing.
For advanced AI-based chart analysis and automated Fibonacci interpretation, visit stelarax.com
Core logic
The indicator detects swing pivots using a user-defined pivot lookback:
* pivot highs are detected using pivot high confirmation
* pivot lows are detected using pivot low confirmation
When a new pivot is confirmed and both a recent high and low are available, the script:
* defines the swing range between the latest pivot high and pivot low
* draws Fibonacci levels across that range
* extends the levels forward by a configurable number of bars
The plotted level set includes retracements and extensions:
* -0.618 and -0.272
* 0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0
* 1.272 and 1.618
Extensions can be enabled or disabled via a dedicated setting.
Visualization
Fibonacci levels are plotted as horizontal lines and labeled with:
* the Fibonacci ratio
* the corresponding price value
Colors are assigned based on level type:
* 0 and 1 levels use a dedicated highlight color
* 0.5 uses a key level color
* standard retracement levels use a base fib color
* extension levels use a separate extension color
When a new pivot forms, the indicator clears the previous Fibonacci drawings and redraws the full set to keep the chart clean and current.
Use case
This indicator is intended for:
* automatic Fibonacci retracement mapping on the latest swing
* identifying potential reaction levels for pullbacks and continuations
* projecting extension targets beyond the current range
* level-based confluence with structure, liquidity, and zones
* multi-timeframe Fibonacci alignment
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
RSI(5) on RSI(14)RSI(5) on RSI(14)
This indicator is displayed in a separate pane and works on all timeframes.
It combines a classic RSI with a secondary RSI calculated on the RSI values themselves, allowing deeper analysis of momentum and internal strength.
Indicator Logic
The indicator consists of two components:
RSI (period 14) calculated from price data (default: Close).
RSI (period 5) calculated on the values of RSI(14), equivalent to Previous Indicator’s Data in MetaTrader.
This structure helps to:
identify overbought and oversold zones using the primary RSI,
observe acceleration, deceleration, and momentum shifts inside the RSI itself using the secondary RSI.
Visualization
RSI(14) is plotted as a configurable colored line.
RSI(5) on RSI(14) is plotted as a thin black line on top of the main RSI.
The indicator scale is fixed between 0 and 100.
Levels
20 and 80 — configurable oversold and overbought levels:
adjustable values,
customizable color,
line width,
line style (solid, dashed, dotted).
50 level:
black,
thin,
dashed,
acts as a mid-level equilibrium reference.
Inputs
Users can adjust:
RSI(14) period,
RSI(5) period,
price source for RSI(14),
colors and line widths,
level values and styles for 20 / 80.
Use Cases
This indicator can be used for:
momentum and strength analysis,
detecting internal RSI momentum shifts,
trend confirmation and filtering,
standalone oscillator analysis or as part of a larger trading system.
stelaraX - Supply & Demand ZonesstelaraX – Supply & Demand Zones
stelaraX – Supply & Demand Zones is a price action indicator designed to automatically draw supply and demand zones based on pivot structure and candle confirmation. The script highlights potential institutional reaction areas and extends zones forward for easy planning and level-based analysis.
For advanced AI-based chart analysis and automated zone interpretation, visit stelarax.com
Core logic
The indicator detects zones using pivot logic with a user-defined lookback period.
Supply zones are created when:
* a pivot high is confirmed
* the candle at the pivot reference point is bearish (close below open)
Demand zones are created when:
* a pivot low is confirmed
* the candle at the pivot reference point is bullish (close above open)
Zone boundaries are defined using the pivot candle range:
* supply zone uses the pivot high as the top and the candle body high as the bottom
* demand zone uses the pivot low as the bottom and the candle body low as the top
Visualization
The script draws zones directly on the chart using extended boxes:
* supply zones are displayed in red tones
* demand zones are displayed in green tones
Each zone is extended forward by a configurable number of bars to keep the level visible for future price interaction. Zone colors and border styles are fully customizable.
The indicator maintains a clean chart by limiting the total number of active zones for both supply and demand.
Use case
This indicator is intended for:
* identifying key supply and demand reaction zones
* level-based trading and confluence analysis
* planning entries and exits around structural areas
* mapping potential reversal and continuation locations
* multi-timeframe zone tracking
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX - Donchian BreakoutstelaraX – Donchian Breakout
stelaraX – Donchian Breakout is a breakout-focused indicator based on the Donchian Channel concept. It identifies bullish and bearish breakouts when price closes outside the previous high–low range, providing clear and rule-based breakout signals.
For advanced AI-based chart analysis and automated breakout evaluation, visit stelarax.com
Core logic
The indicator calculates a Donchian Channel using a user-defined lookback period:
* upper band is the highest high of the previous period
* lower band is the lowest low of the previous period
* middle line represents the midpoint of the channel
Breakout conditions are defined as:
* bullish breakout when price closes above the upper band
* bearish breakout when price closes below the lower band
Using the previous period values avoids repainting and ensures confirmed breakout signals.
Visualization
The script plots:
* upper and lower Donchian Channel boundaries
* a midpoint line for range context
* a filled channel area to visualize the active range
Breakout signals are marked directly on the chart:
* upward triangle for bullish breakouts
* downward triangle for bearish breakouts
All colors are fully customizable.
Alerts
Alert conditions are included for:
* bullish Donchian breakout
* bearish Donchian breakout
Alerts reference the active ticker and trigger only on confirmed breakout conditions.
Use case
This indicator is intended for:
* breakout and trend-following strategies
* identifying range expansions
* systematic Donchian channel trading
* momentum-based entry signals
* multi-timeframe breakout analysis
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX - Donchian ChannelstelaraX – Donchian Channel
stelaraX – Donchian Channel is a classic price channel indicator designed to track market extremes over a defined lookback period. The indicator highlights the highest high and lowest low, providing a clear view of price range, breakout levels, and trend strength.
For advanced AI-based chart analysis and automated range interpretation, visit stelarax.com
Core logic
The indicator calculates the Donchian Channel using a user-defined period:
* upper band represents the highest high over the selected period
* lower band represents the lowest low over the selected period
* middle line represents the midpoint between upper and lower bands
This structure allows traders to quickly identify range boundaries and directional bias.
Visualization
The script plots:
* the upper Donchian Channel line
* the lower Donchian Channel line
* a central midpoint line
The area between the upper and lower bands can be filled with a semi-transparent color to clearly visualize the active trading range. All colors are fully customizable.
Use case
This indicator is intended for:
* breakout and trend-following strategies
* identifying support and resistance ranges
* volatility and range expansion analysis
* channel-based trade management
* multi-timeframe range evaluation
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX - Bollinger BandsstelaraX – Bollinger Bands
stelaraX – Bollinger Bands is a classic volatility-based indicator designed to visualize price dispersion around a moving average. The script plots the Bollinger Bands directly on the chart, allowing traders to assess volatility, potential mean reversion zones, and dynamic support and resistance levels.
For advanced AI-based chart analysis and automated volatility interpretation, visit stelarax.com
Core logic
The indicator calculates Bollinger Bands using three core components:
* a simple moving average as the basis line
* an upper band calculated by adding a multiple of standard deviation
* a lower band calculated by subtracting a multiple of standard deviation
The period length and standard deviation multiplier are fully configurable, allowing adaptation to different markets and timeframes.
Visualization
The script plots:
* the basis moving average line
* the upper Bollinger Band
* the lower Bollinger Band
The area between the upper and lower bands can be filled with a semi-transparent color to clearly highlight the active volatility range. All colors are customizable for optimal chart integration.
Use case
This indicator is intended for:
* volatility analysis and expansion or contraction detection
* identifying overextended price conditions
* mean reversion and breakout strategies
* dynamic support and resistance analysis
* multi-timeframe volatility assessment
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX - Moving AveragestelaraX – Moving Average
stelaraX – Moving Average is a flexible moving average indicator that allows switching between multiple MA calculation types while keeping a clean and minimal chart appearance. The indicator is designed for trend identification, dynamic support and resistance, and general market bias analysis.
For advanced AI-based chart analysis and automated trend evaluation, visit stelarax.com
Core logic
The indicator calculates a single moving average based on the selected type:
* Simple Moving Average (SMA)
* Exponential Moving Average (EMA)
* Weighted Moving Average (WMA)
* Volume Weighted Moving Average (VWMA)
* Running Moving Average (RMA)
The moving average is calculated using a user-defined period and price source, allowing full control over responsiveness and sensitivity.
Visualization
The script plots one moving average line directly on the chart:
* adjustable moving average type
* configurable period length
* selectable price source
* customizable line color
* fixed line width for clear visibility
The minimal design ensures an uncluttered chart and seamless combination with other indicators.
Use case
This indicator is intended for:
* trend identification and confirmation
* dynamic support and resistance analysis
* moving average based trading strategies
* multi-timeframe trend alignment
* clean chart setups with minimal visual noise
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
15 min orb//@version=5
strategy("15min ORB Retest Strategy", overlay=true, default_qty_type=strategy.fixed, default_qty_value=2, initial_capital=50000, commission_type=strategy.commission.cash_per_contract, commission_value=2.50)
// ========== INPUTS ==========
entryLevel = input.string("Top/Bottom", "Entry Level", options= )
stopPoints = input.float(5.0, "Stop Loss (Points)", minval=0.1)
tpPoints = input.float(10.0, "Take Profit (Points)", minval=0.1)
// ========== TIME SETTINGS (Mountain Time = UTC-7 or UTC-6 depending on DST) ==========
// TradingView uses UTC, so adjust based on your MT offset
// For simplicity, using session strings. Adjust if needed for DST.
orbSession = "0600-0615:1234567" // 6:00-6:15 AM MT (adjust UTC offset as needed)
tradeSession = "0700-0730:1234567" // 7:00-7:30 AM MT
// ========== ORB BOX CALCULATION ==========
var float boxHigh = na
var float boxLow = na
var float boxMid = na
var bool boxSet = false
var bool tradeToday = false
var bool breakoutUp = false
var bool breakoutDown = false
// Detect ORB session (6:00-6:15 AM MT)
inOrbSession = not na(time(timeframe.period, orbSession, "America/Denver"))
if inOrbSession and not boxSet
boxHigh := high
boxLow := low
boxSet := true
else if inOrbSession and boxSet
boxHigh := math.max(boxHigh, high)
boxLow := math.min(boxLow, low)
// Calculate midpoint
if not na(boxHigh) and not na(boxLow)
boxMid := (boxHigh + boxLow) / 2
// Reset daily
if ta.change(time('D'))
boxSet := false
tradeToday := false
breakoutUp := false
breakoutDown := false
boxHigh := na
boxLow := na
boxMid := na
// ========== DRAW BOX ==========
var line topLine = na
var line bottomLine = na
var line midLine = na
if boxSet and not na(boxHigh)
if na(topLine)
topLine := line.new(bar_index, boxHigh, bar_index + 1, boxHigh, color=color.green, width=2)
bottomLine := line.new(bar_index, boxLow, bar_index + 1, boxLow, color=color.red, width=2)
midLine := line.new(bar_index, boxMid, bar_index + 1, boxMid, color=color.gray, width=1, style=line.style_dashed)
else
line.set_x2(topLine, bar_index)
line.set_x2(bottomLine, bar_index)
line.set_x2(midLine, bar_index)
// ========== BREAKOUT DETECTION ==========
inTradeSession = not na(time(timeframe.period, tradeSession, "America/Denver"))
// Breakout = 1m close outside box
if boxSet and not na(boxHigh) and not breakoutUp and not breakoutDown
if close > boxHigh
breakoutUp := true
if close < boxLow
breakoutDown := true
// ========== MIDPOINT INVALIDATION (with re-setup) ==========
if breakoutUp and close < boxMid
breakoutUp := false // Allow re-setup
if breakoutDown and close > boxMid
breakoutDown := false // Allow re-setup
// ========== RETEST & ENTRY LOGIC ==========
longCondition = false
shortCondition = false
if boxSet and inTradeSession and not tradeToday
// LONG: breakout up, retest top or midpoint
if breakoutUp
if entryLevel == "Top/Bottom" and close <= boxHigh and close >= boxHigh - 0.25
longCondition := true
if entryLevel == "Midpoint" and close <= boxMid and close >= boxMid - 0.25
longCondition := true
// SHORT: breakout down, retest bottom or midpoint
if breakoutDown
if entryLevel == "Top/Bottom" and close >= boxLow and close <= boxLow + 0.25
shortCondition := true
if entryLevel == "Midpoint" and close >= boxMid and close <= boxMid + 0.25
shortCondition := true
// ========== EXECUTE TRADES ==========
if longCondition
strategy.entry("Long", strategy.long)
strategy.exit("TP/SL", "Long", stop=close - stopPoints, limit=close + tpPoints)
tradeToday := true
if shortCondition
strategy.entry("Short", strategy.short)
strategy.exit("TP/SL", "Short", stop=close + stopPoints, limit=close - tpPoints)
tradeToday := true
// ========== PLOT SIGNALS ==========
plotshape(longCondition, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Long Entry")
plotshape(shortCondition, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Short Entry")
ATR Structure Trail Pro & Range Filter (v6)📌 ATR Structure Trail Pro & Range Filter (v6)
Multi-purpose trend-following and consolidation detection tool
🔍 Overview
This indicator combines structure pivots, an ATR-based trailing stop, range detection, and clean visual signals to identify trend shifts and potential trade zones.
It is designed for traders who want simple, clean structure reading without unnecessary chart noise.
This indicator does not guarantee profit and is intended for educational and analytical purposes only, serving as a visual aid for reading price action.
⚙️ Main Components
1️⃣ Structure Pivot Flip (Trend Change Detection)
The indicator uses Pivot High / Pivot Low structure to detect when price creates:
Higher High → BUY bias
Lower Low → SELL bias
When a structural flip occurs:
a green arrow appears (potential bullish setup)
or a red arrow appears (potential bearish setup)
These arrows are not trade signals, but visual markers highlighting a shift in market context.
2️⃣ ATR Trail Stop (Adaptive Trend Line)
The ATR trail line automatically adapts to market volatility:
green during bullish phases
red during bearish phases
The ATR multiplier determines how far the dynamic trail is placed relative to price.
The trail line is not a guaranteed exit level — it acts as a dynamic structural reference.
3️⃣ Range/Box Zones (Consolidation Filter)
When the indicator detects that price is entering a tight consolidation range based on ATR and recent volatility, it draws a box zone:
blue in bullish context
purple in bearish context
Range zones indicate low-risk/no-trade areas where entries are typically avoided according to price action logic.
🎯 Trading Logic (Non-Signaling)
This indicator is not a trading system.
It visually highlights:
✔ structure
✔ trend
✔ volatility
✔ consolidation
✔ potential reversals
Users make trading decisions independently of these visual elements.
🧩 Inputs & Customization
You can fully customize:
ATR length & multiplier
Pivot sensitivity
Box fill and border colors
ATR trail color, width, and style (solid/dashed/dotted)
Visibility of all components individually
The indicator works across all timeframes and instruments.
💡 How to Use
Use arrows as informational markers of structure change
Use the ATR trail as a dynamic guide for current trend
Use range boxes to avoid entries during consolidation
Combine it with your own price action analysis, EMA/Kijun lines, session opens, or volume levels
⚠️ Important Notes
This indicator provides no performance guarantees
Not financial advice or a trading signal
Users are responsible for their own testing and application
Intended strictly for educational and analytical use in compliance with TradingView’s rules
📬 Author Notes
If you find this indicator useful, feel free to leave a comment or suggestion for future improvements.
All inputs are open for expansion and further development.
TRADING BITE Supply Demand Marker V2.1This Indicator Automatically identifies key supply and demand candles and highlights potential reversal zones. Integrated volume analysis validates market moves, helping traders make more informed entry and exit decisions. Perfect for spotting high-probability trades and understanding market structure at a glance.
Features:
Highlights Supply & Demand zones automatically
Marks key reversal candles
Volume-based validation for stronger signals
Easy-to-read visual alerts for trading decisions
Disclaimer / No Liability Notice:
This indicator is provided for educational and informational purposes only. It does not guarantee profits or predict future market movements. Trading financial instruments involves substantial risk of loss, and you should only trade with money you can afford to lose.
By using this indicator, you acknowledge that you assume full responsibility for any trading decisions made based on its signals. The developer accepts no liability for any losses, damages, or financial consequences that may result from using this tool.
Always perform your own analysis and consider consulting a licensed financial advisor before making trading decisions. Past performance is not indicative of future results.
Livelli Psicologici tondi/mezzi tondi/ quartiliLivelli Psicologici tondi/mezzi tondi/ quartili
//Gabbo






















