The Vector Alignment Matrix (VAM) - Pivot ExitIndicator Description: The Vector Alignment Matrix (VAM) – Pivot Exit Edition
The Vector Alignment Matrix (VAM) is an institutional-grade technical analysis tool designed for TradingView. It operates as a trend-following confluence engine, ensuring that lower-timeframe execution only occurs when supported by the "Weight of the Market"—the high-timeframe trend.
By automating the "Top-Down Analysis" methodology, VAM removes trader subjectivity and provides a clear, mechanical framework for entries and exits based on market structure.
Core Mechanics
1. The Global Matrix (HTF Alignment)
The indicator continuously monitors three critical timeframes: the Weekly (W), Daily (D), and 4-Hour (4H).
It uses a price-relative-to-range calculation to determine if the trend is Bullish or Bearish.
A "Matrix Bias" is established only when at least two of these timeframes agree.
This bias acts as a safety switch: if the Matrix is BULLISH, the indicator will ignore all sell signals, and vice versa.
2. Vector Execution (Break of Structure)
Once a bias is confirmed, the VAM looks for a Break of Structure (BOS) on the chart you are actively viewing.
It identifies significant Pivot Highs and Pivot Lows.
A signal is generated when price closes beyond a pivot in the direction of the Matrix Bias. This represents the moment the market "reveals its hand," confirming that the high-timeframe momentum is being absorbed by the lower timeframe.
3. Dynamic Pivot-Targeting (The Exit)
Unlike standard indicators that use arbitrary math for targets, the VAM uses Organic Exits.
Take Profit (TP): The indicator identifies the previous significant pivot level (resistance for longs, support for shorts) and sets it as the target.
Stop Loss (SL): The protective stop is anchored to the most recent opposing pivot, protecting the trade behind a structural barrier.
週期
BTC Cycle Capitulation MapInstitutional macro framework to study leverage-driven Bitcoin bear market capitulation zones.
BTC Cycle Capitulation Map is an institutional research framework designed to visualize structural bear market bottom zones driven by leverage capitulation.
This model uses historical macro cycle anchors (2013, 2018, 2021, 2025) to project liquidation stress bands, with a focus on the 3x–2x leverage capitulation zone — historically aligned with Bitcoin macro cycle troughs.
The indicator is intended for macro cycle research and structural market analysis and is not designed as a short-term trading signal generator.
Key features:
• Institutional cycle anchor framework
• Leverage-driven capitulation zone visualization
• Historical and projected bottom bands
• Non-repainting, time-anchored structure
• Designed for BTC 1W macro analysis
This tool provides a structural framework to study long-term Bitcoin cycles and extreme downside risk regimes.
Future iterations may extend the framework to forward cycle projections.
Research purposes only. Not financial advice.
Alpha Beta Gamma with Volume# Alpha Beta Gamma with Volume
## Description
**Alpha Beta Gamma with Volume** is an advanced technical analysis indicator that combines the Alpha-Beta-Gamma (ABG) oscillator with sophisticated volume analysis. This powerful tool helps traders identify market trends, momentum, and volume-based signals simultaneously.
## Key Features
### 📊 Alpha-Beta-Gamma Oscillator
- **Alpha**: Measures the distance from the current price to the lowest price over the selected period
- **Beta**: Calculates the price range (highest - lowest) over the selected period
- **Gamma**: Normalized value showing the price position within the current range (0-1 scale)
### 📈 Advanced Price Configuration
- Multiple timeframe analysis
- Flexible price source selection (Open, High, Low, Close, or any average)
- Customizable ABG calculation length
### 🔍 Smart Volume Analysis
- Volume trend identification using moving averages
- Three-tier volume classification:
- **High Volume**: Volume ≥ 2x MA (Deep Blue Bull / Aqua Bear candles)
- **Low Volume**: Volume ≤ 0.5x MA (Light Blue Bull / Light Yellow Bear candles)
- **Strong Signal Volume**: Volume ≥ 1.5x MA (Violet Bull / Pink Bear candles)
- Bull/Bear candle color coding based on volume strength
### 🎯 Custom Range Levels (0-1 Range Divided into 8 Parts)
- 9 horizontal levels from 0 to 1 (each 1/8 apart)
- Psychological support/resistance zones
- Customizable line styles and labels
- Perfect for grid trading, breakout strategies, and level analysis
### 📊 Real-time Data Table
- Compact table displaying current ABG values
- Percentage change calculations
- Trend direction indicators
- Customizable position and size
### 🎨 Visual Customization
- Adjustable line styles (Solid, Dashed, Dotted)
- Customizable label sizes and colors
- Flexible transparency settings
- Multiple display options for all elements
## Usage Instructions
### Basic Settings:
1. **Strike Price Settings**: Select your preferred timeframe and price type
2. **ABG Parameters**: Adjust length for sensitivity (default: 37)
3. **Volume Analysis**: Configure volume thresholds based on your trading style
4. **Visual Style**: Customize colors, line styles, and labels to your preference
### Trading Signals:
- **Gamma Values**:
- 0-0.5: Oversold/Buying zone
- 0.5-1: Overbought/Selling zone
- **Volume Confirmation**: Use volume colors to confirm trend strength
- **Custom Levels**: Watch for price reactions at 1/8, 2/8, 4/8, 6/8, and 7/8 levels
### Recommended Configurations:
- **Scalping**: Length = 20-30, enable Alpha-Beta logic
- **Swing Trading**: Length = 40-50, use custom range levels
- **Position Trading**: Length = 50-100, focus on volume signals
## Technical Details
- **Version**: Pine Script v6
- **Author**: Nurbolat Zhan
- **Interface Language**: Kazakh (fully translated)
- **Required Components**: Built-in TradingView functions only
### Volume Thresholds Explained:
1. **High Volume** (≥ 2x MA): Significant institutional activity
2. **Low Volume** (≤ 0.5x MA): Consolidation or indecision periods
3. **Strong Signal** (≥ 1.5x MA): High-probability trade setups
## Important Notes
⚠️ **Disclaimer**:
- This is a technical analysis tool, not financial advice
- Always use proper risk management
- Combine with other indicators for confirmation
- Past performance doesn't guarantee future results
📈 **Best Practices**:
1. Use ABG for trend identification
2. Confirm with volume analysis
3. Watch for divergences between price and indicators
4. Use multiple timeframes for better context
---
**Motto**: "Precision in analysis, confidence in execution!"
*This indicator is specifically designed for traders who want to combine oscillator analysis with volume confirmation in a single, comprehensive tool.*
Gold Traders Shymkent# Gold Traders Shymkent
## Description
**Gold Traders Shymkent** is a professional ZigZag indicator designed specifically for traders from Kazakhstan. Based on the classic ZigZag indicator logic from MT4 platform, it identifies key trend points in price movements and displays them visually.
## Key Features
### 🎯 Core Functions:
- **ZigZag Analysis**: Identification of significant price highs and lows
- **Kazakh Labeling**: ЖЖ (Higher High), ЖТ (Higher Low), ТЖ (Lower High), ТТ (Lower Low) labels in Kazakh language
- **Flexible Settings**: Depth, Deviation, and Backstep parameters
- **Two Modes**: Repainting and non-repainting modes
### ⚙️ Configuration Parameters:
1. **ZigZag Settings**:
- Depth - reversal depth
- Deviation - minimum deviation percentage
- Backstep - backward step value
2. **Display Parameters**:
- Line thickness
- Bull/Bear colors
- Show/hide labels
- Toggle ЖЖ/ЖТ/ТЖ/ТТ markers
- Transparency for lines and labels
3. **Operation Modes**:
- Repainting mode (real-time updates)
- ZigZag line extension option
### 🔔 Alert System:
The indicator provides alerts for:
- New ЖЖ/ЖТ/ТЖ/ТТ points formation
- Direction changes (bull to bear or vice versa)
- Trend reversals
### Advantages:
- **Easy to Use**: Intuitive interface with Kazakh language settings
- **Flexibility**: Adaptable to different market conditions
- **Clarity**: Kazakh labeling convenient for local traders
- **Versatility**: Works on all timeframes
## Usage Instructions
### Basic Usage:
1. **Trend Identification**: Monitor main trend through ZigZag lines
2. **Support/Resistance Levels**: Use extremum points as support and resistance levels
3. **Reversal Points**: Identify trend change points
### Recommended Settings:
- **For volatile markets**: Depth = 12, Deviation = 5
- **For slow markets**: Depth = 20, Deviation = 8
- **To reduce whipsaws**: Backstep = 3
## Important Notes
⚠️ **Key Considerations**:
- The indicator may operate in repainting mode
- False signals possible on lower timeframes
- Adjust settings according to market conditions
- Use with other indicators for major trading decisions
## Technical Details
- **Author**: Based on Dev Lucem code, adapted to Kazakh language
- **Language**: Pine Script v5
- **Interface Language**: Kazakh
- **Required Libraries**: DevLucem/ZigLib/1
---
📊 **Gold Traders Shymkent** - A professional analysis tool specifically developed for Kazakhstani traders. The indicator combines accuracy with ease of use to assist in market decision making.
**Motto**: "Accuracy and reliability - the key to successful trading!"
Gold Traders Shymkent# Gold Traders Shymkent
## Description
**Gold Traders Shymkent** is a professional ZigZag indicator designed specifically for traders from Kazakhstan. Based on the classic ZigZag indicator logic from MT4 platform, it identifies key trend points in price movements and displays them visually.
## Key Features
### 🎯 Core Functions:
- **ZigZag Analysis**: Identification of significant price highs and lows
- **Kazakh Labeling**: ЖЖ (Higher High), ЖТ (Higher Low), ТЖ (Lower High), ТТ (Lower Low) labels in Kazakh language
- **Flexible Settings**: Depth, Deviation, and Backstep parameters
- **Two Modes**: Repainting and non-repainting modes
### ⚙️ Configuration Parameters:
1. **ZigZag Settings**:
- Depth - reversal depth
- Deviation - minimum deviation percentage
- Backstep - backward step value
2. **Display Parameters**:
- Line thickness
- Bull/Bear colors
- Show/hide labels
- Toggle ЖЖ/ЖТ/ТЖ/ТТ markers
- Transparency for lines and labels
3. **Operation Modes**:
- Repainting mode (real-time updates)
- ZigZag line extension option
### 🔔 Alert System:
The indicator provides alerts for:
- New ЖЖ/ЖТ/ТЖ/ТТ points formation
- Direction changes (bull to bear or vice versa)
- Trend reversals
### Advantages:
- **Easy to Use**: Intuitive interface with Kazakh language settings
- **Flexibility**: Adaptable to different market conditions
- **Clarity**: Kazakh labeling convenient for local traders
- **Versatility**: Works on all timeframes
## Usage Instructions
### Basic Usage:
1. **Trend Identification**: Monitor main trend through ZigZag lines
2. **Support/Resistance Levels**: Use extremum points as support and resistance levels
3. **Reversal Points**: Identify trend change points
### Recommended Settings:
- **For volatile markets**: Depth = 12, Deviation = 5
- **For slow markets**: Depth = 20, Deviation = 8
- **To reduce whipsaws**: Backstep = 3
## Important Notes
⚠️ **Key Considerations**:
- The indicator may operate in repainting mode
- False signals possible on lower timeframes
- Adjust settings according to market conditions
- Use with other indicators for major trading decisions
## Technical Details
- **Author**: Based on Dev Lucem code, adapted to Kazakh language
- **Language**: Pine Script v5
- **Interface Language**: Kazakh
- **Required Libraries**: DevLucem/ZigLib/1
---
Liquidity Raid VisualizationUpper and lower wicks can be understood as price sweeping liquidity above and below.
At first, I used to draw them manually as lines. Later, I thought: what if I coded it instead—wouldn’t that be more convenient?
That’s why this script exists. It’s only meant to help with visualization. It doesn’t mean that every downward sweep is valid or guaranteed to work.
Good luck to all traders.
上下影線 可以理解為 像上下 清掃流動性但我一開始適用手繪的方式呈線 後來我突然想說 如果我將他寫出來 會不會更方便 一點 所以才會出現 這個腳本 但他只是幫助你可視化並不代表一定 也不是說向下清掃了就一定有效等 加油各位交易者
ICT Tool-KitICT TOOL-KIT INDICATOR DESCRIPTION
This toolkit consolidates essential ICT market structure and price action tools into a single, clean indicator. Built for traders focused on session analysis, order block identification, and HTF confirmation through multiple timeframe perspectives.
WHAT IT DOES
The indicator tracks macro session ranges across Asia, London and NY trading hours, identifies fair value gaps at session opens, displays higher timeframe candle structure with Fibonacci retracement levels, and marks sweeps across selected timeframes. Non-RTH activity can be highlighted separately if needed. All tools are designed to operate cleanly alongside price action without cluttering the chart.
---
SECTION 1: MACRO CYCLES
The macro cycle section displays the high and low range for each trading session. These ranges represent where price moved during each region's primary trading window.
Max Timeframe (minutes)
- Controls which timeframes display the macro ranges
- Set to 5 minutes by default, macros won't show on 15m and higher
- Useful for filtering out higher timeframe noise when trading intraday
- Example: Set to 240 for 4h and below, 1440 for daily and below
Show Asia/London/NY Macro
- Toggle each session on or off
- Asia and London are off by default, NY is on
- Use these toggles based on what your strategy focuses on
Macro Cycles Timeframe
- Leave blank to use your chart's current timeframe
- Or lock to a specific timeframe for consistent range calculations
Range Area Transparency
- Controls how opaque the session boxes are
- Lower value = more visible, higher value = more transparent
- Default at 85 keeps them subtle in the background
Range Outline / Range Label
- Toggle the border of the boxes and the session name label on or off
UTC Offset
- Set your timezone offset from UTC
- Or enable "Use Exchange Timezone" to automatically detect
---
SECTION 2: FVG GENERAL
First Presented Fair Value Gaps are identified at the open of major sessions. These boxes mark where price moved but left a gap in the structure, creating inefficiency that price often returns to fill.
The indicator searches for FVGs during the NY Open (9:32-10:30), NY PM (1:32-2:30), and Weekly Open (6:02 PM-8:00 PM) windows. Detection is forced to the 1m timeframe for accuracy regardless of your chart timeframe.
Infinite Extension
- When enabled, FVG boxes extend infinitely to the right, following live price
- When disabled, boxes contract to 3 bars for a cleaner look while price moves past them
- Default is off to keep the chart clean
Max Total FVG Boxes
- Limits how many FVG boxes can exist on screen at once
- Default is 3, oldest boxes are deleted when limit is reached
FVG Label Size
- Controls the text size of the FVG labels
- Options: Tiny, Small, Normal, Large
NY Open (AM) / NY PM (1:30) / Weekly Open
- Each has its own color settings for the box and label text
- Adjust colors to match your preference or chart theme
---
SECTION 3: HTF CANDLE WITH FIBONACCI RETRACEMENT
This section displays candle structure from a higher timeframe on your current chart. Useful for understanding the larger move while trading smaller timeframes.
Show Candle
- Toggle the HTF candles on or off
Timeframe
- Select which timeframe the candles represent
- Options: 1m, 5m, 15m, 30m, 1h, 2h, 4h, Daily, Weekly, Monthly
Candles to Show
- How many HTF candles display on screen
- Default is 3, can be set up to 20
Bull Body / Bear Body / Bull Border / Bear Border / Wick Color
- Customize the appearance of the candles
- Standard white for bull, black for bear
Width / Offset Padding
- Width controls candle thickness
- Offset Padding is how far right the candles are positioned from the right edge
Show Label / Label Color / Size / Show Timer
- The label displays the timeframe at the top of the candle
- Timer shows hours and minutes until the candle closes
- Toggle either on or off as needed
---
FIBONACCI RETRACEMENT
The Fibonacci levels display on the most recent HTF candle, showing standard retracement levels (0.0, 0.25, 0.50, 0.75, 1.0). All levels are black by default.
Show Fibonacci
- Toggle on or off
Line Style / Line Width
- Customize how the fib lines look
- Options: Solid, Dashed, Dotted
Extend Fibonacci Right
- When enabled, fib lines extend infinitely to the right
- Default is off to keep them contained to the candle structure
---
NDOG (Next Day Opening Gap) / Gap Rectangle
The NDOG displays the gap between the previous candle's close and the current candle's open. This highlights where the gap filled or remained unfilled overnight.
Show NDOG
- Toggle the gap rectangle on or off
- Default is on
NDOG Color
- Controls the color and opacity of the rectangle
- Set to black with 80 transparency by default for clean appearance
Extend NDOG Right
- NDOG extends infinitely right by default to mark the gap clearly
- This distinguishes it from the FVG boxes which follow price action
---
SECTION 4: TIMEFRAME SWEEPS
Sweeps mark when price breaks the high or low of the previous candle on your selected sweep timeframe. Useful for identifying intrabar reversals and momentum shifts.
Sweep Timeframe
- Select which timeframe to monitor for breaks
- Options: 1m, 5m, 15m, 30m, 1h, 2h, 4h, Daily
Dot Symbol
- Choose between three dot styles to mark sweeps
Sweep High Color / Sweep Low Color
- Colors for high sweeps and low sweeps
- High sweeps appear below price, low sweeps appear above
---
SECTION 5: NON-RTH DISPLAY
Non-RTH (Outside Regular Trading Hours) tools highlight activity outside the main market session.
Regular Trading Hours
- Set the session window that represents RTH for your market
- Default is 9:30 AM - 4:15 PM for US equities
Show Non-RTH Background
- Highlights the background when trading outside RTH
- Off by default
Non-RTH Candles
- When enabled, candles outside RTH display in white with 30% transparency
- This keeps them visible but clearly separated from RTH candles
- Off by default, enable if you trade pre-market or after-hours
Bull/Bear Transparency
- Both set to 30 by default for balanced appearance
ICT Killzones [Forex Edition] |MC|💎 ICT Killzones |MC| 💎
All credit and recognition go to © SimoneMicucci00 for the great work! This is another development that was created through many hours of dedicated effort.
ICT Killzones is a precision session-mapping indicator designed for intraday Forex traders who follow ICT concepts and time-based market structure.
It visually highlights the most important institutional trading windows (“Killzones”) directly on your chart, helping you focus on when price is most likely to expand.
This tool is built to stay clean, configurable, and performance-friendly—no unnecessary clutter, no repainting.
🔹 Key Features
Asian Range
London Open
New York Open
London Close
Each session can be displayed as:
A transparent box (range high–low)
Or a background highlight (killzone shading)
All sessions are calculated using New York time, ensuring consistency with ICT teachings.
🔹 Fully Customizable
Enable or disable each session independently
Custom session times
Custom colors and labels
Adjustable transparency and border styling
Optional range size display (in pips)
Control how many historical days are shown to keep charts clean
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
It does not provide financial advice or trading signals.
Always apply proper risk management.
Happy Trading!
ICT Previous Day Levels |MC|ICT Previous Day Levels |MC|
💎 Overview: 💎
The ICT Previous Day Levels script provides a clear visualization of the previous trading day's High, Low, and key intra-range levels (Quarter lines and EQ Midline) directly on your chart. Designed for intraday and daily analysis, it helps traders quickly identify potential support/resistance levels and price bias from the prior day.
💎 Features: 💎
💎 Previous Day High (PDH) & Low (PDL)
🔸 Shows the high and low of the previous trading day.
🔸 Lines are extended dynamically to the current bar for intraday visibility.
🔸 Historical lines are maintained for a configurable number of days.
💎 Quarter Lines (25% & 75%)
🔸 Drawn between the previous day's high and low.
🔸 Helps identify key intra-day retracement levels.
🔸 Historical quarter lines are kept and cleaned dynamically, similar to PDH/PDL logic.
💎 EQ Midline (50%)
🔸 Represents the midpoint of the previous day’s range.
🔸 Useful for assessing market balance and potential mean-reversion zones.
🔸 Historical EQ lines are dynamically stored and limited by the number of days set by the user.
💎 Customization Options:
🔸 Toggle visibility of PDH, PDL, Quarter Lines, and EQ Midline.
🔸 Adjustable line colors, widths, and styles.
🔸 Configurable label sizes with consistent formatting.
🔸 Dynamic extension of lines to the current bar, with historical cleanup.
💎 Daily and Weekly Dividers:
🔸 Optional daily and weekly session markers for additional context.
🔸 Historical dividers are automatically maintained according to your “days to show” setting.
💎 Use Case: 💎
Ideal for intraday traders, swing traders, or anyone using prior day ranges to determine bias, support/resistance, or target zones. This script visualizes key levels efficiently and keeps your chart clean with automated history management.
🔹 Warning: Do not trade based on this indicator alone. Always use it in combination with other
analysis and risk management techniques.
Happy Trading!
EL OJO DE DIOS - FINAL (ORDEN CORREGIDO)//@version=6
indicator("EL OJO DE DIOS - FINAL (ORDEN CORREGIDO)", overlay=true, max_boxes_count=500, max_lines_count=500, max_labels_count=500)
// --- 1. CONFIGURACIÓN ---
grpEMA = "Medias Móviles"
inpShowEMA = input.bool(true, "Mostrar EMAs", group=grpEMA)
inpEMA21 = input.int(21, "EMA 21", minval=1, group=grpEMA)
inpEMA50 = input.int(50, "EMA 50", minval=1, group=grpEMA)
inpEMA200 = input.int(200, "EMA 200", minval=1, group=grpEMA)
grpStrategy = "Estrategia"
inpTrendTF = input.string("Current", "Timeframe Señal", options= , group=grpStrategy)
inpADXFilter = input.bool(true, "Filtro ADX", group=grpStrategy)
inpADXPeriod = input.int(14, "Período ADX", group=grpStrategy)
inpADXLimit = input.int(20, "Límite ADX", group=grpStrategy)
inpRR = input.float(2.0, "Riesgo:Beneficio", group=grpStrategy)
grpVisuals = "Visuales"
inpShowPrevDay = input.bool(true, "Máx/Mín Ayer", group=grpVisuals)
inpShowNY = input.bool(true, "Sesión NY", group=grpVisuals)
// --- 2. VARIABLES ---
var float t1Price = na
var bool t1Bull = false
var bool t1Conf = false
var line slLine = na
var line tpLine = na
// Variables Prev Day
var float pdH = na
var float pdL = na
var line linePDH = na
var line linePDL = na
// Variables Session
var box nySessionBox = na
// --- 3. CÁLCULO ADX MANUAL ---
f_calcADX(_high, _low, _close, _len) =>
// True Range Manual
tr = math.max(_high - _low, math.abs(_high - _close ), math.abs(_low - _close ))
// Directional Movement
up = _high - _high
down = _low - _low
plusDM = (up > down and up > 0) ? up : 0.0
minusDM = (down > up and down > 0) ? down : 0.0
// Smoothed averages
atr = ta.rma(tr, _len)
plus = 100.0 * ta.rma(plusDM, _len) / atr
minus = 100.0 * ta.rma(minusDM, _len) / atr
// DX y ADX
sum = plus + minus
dx = sum == 0 ? 0.0 : 100.0 * math.abs(plus - minus) / sum
adx = ta.rma(dx, _len)
adx
// --- 4. CÁLCULO DE DATOS ---
ema21 = ta.ema(close, inpEMA21)
ema50 = ta.ema(close, inpEMA50)
ema200 = ta.ema(close, inpEMA200)
// MTF Logic
targetTF = inpTrendTF == "Current" ? timeframe.period : inpTrendTF == "15m" ? "15" : "60"
// CORRECCIÓN AQUÍ: Uso de argumentos nominales (gaps=, lookahead=) para evitar errores de orden
f_getSeries(src, tf) =>
tf == timeframe.period ? src : request.security(syminfo.tickerid, tf, src, gaps=barmerge.gaps_on, lookahead=barmerge.lookahead_off)
tf_close = f_getSeries(close, targetTF)
tf_high = f_getSeries(high, targetTF)
tf_low = f_getSeries(low, targetTF)
tf_ema21 = ta.ema(tf_close, inpEMA21)
tf_ema50 = ta.ema(tf_close, inpEMA50)
// Calcular ADX
float tf_adx = f_calcADX(tf_high, tf_low, tf_close, inpADXPeriod)
// Cruces
bool crossUp = ta.crossover(tf_ema21, tf_ema50)
bool crossDown = ta.crossunder(tf_ema21, tf_ema50)
bool crossSignal = crossUp or crossDown
bool adxOk = inpADXFilter ? tf_adx > inpADXLimit : true
// --- 5. LÓGICA DE SEÑALES ---
if crossSignal and adxOk and barstate.isconfirmed
t1Price := tf_ema21
t1Bull := tf_ema21 > tf_ema50
t1Conf := false
if not na(slLine)
line.delete(slLine)
slLine := na
if not na(tpLine)
line.delete(tpLine)
tpLine := na
label.new(bar_index, high + (ta.atr(14)*0.5), text="CRUCE T1", color=t1Bull ? color.green : color.red, textcolor=color.white, size=size.small)
bool touch = false
if not na(t1Price) and not t1Conf
if t1Bull
touch := low <= t1Price and close >= t1Price
else
touch := high >= t1Price and close <= t1Price
if touch and barstate.isconfirmed
t1Conf := true
float atr = ta.atr(14)
float sl = t1Bull ? low - (atr*0.1) : high + (atr*0.1)
float dist = math.abs(t1Price - sl)
float tp = t1Bull ? t1Price + (dist * inpRR) : t1Price - (dist * inpRR)
label.new(bar_index, t1Price, text="ENTRADA", color=color.yellow, textcolor=color.black, size=size.small)
slLine := line.new(bar_index, sl, bar_index + 15, sl, color=color.red, style=line.style_dashed, width=2)
tpLine := line.new(bar_index, tp, bar_index + 15, tp, color=color.green, style=line.style_dashed, width=2)
// --- 6. GRÁFICO ---
col21 = ema21 > ema21 ? color.teal : color.maroon
col50 = ema50 > ema50 ? color.aqua : color.fuchsia
col200 = ema200 > ema200 ? color.blue : color.red
plot(inpShowEMA ? ema21 : na, "EMA21", color=col21, linewidth=2)
plot(inpShowEMA ? ema50 : na, "EMA50", color=col50, linewidth=2)
plot(inpShowEMA ? ema200 : na, "EMA200", color=col200, linewidth=2)
bgcolor(ema50 > ema200 ? color.new(color.green, 95) : color.new(color.red, 95))
// --- 7. SESIÓN NY ---
isNYSummer = (month(time) == 3 and dayofmonth(time) >= 14) or (month(time) > 3 and month(time) < 11)
hourOffset = isNYSummer ? 4 : 5
nyHour = (hour - hourOffset) % 24
bool isSession = nyHour >= 6 and nyHour < 11
if isSession and inpShowNY
if na(nySessionBox)
nySessionBox := box.new(bar_index, high, bar_index, low, bgcolor=color.new(color.blue, 92), border_color=color.new(color.white, 0))
else
box.set_right(nySessionBox, bar_index)
box.set_top(nySessionBox, math.max(high, box.get_top(nySessionBox)))
box.set_bottom(nySessionBox, math.min(low, box.get_bottom(nySessionBox)))
if not isSession and not na(nySessionBox)
box.delete(nySessionBox)
nySessionBox := na
// --- 8. MÁX/MÍN AYER ---
hCheck = request.security(syminfo.tickerid, "D", high , lookahead=barmerge.lookahead_on)
lCheck = request.security(syminfo.tickerid, "D", low , lookahead=barmerge.lookahead_on)
if not na(hCheck)
pdH := hCheck
if not na(lCheck)
pdL := lCheck
if barstate.islast and inpShowPrevDay
line.delete(linePDH)
line.delete(linePDL)
if not na(pdH)
linePDH := line.new(bar_index - 50, pdH, bar_index, pdH, color=color.green)
if not na(pdL)
linePDL := line.new(bar_index - 50, pdL, bar_index, pdL, color=color.red)
alertcondition(crossSignal, "Cruce T1", "Cruce Tendencia 1")
alertcondition(touch, "Entrada Confirmada", "Entrada Confirmada")
Trading Sessions with weekendsTrading Sessions UTC with weekends
Description:
Trading Sessions UTC is an indicator for visualizing the main global trading sessions on your chart with boxes and labels, allowing you to quickly understand market timing. The indicator displays Tokyo, London, and New York sessions.
Features:
- Supports any intraday timeframe (1H, 15m, 5m).
- All session times are in UTC, ensuring accuracy for global market analysis.
- Session boxes show the high and low prices within each session.
- Session labels are centered above the boxes and do not overlap the chart.
- Weekends are ignored – sessions are not displayed on Saturday and Sunday.
- Customizable box and label colors for each session.
Benefits:
- Quickly evaluate market activity during major sessions.
- Easily plan trading strategies during active market periods.
- Visually separate sessions to avoid confusion across time zones.
Inputs:
- Session time in UTC (Tokyo, London, New York).
- Box color for each session.
- Label color for each session.
Note:
This indicator is designed for intraday timeframes only. It will not display sessions correctly on daily or higher timeframes.
FVG + Kill Zones (ICT/SMC) [BlackVamp]Fair Value Gap (FVG)
An FVG is a price imbalance between three consecutive candlesticks. It represents areas where the price moved so quickly that it left a gap that the market tends to fill later.
• Bullish FVG: Candle 3.low > Candle 1.high (bullish gap, price tends to fall to fill it)
• Bearish FVG: Candle 3.high < Candle 1.low (bearish gap, price tends to rise to fill it)
Kill Zones (UTC Times)
Kill Zone Time UTC Characteristics
Asian 00:00 - 04:00 Accumulation, narrow ranges
London Open 07:00 - 10:00 High volatility
NY Open 12:00 - 15:00 Maximum liquidity
London Close 15:00 - 17:00 Possible reversals
Market Structure
• Bullish: HH (Higher Highs) + HL (Higher Lows)
• Bearish: LH (Lower Highs) + LL (Lower Lows)
• BOS: Break of Structure Trend Continuation
• CHoCH: Change of Character - Trend Change
TradingLatino Strategy [BlackVamp]Script de estrategia similar a la de Jaime Merino de Tradinglatino
IFVG Ultimate Toolkit PRO+ by [Yahya]🔷 OVERVIEW
This script is a comprehensive institutional toolkit designed to automate the Inner Circle Trader (ICT) and Smart Money Concepts (SMC) framework. It replaces manual chart markups with a high-performance, real-time calculation engine that tracks Liquidity, Time, and Inter-market Correlations.
From identifying "hidden" magnets like the Event Horizon (EHPDA) to detecting the exact moment "Smart Money" flips a zone via the Inversion FVG (iFVG), this tool provides a complete roadmap for the professional intraday trader.
Integrated institutional framework that transforms raw price data into actionable narrative. Unlike static indicators, it utilizes a dynamic time-series engine to provide real-time, touch-sensitive FVG mitigation and "garbage-collected" memory management to prevent chart lag. Its core superiority lies in multi-asset correlation (SMT) and GMT-synchronized session logic, ensuring users see the exact "Midnight Open" and "Killzones" used by institutional algorithms. By automating complex ICT concepts like Inversion FVGs and Synthetic PO3 projections, it eliminates manual bias and provides a professional roadmap based on liquidity sweeps rather than lagging retail signals, all within a high-performance, non-repainting environment.
🚀 KEY CORE FEATURES
• Institutional Killzones & Pivots: Automatically maps Asia, London, and NY sessions with GMT-sync protection. It projects session highs/lows forward until they are swept, providing real-time liquidity alerts.
• Multi-Timeframe (MTF) FVG Engine: Scans up to 12 user-defined timeframes. Boxes feature Touch-Sensitive Logic, dynamically shrinking as price mitigates the gap to show remaining unfilled orders.
• iFVG (Inversion) Trigger: The "Hidden Secret" logic. It identifies failed FVGs that have been closed through with high volume, signaling a powerful support/resistance "flip."
• Multi-Asset SMT Radar: A correlation scanner that monitors up to 8 assets (e.g., NQ vs. ES vs. DXY). It flags "cracks in correlation" to catch institutional accumulation/distribution before it happens.
• Synthetic AMD (PO3) Projection: Renders Higher Timeframe (HTF) candles on the right side of your chart. It visually breaks down the Power of 3 (Accumulation, Manipulation, Distribution) so you can see if you are inside a daily wick.
• Event Horizon (EHPDA) & Opening Gaps: Plots New Week (NWOG) and New Day (NDOG) opening gaps. It calculates the Consequent Encroachment (C.E.) and midpoints between gaps to find institutional price magnets.
• EQH/EQL Liquidity Pools: Uses a "Fuzziness" algorithm to find equal highs/lows within a 200-bar lookback, identifying where large clusters of stop-loss orders are resting.
1. Multi Timeframe FVGs Engine🟢
The script scans multiple user-defined timeframes (from 30-seconds up to Weekly) to identify Fair Value Gaps. It uses a "touch-sensitive" logic: when price mitigates a gap, the box can automatically resize or change color to indicate the level has been tested.
The function find_box uses the standard formula for an imbalance:
• Bullish: low > high (A gap between the high of candle 1 and the low of candle 3).
• Bearish: high < low .
• Dynamic Updating: The control_box method uses box.set_top and box.set_bottom to "shrink" the boxes as price eats into the gap, providing a real-time look at remaining liquidity.
Security & Performance
This code includes a Premium Safety Toggle (enable30s). Its a smart addition! TradingView limits the use of sub-minute timeframes in request.security to Premium members. By including this toggle, it prevent the script from crashing for Free/Pro users.
To prevent the chart from becoming cluttered with "dead" data, the script uses a Mitigation Security Loop:
* Detection: It constantly compares the current close price to the stored _boxLow or _boxHigh in the arrays.
* State Change: When price enters the FVG area, it triggers box.set_bgcolor to the "Tested" color.
* Deletion: If price moves entirely through the gap (full mitigation), it uses array.remove and box.delete. This is critical for performance; if the script didn't delete old boxes, it would eventually hit the 500-box limit and stop working.
2. Institutional Session Killzone & Pivot Mechanics🟢
It automatically plots the Asia, London, New York AM/PM, and Lunch sessions. Beyond simple boxes, it calculates the Average Range of these sessions and displays them in a real-time dashboard to help traders gauge volatility expectations.
The script utilizes the time() function with a GMT offset to isolate specific institutional "Killzones."
• Logic: When the current time falls within a defined session (e.g., London "0200-0500"), the script initializes a kz type object.
• Range Tracking: It continuously updates the high and low coordinates using math.max() and math.min() until the session closes.
• Pivot Invalidation: Once the session ends, these levels are projected forward as line objects. The script utilizes _hi_valid and _lo_valid boolean arrays; if the current price trades through these lines, an alert is triggered, and the line is visually updated to signal a Liquidity Sweep.
The security behind the Killzones involves translating your local computer time into the "Exchange Time" or a "Fixed Timezone" (like UTC-5 for New York).
Timezone Protection: By using gmt_tz = input.string('America/New_York'...) and passing it into the time() function, the script ensures that a trader in London and a trader in Tokyo see the "New York Open" at the exact same moment on the chart.
State Detection: ```pinescript
t = not na(time("", this.session, gmt_tz))
t_prev = not na(time("", this.session, gmt_tz, bars_back = 1))
3. Opening Gaps & Event Horizon (EHPDA)🟢
It tracks New Week Opening Gaps (NWOG) and New Day Opening Gaps (NDOG), projecting "Event Horizons" (EHPDA) which act as significant institutional magnets for price action.
This module tracks the relationship between the previous period's close and the current period's open.
Identification: Upon a timeframe.change(), the script captures the distance between Close and Open .
Consequent Encroachment (C.E.): The script calculates the exact equilibrium of the gap:
Midpoint= Gap High + Gap Low
2
* EHPDA Logic: Using the set_ehpda method, the script calculates the mathematical midpoint between consecutive opening gaps, identifying a "Hidden Pivot" where price typically seeks rebalancing.
4. Equal High & Equal Lows Liquidity Pool🟢
This script identifies EQH/EQL (Equal Highs/Lows) by scanning a 200-bar lookback for price matches. It uses a break-on-violation logic: if any intervening price exceeds the level, the liquidity is considered "cleared" and ignored.
This ensures only relevant, unmitigated double tops/bottoms are plotted, pinpointing high-probability buy/sell-side liquidity pools for ICT and SMC strategies while maintaining chart clarity and performance
Sensitivity Check: It uses a "Fuzziness" or "Tolerance" logic. Since price rarely hits the exact same decimal point (e.g., 1.25000 vs 1.25001), the script calculates if the difference is within a few "ticks."
The script identifies Liquidity Pools by scanning the price history for horizontal clusters.
The Algorithm
The findAndDrawEqualHighs function performs a lookback loop.
* It identifies a current swing point (src ).
* It iterates backward through lookbackLength.
* Proximity Matching: If the historical price exactly matches (src == src ), it validates the level.
Note: In advanced ICT concepts, this code functions as a "Magnet" detector. When these lines are drawn, it signifies that Buy-side or Sell-side stops are resting just above/below, which the Market Maker will likely sweep to facilitate their own orders.
5. Synthetic AMD Projection🟢
A sophisticated visualizer that draws HTF candles (including custom daily opens like Midnight or 8:30) on the right side of the chart. This allows traders to monitor HTF trend and momentum without switching tabs.
• The Power of 3 (PO3):
1. Accumulation: Anchored by a custom_daily open price (Midnight/8:30/9:30).
2. Manipulation: The script renders wicks using line.new() to show where price deviated below/above the open.
3. Distribution: The script calculates the body expansion of the HTF candle, allowing traders to see the real-time "state" of the Daily or Weekly candle without switching tabs.
• Inter-market SMT: The logic compares the current ticker's high/low against a secondary ticker (via request.security). If a non-correlation (divergence) occurs, the script flags has_bearish_div or has_bullish_div directly on the synthetic HTF candles.
The "Trace" System
The Trace type creates horizontal projections of the HTF Open, High, Low, and Close.
• Significance: It allows you to see the "Current Candle State." If the LTF price is trading below the projected HTF Open but above the HTF Low, you are mathematically inside the "Lower Wick" of the HTF candle—a prime location for ICT long entries.
Memory Management and Performance
To prevent the "Script Requesting Too Many Drawings" error, this script features a self-cleaning logic:
• Array Management: It uses array.unshift() to add new objects and array.pop().delete() to remove the oldest drawings once the max_days or max_boxes_count limit is reached.
• Non-Repainting: All security calls use the index or barstate.isconfirmed checks to ensure that signals do not disappear after the bar closes.
6. Multi- Timeframe SMT Divergence🟢
This logic acts as a Correlation Radar. By calling request.security() for 8 assets (e.g., ES, NQ, DXY), the script checks for "cracks" in symmetry. If one asset makes a new high but others fail, an SMT is flagged.
This is a correlation engine. It looks for "cracks" in the relationship between two assets that should move together (like the S&P 500 and Nasdaq).
• How it works: It simultaneously looks at your current chart and a "hidden" second chart. If Asset A makes a higher high, but Asset B fails to make that higher high, it signals a Divergence. This often precedes a massive trend reversal.
• Visual Logic: It draws diagonal lines directly between the highs or lows of the HTF candles to show you the "tilt" of the divergence visually.
• Security (Data Integrity): The script uses "Protected Security" calls. It ensures that the data from the second asset is synced perfectly in time with your current chart, preventing "future-leaking" where an indicator looks like it’s winning only because it knows what happens next. To prevent crashes, it uses Array Buffers and Tuple Requests, grouping data to stay under Pine Script's 40-call limit while ensuring non-repainting accuracy.
7. High Timeframe (HTF) Candle Projections PO3🟢
The script "projects" larger timeframe candles (like Daily or 4-Hour) onto your lower timeframe chart (like the 1-minute or 5-minute).
• How it works: It builds these candles using math and coordinates rather than standard bars. This allows them to sit on the right side of your screen in the "empty space," giving you a roadmap of the higher-order trend without blocking your view.
• Swing Detection Logic: It identifies if these projected candles have "swept" liquidity.
• Empty Triangle (▽): A "Potential" sweep. Price is currently above a old high, but the candle hasn't closed yet.
• Solid Triangle (▼): A "Confirmed" sweep. The candle closed, and price was rejected, leaving a wick.
• Security: The script uses an Array Buffer. It only keeps a specific number of these candles in memory. As a new candle forms, the oldest one is deleted. This keeps the script fast and prevents TradingView from lagging.
The "Trace Lines" (Open, High, Low, Close) connect the HTF projected candles back to the actual price bars.
This is a Performance Guardrail. Pine Script has a maximum lookback for drawing objects. By checking if the index is within 5000 bars, the script avoids trying to draw lines into "null" memory space, which would throw a runtime error.
8. Expansion & Equilibrium (EQ) Logic🟢
This logic predicts the "intent" of the market based on the previous candle's behavior.
• Expansion expected: If the previous HTF candle created a "Swing Low" (swept a low and rejected), the script colors the current forming candle as Bullish Expansion. It’s telling you: "The sweep is done; we are likely moving up now."
• Equilibrium (EQ) Line: It draws a dotted line at the exact 50% mark of the previous HTF candle. In institutional trading, the 50% mark (Mean Threshold) is the "fair value" point. Trading above it is "Premium," and below it is "Discount."
• Security: It uses Timezone Normalization. Regardless of where you live, the script can sync to the New York Midnight or 8:30 AM open, ensuring your levels match the algorithm's "True Day" start.
9. The HTF Info Table🟢
This is the "Dashboard" logic. It summarizes the state of multiple timeframes into a single UI element.
Acts as your mission control. It gathers data from up to 6 different timeframes and puts them in a clean table.
Expansion Logic: ```pinescript
exp_text = c2_swing_high and c2_swing_low ? "▲▼" : c2_swing_low ? "▲" : c2_swing_high ? "▼" : "-"
This tells the trader what the
next candle is expected to do. If the previous candle swept a low expansion up the table flags.
• How it works: It scans all active timeframes for Timers, Swings, Expansions, and Divergences. If 4 out of 6 timeframes show a "Bullish Expansion" icon (▲), you have high-probability confluence.
• Logic Security: The table only updates on "Real-Time" bars. It won't waste processing power recalculating historical table data that you can't trade anyway.
10. The iFVG (Inversion Fair value gap) Engine🟢
Standard FVGs are gaps where price moves too fast. This script tracks Inversions—when a gap that was supposed to act as support is "run over" and becomes resistance (or vice versa)
This is the most complex logic in the snippet. It doesn't just look for gaps; it looks for failed gaps that act as support/resistance.
The Inversion Trigger: The script waits for a specific number of candles (inv_candles) for price to close through the FVG. Once the is_inverted condition is met, it converts a standard FVG into an iFVG.
Memory Management: By using array.push(active_boxes, new_box) and a corresponding box.delete loop, the script ensures it never exceeds the TradingView drawing limits, which would otherwise cause the script to lag or crash.
The "Secret Sauce" Logic: It includes a volatility filter. It won't plot an iFVG unless the move was backed by high volume, orderflow and a large price spread. This ensures you only see gaps created by banks, not retail noise.
Security: It features an Invalidation Cleanup. Once price moves too far past an iFVG, the script "kills" the drawing. This prevents the chart from being cluttered with old, irrelevant levels and saves your computer's memory.
How it works: The script identifies a gap between Candle 1 and Candle 3. It then enters a "monitoring state" for a set number of candles. If price closes through that gap, it "flips" the zone and draws a box extending into the future.
11. IFVG MTF ALERTS🟢
The Multi-Timeframe iFVG Alerts function as a real-time "state change" monitor across your 1m to 15m execution charts. Unlike standard price alerts, these only trigger when the script detects a failed FVG—meaning price hasn't just touched a gap, but has closed completely through it with enough displacement to flip the zone's institutional bias.
🔔 How the Alerts Function
• Fractal Detection: The script scans your selected 1, 2, 3, 4, 5, and 15-minute intervals. For eg, If a 15m Bearish FVG is "run over" by price, it sends an Inversion Alert, signaling that a high-timeframe resistance has now flipped into support.
• Volume/Close Validation: To prevent "fakeouts," the alert only fires when a candle body closes above (for bullish flips) or below (for bearish flips) the gap boundaries. This ensures the alert represents a genuine shift in order flow rather than just a wick sweep.
• Non-Repainting Logic: By using barstate.isconfirmed, the alert triggers exactly at the candle close. This ensures that once you get a notification on your phone or desktop, the level is "locked" and won't disappear if price fluctuates later.
🛠️ HOW TO USE (THE INSTITUTIONAL WORKFLOW)
1. TIME: Identify if you are in a Killzone (Shaded area). Opening Gaps & EHPDA: Locate the NWOG and NDOG lines. Use the Event Horizon (EHPDA)—the midpoint between gaps—as your primary "Magnet."
2. BIAS: Check the EHPDA/Midnight Open. Are you in a Discount (to buy) or Premium (to sell)?
Use HTF Info Table: Confirm your idea. If the table shows "▲" (Bullish Expansion) across 4/6 timeframes, you have a massive directional tailwind.
3. MAGNET: Look for the EQH/EQL dotted lines. This is your target.
4. TRAP: Wait for a Liquidity Sweep
5. CONFIRM: Check the SMT Radar for divergence and the HTF Info Table for expansion confluence.
6. MTF FVG Engine: Look for price to enter a large Higher Timeframe FVG. Because these are "touch-sensitive," the box will shrink as price eats the liquidity, telling you exactly when the gap is "full."
• iFVG Inversion Trigger: Once inside the MTF FVG and after an SMT, wait for a small gap to form and fail.
• The Move: Price closes through a Bearish FVG and flips to a Bullish iFVG.
• Execution: Enter on the inversion of the iFVG box.
🛡️ PERFORMANCE & SECURITY
• Memory Management: Features a built-in "Garbage Collector" that deletes old drawings to stay under TradingView's 500-object limit and prevent lag.
• Premium Safety Toggle: Includes an enable30s check to prevent script crashes for non-premium users on lower timeframes.
• Non-Repainting: All request.security calls use indexing or barstate.isconfirmed to ensure signals are permanent once the candle closes.
📌 NOTES
• Optimized For: 1M, 2M, 3M, 4M , 5M, and 15M execution timeframes.
• Markets: Works on Forex, Indices (NQ/ES), Commodities (Gold), and Crypto.
⚠️Risk Disclaimer
Financial Trading involves significant risk. This Pine Script is an educational tool designed to automate specific technical analysis frameworks; it does not guarantee profits or provide financial advice. Past performance, including backtested results or historical "Power of 3" projections, is not indicative of future success.
The user assumes full responsibility for all trading decisions and capital risk. Use of this script on real-money accounts should only occur after extensive personal testing. The developer is not liable for any financial losses, data inaccuracies, or platform-related execution errors resulting from the use of this software.
SMA Cross Counter - MTF SmoothTitle Idea
SMA Cross Counter - MTF Smooth (Find the 50-Bar Sweet Spot)
Description
Overview
This indicator tracks and displays the number of bars elapsed since the current 20SMA crossed the Higher Timeframe (HTF) 20SMA. By quantifying the "age" of a trend, it is designed to help traders identify high-probability pullbacks with objective precision.
Strategy: The 50-Bar Sweet Spot
This script is built around a specific tactical observation:
The Target: A "One-Cushion Granville Setup" occurring approximately 50 bars after the crossover is often a high-probability "Sweet Spot." At this stage, the trend is usually well-established but still possesses significant momentum.
The Edge: By monitoring the counter in the bottom-right corner, you can move away from subjective "feel" and objectively judge the trend's maturity. It helps you avoid the high volatility of an early cross and the exhaustion risks of a late-stage trend (e.g., over 100 bars).
Key Features
Automatic MTF Selection The reference timeframe updates automatically as you switch charts.
1m chart → 5m SMA
5m chart → 30m (or 15m) SMA
15m chart → 1h SMA
Daily chart → Weekly SMA, and so on.
Smooth MTF Visualization Eliminates the "stepped/staircase" effect common in MTF indicators. It connects higher-TF data points with smooth, diagonal lines, maintaining a clean chart and showing the true slope of the trend.
Real-Time Bar Counter Resets to "0" at the exact moment of a crossover and increments by 1 with every new bar.
Settings
5m Chart Reference: Choose between 30m or 15m as the HTF source when trading on a 5m chart.
SMA Period: Defaults to 20, but fully adjustable to fit your specific strategy.
タイトル案
SMA Cross Counter - MTF Smooth (50本目のスイートスポット判定)
説明文(日本語)
概要
このインジケーターは、現在の20SMAが上位足の20SMAと交差してからの「経過バー数」をリアルタイムでカウントし、右下のテーブルに表示します。 単なるクロスの確認ではなく、トレンドの「経過時間」を数値化することで、押し目買い・戻り売りの精度を極限まで高めるために開発されました。
戦略:50本目のスイートスポット
本インジケーターは、以下のトレード理論をベースに設計されています。
狙い目: SMA同士がクロスしてから50本程度経過したタイミングでの「ワンクッショングランビル」は、トレンドの勢いが安定し、かつ伸び代が最も残されている**「スイートスポット」**となる可能性が高い。
メリット: 右下のカウンターを見るだけで、感覚に頼らず「今がトレンドの何合目か」を客観的に判断できます。クロス直後の不安定な時期や、100本を超えたトレンド終盤の失速リスクを避けるのに有効です。
主な機能
自動タイムフレーム選定 (Auto-MTF) チャートの時間軸を切り替えるだけで、表示中の足に合わせて最適な上位足を自動選択します。(例:5分足なら30分足SMA、15分足なら1時間足SMAなど)
滑らかな上位足ライン MTF特有の「階段状のギザギザ」を排除。上位足の確定値を直線で結ぶため、チャートを美しく保ちつつ、正確なトレンドの傾きを確認できます。
リアルタイム・カウンター SMAがクロスした瞬間に「0」へリセット。以降、1本ごとに加算されます。
設定項目
5分足チャート時の参照先: 上位足を「30分」にするか「15分」にするかを切り替え可能。
SMA期間: デフォルトは20。ご自身の手法に合わせて調整してください。
SDF,MKNASDYDFBCASGBFJNAS
Core Concept This is a Time-Based Range Breakout system. It monitors price action during a specific user-defined time window to establish a "High" and "Low" reference range. Once this window closes, these levels become the trigger points for potential trades.
Key Features
Validated Breakouts: The script doesn't just take any breakout. It requires a candle to close outside the range with specific momentum. It calculates whether the breakout is significant (e.g., at least 20% of the candle's body is outside the line) to filter out fake-outs.
Persistent Multi-Trade Memory (Smart Holding): This is the script's most advanced feature. Unlike standard indicators that overwrite old data when a new signal appears, this system uses a digital memory bank (Arrays).
It can track multiple trades simultaneously across different days.
If a trade is opened on Monday, it stays active in memory until its specific Target or Stop Loss is hit, even if new trades are taken on Tuesday or Wednesday.
Independent Trade Management: Every trade runs on its own "thread." Trade A can hit its Target while Trade B is still running. The script calculates the specific Entry, Stop Loss, and Take Profit for every single signal independently.
Performance Dashboard: A panel on the screen tracks the total performance for the current month, showing Wins, Losses, Accuracy Percentage, and a list of currently Active Trade IDs (e.g., "B#1, S#3") so you can see exactly what is running in the background.
Highlight > 0.5% Moves// ------ 1 ------ //
// threshold = input(0.3, title = "threshold%")
// //threshold = 0.3
// pctChange = ((close - open) / open) * 100
// //Define the condition (More than 0.5%)
// isBigMove = pctChange > threshold
// bgcolor(isBigMove ? color.new(color.green, 90) : na)
// barcolor(isBigMove ? color.new(color.green, 60) : na)
// plotshape(isBigMove, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
Trend-ProE un trend basado en medias móviles de hull, 1 acelerada un 20% y otra normal de periodo mas largo
Dynamic Hazard Supertrend ForecastXAUUSD — Dynamic Hazard Supertrend Forecast (DHF)
Original Indicator by: TheWannaBeQuant
What this indicator does:
It converts price action into 3 clean market states (UP / CHOP / DOWN) and then estimates the probability of where the next H bars will likely “land” using a dynamic hazard (survival) model.
1) How to read it:
A) The line on price (3-state Supertrend):
• GREEN = Uptrend (trend-follow bias)
• YELLOW = Chop / Range (avoid trend trades)
• RED = Downtrend (trend-follow bias)
B) The dashboard (right side):
• MODE = current state (UPTREND / CHOP / DOWNTREND)
• ACTION = TRADE in trends, WAIT in chop
• BIAS = bullish/bearish/neutral
• OUTLOOK = probabilities for the next H bars: UP / CHOP / DOWN
Important: “UP %” does NOT mean “price must go up immediately.”
It means: based on the current state + features, the model believes the next H bars are most likely to remain/resolve into the UP state.
I also want to add that the probability that is given by the indicator is always biased towards the trend and not the general close of the next bar. After extensive back testing, if a probability of >80% appears, it is a sign that could be trust worthy (again, nothing in the world guarantees it will go that way. It is merely math attempting to forecast the future but there is never any guarantee, especially in very small timeframes, that the math can capture all of the noisy signals and make it into an ultimate signal).
2) Why CHOP is special
Most “trend” indicators only flip up/down.
This script creates a CHOP regime by combining:
• Volume slowdown (kernel-weighted statistics, not a basic moving average)
AND
• “First Support/Resistance after a Supertrend flip” gets respected
Meaning: after the first trend break, if price starts respecting the first range boundaries AND momentum/volume fades, the model marks CHOP.
I will constantly updating any issues as I truly believe identifying market regimes is what makes or breaks trading strategies. Your feedback will always be useful in helping me achieve more accuracy in capturing market CHOP
3) Trend examples
When the line is GREEN/RED, you’re in trend mode. CHOP logic is OFF unless range acceptance + slowdown confirms.
I will always remind you to ignore the probability listed by the math unless it hits >80%, which can then help you analyze your own signals alongside this indicators signal to help you take an informed decision
4) Forecasting (DHF) — why probabilities change every bar
The forecast updates every bar close using:
• A time-varying “hazard” (exit probability) that changes with live features:
- How close price is to the Supertrend line
- Volume slowdown intensity (kernel z-score)
- Range evidence (support/resistance touches)
So the forecast is not “stuck” until state changes — it adapts every bar.
In the settings, I encoded an "exit probability" that would allow you to see what the models calculations are when thinking about reversing. I believe that is the true probability that you may want to constantly monitor.
How you would use it: The higher that probability is, the more likely you will experience a reversal in the trend very soon.
5) Settings (recommended starting point)
• Best initial use: XAUUSD, 5m (works on others, but tuned for 5m)
• If CHOP is too rare → loosen range buffer or slowdown threshold
• If CHOP is too frequent → tighten buffer or require stronger slowdown
Truth be told, I am new to this and did not know how to take images of the settings to post it.
I played with the settings and left it at what I think is the optimal settings for the indicator.
I strongly suggest you take some time and also play with the settings as your trading style may be different than my trading style.
Non-repainting notes in full honesty:
• Supertrend uses current close → stable on bar close.
• Pivot-based S/R needs confirmation (by definition). That means CHOP confirmation will have some delay — this is intentional for reliability.
• Volume inputs depend on broker feed (tick/real volume differences).
Disclaimer: THIS INDICATOR IS DESIGNED TO INFORM AND HELP YOU GIVE YOURSELF AN EDUCATED DECISION TO TRADE AND IS NOT FINANCIAL ADVICE.
I also will hide the source code as it took me time to come up with this math and find a way to implement it on TradingView's Pine script.
FX SessionsForex Sessions Indicator
FX Sessions Indicator
This indicator is designed for high-precision Forex trading, focusing on the core liquidity windows of the global currency markets.
-Core Purpose: Tracks and visualizes the three major global trading sessions—Asia, London, and New York.
-Visual Style: Uses a clean, non-intrusive dotted-line box to define the high and low range of each session.
-Key Metric: Automatically calculates and displays the total Pip Range for each session, allowing for a quick assessment of volatility.
C-ustomization: Features a streamlined settings menu where you can toggle sessions on/off, adjust names, and modify time zones (defaulting to GMT-5).
-Lookback Logic: Optimized to maintain chart clarity by cleaning up historical data based on a user-defined lookback period.
Canon's Futures Opening Prices Futures Opening Prices
Daily Open 6p.m
Midnight Open 12a.m
9:30a.m Equity Open
10a.m Open Candle
Titan V40.0 Optimal Portfolio ManagerTitan V40.0 Optimal Portfolio Manager
This script serves as a complete portfolio management ecosystem designed to professionalize your entire investment process. It is built to replace emotional guesswork with a structured, mathematically driven workflow that guides you from discovering broad market trends to calculating the exact dollar amount you should allocate to each asset. Whether you are managing a crypto portfolio, a stock watchlist, or a diversified mix of assets, Titan V40.0 acts as your personal "Portfolio Architect," helping you build a scientifically weighted portfolio that adapts dynamically to market conditions.
How the 4-Step Workflow Operates
The system is organized into four distinct operational modes that you cycle through as you analyze the market. You simply change the "Active Workflow Step" in the settings to progress through the analysis.
You begin with the Macro Scout, which is designed to show you where capital is flowing in the broader economy. This mode scans 15 major sectors—ranging from Technology and Energy to Gold and Crypto—and ranks them by relative strength. This high-level view allows you to instantly identify which sectors are leading the market and which are lagging, ensuring you are always fishing in the right pond.
Once you have identified a leading sector, you move to the Deep Dive mode. This tool allows you to select a specific target sector, such as Semiconductors or Precious Metals, and instantly scans a pre-loaded internal library of the top 20 assets within that industry. It ranks these assets based on performance and safety, allowing you to quickly cherry-pick the top three to five winners that are outperforming their peers.
After identifying your potential winners, you proceed to the Favorites Monitor. This step allows you to build a focused "bench" of your top candidates. by inputting your chosen winners from the Deep Dive into the Favorites slots in the settings, you create a dedicated watchlist. This separates the signal from the noise, letting you monitor the Buy, Hold, or Sell status of your specific targets in real-time without the distraction of the rest of the market.
The final and most powerful phase is Reallocation. This is where the script functions as a true Portfolio Architect. In this step, you input your current portfolio holdings alongside your new favorites. The script treats this combined list as a single "unified pool" of candidates, scoring every asset purely on its current merit regardless of whether you already own it or not. It then generates a clear Action Plan. If an asset has a strong trend and a high score, it issues a BUY or ADD signal with a specific target dollar amount based on your total equity. If an asset is stable but not a screaming buy, it issues a MAINTAIN signal to hold your position. If a trend has broken, it issues an EXIT signal, advising you to cut the position to zero to protect capital.
Smart Logic Under the Hood
What makes Titan V40.0 unique is its "Regime Awareness." The system automatically detects if the broad market is in a Risk-On (Bull) or Risk-Off (Bear) state using a global proxy like SPY or BTC. In a Risk-On regime, the system is aggressive, allowing capital to be fully deployed into high-performing assets. In a Risk-Off regime, the system automatically forces a "Cash Drag," mathematically reducing allocation targets to keep a larger portion of your portfolio in cash for safety.
Furthermore, the scoring engine uses Risk-Adjusted math. It does not simply chase high returns; it actively penalizes volatility. A stock that is rising steadily will be ranked higher than a stock that is wildly erratic, even if their total returns are similar. This ensures that your "Maintenance" positions—assets you hold that are doing okay but not spectacular—still receive a proper allocation target, preventing you from being forced to sell good assets prematurely while ensuring you are effectively positioned for the highest probability of return.
Trader Guy MacrosMacro time windows for manipulation and distribution.
Customisable times - London, NY Open and NY PM sessions.
Full mode shows all time windows.
Auto clean removes previous session when a news session opens.
Single mode only just shows current time window as price action prints.
Vertical lines print ahead of macro time window to show you the start and end time of the window.
This is my personal code I created to show macro time windows for manipulation.






















