HMS Purnima Dates (2020–2030) with levelsFor Backteting Purpose Only,
Its Important date is High and low is very imporatnt and if breck any side most problebly movenebt will get so this type of trade will getting from this indicator,
just for education purpose only its not any trade recommadatio
Search in scripts for "Cycle"
HOPE(EMA) ROPE(IC)Confucius say: Man at end of rope finds hope; man drunk on hope soon finds rope
-HaggisZero
TF Sesje HandloweTF Sesje Handlowe – Timeframe & Session Zones Indicator
TF Sesje Handlowe is an advanced TradingView indicator that visualizes market session zones (Asia, London, New York) and key session, day, week, and month levels. It helps traders quickly identify important trading areas and potential reversal points.
Key Features:
Session Zones: Displays opening and closing hours of major markets, with customizable colors, labels, and transparency.
Session Lines: Automatically plots session highs, lows, and midpoints, with optional alerts when levels are broken.
Daily/Weekly/Monthly Lines (D/W/M): Shows open, high, and low for D/W/M intervals, with High/Low alert support.
Previous Year High/Low: Plots the previous year’s highs and lows on the chart for historical reference.
Day Labels: Optionally displays day-of-week labels and vertical lines marking the start of a new day.
Highly Customizable: Line style and thickness, colors, transparency, label positions, and more.
Alerts Support: Alerts for session line breaks, High/Low levels, and D/W/M points.
TF Sesje Handlowe is perfect for traders who want to visually analyze market activity across time zones and identify key support and resistance levels.
Bot Analyzer📌 Script Name: Bot Analyzer
This TradingView Pine Script v5 indicator creates a dashboard table on the chart that helps you analyze any asset for running a martingale grid bot on futures.
🔧 User Inputs
TP % (tpPct): Take Profit percentage.
SO step % (soStepPct): Step size between safety orders.
SO n (soCount): Number of safety orders.
M mult (martMult): Martingale multiplier (how much each next order increases in size).
Lev (leverage): Leverage used in futures.
BB len / BB mult: Bollinger Bands settings for measuring channel width.
ATR len: ATR period for volatility.
HV days: Lookback window (days) for Historical Volatility calculation.
📐 Calculations
ATR % (atrPct): Normalized ATR relative to price.
Bollinger Band width % (bbPct): Market channel width as percentage of basis.
Historical Volatility (hvAnn): Annualized volatility, calculated from daily log returns.
Dynamic Step % (dynStepPct): Step size for safety orders, automatically adjusted from ATR and clamped between 0.3% and 5%.
Covered Move % (coveredPct): Total percentage move the bot can withstand before last safety order.
Martingale Size Factor (sizeFactor): Total position size multiplier after all safety orders, based on martingale multiplier.
Risk Score (riskLabel): Simple risk estimate:
Low if risk < 30
Mid if risk < 60
High if risk ≥ 60
📊 Output (Table on Chart)
At the top-right of the chart, the script draws a table with 9 rows:
Metric Value
BB % Bollinger Band width in %
HV % Historical Volatility (annualized %)
TP % Take profit setting
SO step % Safety order step size
SO n Number of safety orders
M mult Martingale multiplier
Dyn step % Dynamic step based on ATR
Size x Total position size factor (e.g., 4.5x)
Risk Risk label (Low / Mid / High)
⚙️ Use Case
Helps choose coins for a martingale bot:
If BB% is wide and HV% is high → the asset is volatile enough.
If Risk shows "High" → parameters are aggressive, you may need to adjust step size, SO count, or leverage.
The dashboard lets you compare assets quickly without switching between multiple indicators.
Niveles Anuales +-5% con PreciosNiveles calculados de % de precios según el precio de apertura anual
TF ZonesTF Zones – Timeframe & Session Zones Indicator
TF Zones is an advanced TradingView indicator that visualizes market session zones (Asia, London, New York) and key session, day, week, and month levels. It helps traders quickly identify important trading areas and potential reversal points.
Key Features:
Session Zones: Displays opening and closing hours of major markets, with customizable colors, labels, and transparency.
Session Lines: Automatically plots session highs, lows, and midpoints, with optional alerts when levels are broken.
Daily/Weekly/Monthly Lines (D/W/M): Shows open, high, and low for D/W/M intervals, with High/Low alert support.
Previous Year High/Low: Plots the previous year’s highs and lows on the chart for historical reference.
Day Labels: Optionally displays day-of-week labels and vertical lines marking the start of a new day.
Highly Customizable: Line style and thickness, colors, transparency, label positions, and more.
Alerts Support: Alerts for session line breaks, High/Low levels, and D/W/M points.
TF Zones is perfect for traders who want to visually analyze market activity across time zones and identify key support and resistance levels.
Global Sessions Background (Auto DST) — US · EU · ASIA[by Irum]목적 & 정의 (KR/EN)
목적 (KR)
차트에 미국/유럽/아시아 주요 세션을 자동으로 음영 처리하여, 시세 흐름을 세션 맥락(개장/중첩/점심 휴장 등) 속에서 빠르게 파악하도록 돕습니다. DST(서머타임)를 IANA 타임존 기반으로 자동 반영합니다.
Definition (EN)
Shade the chart background for US/EU/ASIA sessions so you can instantly read price action in the right session context (open/overlap/lunch break). Daylight Saving Time is auto-handled via IANA time zones.
설정 메뉴 매뉴얼 (KR/EN)
1) 시각화 / Visualization
투명도 / Transparency (int 0~100, 기본 85)
KR: 배경 투명도. 0=진하게, 100=완전 투명.
EN: Background opacity. 0=solid, 100=fully transparent.
표시 우선순위 / Draw Priority (옵션)
KR: 세션 겹침 시 오른쪽 항목일수록 최종 표시. 예) US > EU > ASIA면 US가 최우선.
EN: When sessions overlap, the rightmost wins. E.g., US > EU > ASIA gives top priority to US.
세션 라벨 표시 / Show session labels (bool)
KR: 세션 시작봉에 “US/EU/ASIA” 라벨을 소형으로 표시.
EN: Drops a tiny “US/EU/ASIA” label at each session start bar.
2) 미국장 / US Session
미국장 배경 표시 / Show US session (bool)
KR: 미국장 음영 켬/끔.
EN: Toggle US shading.
미국 타임존 (IANA) / US Timezone (IANA) (string)
KR: 기본 America/New_York. IANA이므로 DST 자동 반영.
EN: Default America/New_York. IANA tz, DST auto-handled.
정규장(RTH) / Regular Trading Hours (session)
KR: 기본 0930-1600. 필요 시 수정.
EN: Default 0930-1600. Adjust as needed.
프리마켓·애프터 포함 / Include pre/after (bool)
KR: 프리마켓/애프터 시간도 함께 음영.
EN: Include pre-market and after-hours shading.
프리마켓 / Pre-market (session), 애프터마켓 / After-hours (session)
KR/EN: 세부 시간 개별 지정.
배경색 / Background color (color)
KR/EN: 미국장 음영 색상.
3) 유럽장 / Europe Session
유럽장 배경 표시 / Show EU session (bool)
유럽 타임존 (IANA) / Europe Timezone (IANA) (string) — 기본 Europe/London
정규장 / Regular Trading Hours (session) — 기본 0800-1630
배경색 / Background color (color)
(KR/EN 동일 의미. DST 자동 반영.)
4) 아시아장 / Asia Session
아시아장 배경 표시 / Show Asia session (bool)
아시아 타임존 (IANA) / Asia Timezone (IANA) (string) — 기본 Asia/Seoul
분할세션 사용(점심휴장) / Use split sessions (bool)
KR: 켜면 오전/오후(점심 휴장)로 분할 적용.
EN: If ON, use morning/afternoon split around lunch break.
연속 세션 / Continuous session (session) — 기본 0900-1530
오전 / Morning (session) — 기본 0900-1130
오후 / Afternoon (session) — 기본 1230-1530
배경색 / Background color (color)
4H Candles High and Lows (#1-6) UTC - Last 32h - Colored BlocksThis script creates horizontal rays on the high and low in a 4 Hour period.
Shade 4H Blocks PSTShades a 4H timeframe intraday. The purpose is to remind me what 4H candle I am operating in without having to manually mark it on the lower-timeframe charts I am watching.
4H Weekly Candle Counter - Increments from Sunday until Friday This script will count the first 4H candle close on Sunday all the way until the final candle of the week on Friday.
4H Weekly Candle Counter (UTC - Dynamic)Counts the 4H Candles on a given trading day. Made specifically for the /ES. (The first 4H Candle opens at 15:00 Sunday-Thursday)
TF ZONES VIPTF Zones is a session and higher-timeframe reference tool for intraday and swing traders (ICT / SMC concepts).
🔹 Features
Killzones (Sessions):
Automatically draws Asia, London, New York AM, New York Lunch, and New York PM ranges.
• Customizable box colors, transparency, and labels
• High/Low pivot lines with optional midpoints
• Alerts when pivots are broken
Day / Week / Month Levels:
• Daily / Weekly / Monthly Opens
• Daily / Weekly / Monthly Highs & Lows
• Alerts on High/Low breaks
Day-of-Week Zones:
Color-coded boxes for each weekday (Mon–Sun) to track daily ranges.
Previous Year High/Low:
Plots prior year’s H/L with labels (PY.H / PY.L).
🔧 Customization
Session drawing limits (max days stored)
Timezone selection (GMT offsets or New York)
Label size, text color, and line style
Box transparency and text display options
Optional alerts on key level breaks
📌 Use Case
Perfect for traders who want to:
Track session ranges (ICT Killzones)
Visualize intraday structure clearly
Use Daily / Weekly / Monthly opens and ranges as confluence
Monitor higher-timeframe and yearly reference levels
TF ZonesTF Zones is a session and higher-timeframe reference tool for intraday and swing traders (ICT / SMC concepts).
🔹 Features
Killzones (Sessions):
Automatically draws Asia, London, New York AM, New York Lunch, and New York PM ranges.
• Customizable box colors, transparency, and labels
• High/Low pivot lines with optional midpoints
• Alerts when pivots are broken
Day / Week / Month Levels:
• Daily / Weekly / Monthly Opens
• Daily / Weekly / Monthly Highs & Lows
• Alerts on High/Low breaks
Day-of-Week Zones:
Color-coded boxes for each weekday (Mon–Sun) to track daily ranges.
Previous Year High/Low:
Plots prior year’s H/L with labels (PY.H / PY.L).
🔧 Customization
Session drawing limits (max days stored)
Timezone selection (GMT offsets or New York)
Label size, text color, and line style
Box transparency and text display options
Optional alerts on key level breaks
📌 Use Case
Perfect for traders who want to:
Track session ranges (ICT Killzones)
Visualize intraday structure clearly
Use Daily / Weekly / Monthly opens and ranges as confluence
Monitor higher-timeframe and yearly reference levels
Trading Sessions (L3J) Trading Sessions Indicator (L3J)
Overview
This Pine Script indicator displays precise trading session boxes for the three major global trading sessions: Asia, London, and US (Cash). Unlike traditional session indicators that show continuous background colors, this script creates rectangular boxes that precisely delimit each session from start to finish.
Features
🌍 Global Timezone Support
- 39 timezone options covering all major financial centers
- Automatic daylight saving time adjustments for named timezones
- Universal compatibility with all TradingView charts
📦 Session Boxes
- Precise delimitation: Each session is contained within a rectangular box
- Dynamic sizing: Boxes automatically adjust to session high/low prices
- Visual distinction: Completed sessions (solid borders) vs ongoing sessions (dashed borders)
- Customizable borders: Toggle on/off with adjustable thickness (0-5px)
🎨 Visual Customization
- Individual session colors: Fully customizable for Asia, London, and US sessions
- Border matching: Border colors automatically match session box colors
- Transparency control: Built-in opacity settings for each session
- Clean interface: Minimal visual clutter with maximum information
⚙️ Management Options
- Box limit control: Set maximum number of historical boxes per session (1-50)
- Automatic cleanup: Old boxes are automatically removed to maintain performance
- Memory efficient: Optimized for long-term chart analysis
Default Session Times (EDT - Etc/GMT+4)
| Session | Default Hours | Markets Covered |
|---------|---------------|-----------------|
| Asia | 18:00 - 02:00 | Tokyo, Sydney, Hong Kong |
| London | 02:00 - 11:00 | London, Frankfurt, European markets |
| US Cash | 09:30 - 16:00 | NYSE, NASDAQ |
> Note: Default times are in EDT (Eastern Daylight Time). Adjust session hours according to your selected timezone.
Timezone Conversion Examples
For UTC Users:
- Asia: 22:00 - 06:00
- London: 06:00 - 15:00
- US: 13:30 - 20:00
For Europe/London Users:
- Asia: 23:00 - 07:00
- London: 07:00 - 16:00
- US: 14:30 - 21:00
Usage Instructions
1. Add to chart: Apply the indicator to any timeframe
2. Select timezone: Choose your local timezone from the dropdown
3. Adjust session hours: Modify session times if needed for your timezone
4. Customize appearance: Set colors, borders, and box limits
5. Enable/disable sessions: Toggle individual sessions on/off as needed
Technical Specifications
- Pine Script Version: v6
- Chart Type: Overlay indicator
- Maximum Objects: 150 boxes, 500 lines, 200 labels
- Performance: Optimized for real-time updates
- Compatibility: All TradingView chart types and timeframes
Integration with Other Scripts
This indicator is designed to work seamlessly with other L3J trading scripts:
- ICT Levels Indicators: Provides session context for key levels
- Market Structure Scripts: Session boxes help identify structural breaks
- Volume Profile Tools: Session delimitation for volume analysis
- Support/Resistance Scripts: Session-based level identification
> Recommended: Use this as a base layer with other L3J indicators for comprehensive market analysis.
Key Benefits
🎯 Precision Trading
- Exact session boundaries: No guesswork about session start/end times
- Clean visual reference: Clear session delimitation for strategy execution
- Multi-timeframe compatibility: Works on all chart timeframes
📊 Professional Analysis
- Institution-grade accuracy: Matches professional trading platforms
- Customizable for any strategy: Adaptable to various trading approaches
- Performance optimized: Minimal impact on chart loading times
🔄 Real-time Updates
- Live session tracking: Ongoing sessions update in real-time
- Automatic management: Old sessions are cleaned up automatically
- Memory efficient: Optimized for extended trading sessions
Author Information
Created by: L3J
Version: 1.0
Category: Session Analysis / Market Hours
License: For use with L3J trading script ecosystem
---
Support & Integration
This indicator is part of the L3J Trading Script Collection. For optimal results, combine with other L3J indicators:
- ICT Key Levels
- Market Structure Analysis
- Volume Profile Tools
- Support/Resistance Scripts
Note: This script is specifically designed to complement and enhance other L3J trading tools. Individual use is supported, but maximum effectiveness is achieved when used as part of the complete L3J trading system.
---
For technical support or integration questions, refer to the L3J script documentation or community resources.
XAU 0/5 GridThis indicator draws horizontal price grids for XAUUSD. It anchors the grid to a base price that ends with 0 or 5, then plots equally spaced levels every 5 price units above and below that base. It’s a clean way to eyeball fixed-interval structure for rough support/resistance zones and simple TP/SL planning.
How it works
Base (0/5):
base = floor(close / 5) × 5 → forces the base to always end with 0/5.
Grid levels:
level_i = base + i × 5, where i is any integer (positive/negative).
The script updates positions only when the base changes to avoid flicker and reduce chart load.
It uses a persistent line array to manage the line objects efficiently.
Usage
Add the indicator to an XAUUSD chart on any timeframe.
Configure in the panel:
Show Lines – toggle visibility
Lines each side – number of lines above/below the base
Line Color / Line Width – appearance
Use the grid as fixed reference levels (e.g., 3490, 3495, 3500, 3505, …) for planning TP/SL or observing grid breaks.
Highlights
Strict 0/5 anchoring keeps levels evenly spaced and easy to read on gold.
Auto-reanchors when price moves to a new 0/5 zone, maintaining a steady view.
Lightweight design: lines are created once and then updated, minimizing overhead.
Limitations
Visualization only — not a buy/sell signal.
Spacing is fixed at 5 price units, optimized for XAUUSD. If used on other symbols/brokers with different tick scales, adjust the logic accordingly.
Grid lines do not guarantee support/resistance; always combine with broader market context.
Ultimate Fundamental FortressScript Overview
This script provides a comprehensive Fundamental Health Scorecard for stocks, calculating a normalized score out of 100 based on key financial metrics fetched from TradingView's fundamental data. It displays the results in an elegant table with customizable colors, a dynamic plot for visualization, and a scorecard label for quick insights. The scorecard helps users assess a stock's value, profitability, and financial strength at a glance.
Purpose
The primary goal is to simplify fundamental analysis by aggregating essential ratios into a single, easy-to-interpret score. Inspired by value investing principles (e.g., low P/E and P/B for undervalued stocks, high ROE for efficiency), it empowers traders and investors to identify strong fundamentals quickly. It's especially useful for screening undervalued opportunities or comparing stocks within sectors.
Principles
Metrics Selection: Focuses on core fundamentals: Price-to-Book (P/B), Price-to-Earnings (P/E), Return on Equity (ROE), Debt-to-Equity (D/E), Free Cash Flow (FCF normalized by market cap), EBITDA (normalized by market cap), and Net Profit Margin. These are chosen for their balance of valuation, profitability, and risk assessment.
Scoring Philosophy: Each metric is scored based on thresholds (e.g., low ratios for valuation metrics indicate better value). If manual sector averages are provided, scoring becomes relative (e.g., stock P/B below sector average gets higher points), reducing subjectivity and adapting to industry norms. Without averages, absolute thresholds apply.
Normalization: Scores are summed and scaled to 100, ignoring missing data to ensure robustness. This allows fair comparison across stocks with varying data availability.
Customization: Users can adjust thresholds, colors, and sector averages for personalized analysis, making it flexible for different markets or strategies.
Calculation Methodology
Data Fetching: Uses request.financial() to pull quarterly (FQ) or trailing twelve months (TTM) data for metrics like BVPS, EPS, ROE, etc.
Ratio Computations:
P/B = Close Price / BVPS
P/E = Close Price / EPS
ROE = Directly fetched
D/E = Total Liabilities / Equity
Net Margin = Net Income / Revenue
Normalized FCF = FCF / Market Cap (as percentage)
Normalized EBITDA = EBITDA / Market Cap (as percentage)
Scoring:
For each metric, compare to thresholds or relative to sector averages (if provided >0).
Example for P/B: If relative (sector avg >0), stock P/B < avg * high factor → 15 pts; < avg * med factor → 10 pts; etc.
For ROE/Net Margin (higher is better): Reverse logic (stock > avg / factor).
FCF/EBITDA: Always absolute (normalized thresholds).
Minimum score per metric: 2-5 pts if poor.
Total Score: Sum valid scores, divide by max possible for those metrics, multiply by 100.
Output: Table shows components, values, scores, and sector avgs.
Plot visualizes score with color-coding.
Label categorizes (e.g., "Buffett Approved" for 85+).
User Inputs and Benefits
Thresholds (Absolute/Relative Factors): Customize scoring rules (e.g., change P/E low threshold from 10 to 12).
Benefit: Adapt to personal strategy or market conditions – e.g., stricter for growth stocks.
Manual Sector Averages: Enter averages (e.g., sector P/B = 2.5).
Benefit: Makes scoring industry-specific, reducing bias (e.g., tech's high P/E normal, banking's low ROE risky). If not entered (≤0), falls back to absolute for simplicity.
Color Customizations: Adjust table colors (header, scores).
Benefit: Personalize visuals for dark/light themes, improving readability and user experience.
Normalized FCF/EBITDA Thresholds: Set as % of market cap. Benefit: Size-independent comparison – small caps won't be disadvantaged.
Usage Notes Add to chart via Indicators menu.
Data relies on TradingView fundamentals – may be limited for some exchanges (e.g., BIST, international). Use manual averages for accuracy.
For screener: High request count (10) may exceed limits; use reduced version if needed.
Not financial advice – always verify with external sources.
Feedback welcome – let's improve together!
Trend Following CryptoSmartTrend Following CryptoSmart is a hybrid trend-following system designed for traders who value visual precision, structured logic, and clean confirmations.
This indicator combines a hybrid main line (EMA + trailing stop behavior) with a parallel secondary line, both offset from price by customizable distance. The logic resets on MACD crossovers and behaves like a dynamic visual stop, never repainting against trend.
Features include:
Modular lines with professional-grade smoothing
Shadow between price and trend, with separate color and opacity for bullish and bearish conditions
Displaced Long/Short labels with customizable style
Visual markers over native candles, without replacing them
Ideal for Smart Money flows, visual entry systems, and multi-timeframe confirmations.
This script is optimized for clarity, accessibility, and full customization. Every parameter is adjustable from the settings panel, allowing traders to tailor both visual and logical behavior to their strategy.
RSI Cross Alerts with Vertical Lines (9:30 AM - 2:45 PM)RSI Cross Alerts - Indicates Vertical Lines on previous times the RSI Indicator Crosses Overbought or Oversold parameters set by user.
NY Sessions Boxes (Live Drawing)//@version=5
indicator("NY Sessions Boxes (Live Drawing)", overlay=true)
ny_tz = "America/New_York"
t = time(timeframe.period, ny_tz)
hour_ny = hour(t)
minute_ny = minute(t)
// سشن ۱: 02:00 – 05:00
session1_active = (hour_ny >= 2 and hour_ny < 5)
session1_start = (hour_ny == 2 and minute_ny == 0)
// سشن ۲: 09:30 – 11:00
session2_active = ((hour_ny == 9 and minute_ny >= 30) or (hour_ny > 9 and hour_ny < 11))
session2_start = (hour_ny == 9 and minute_ny == 30)
var box box1 = na
var float hi1 = na
var float lo1 = na
if session1_start
hi1 := high
lo1 := low
box1 := box.new(left = time, right = time, top = high, bottom = low, bgcolor=color.new(color.blue, 85), border_color=color.blue)
if session1_active and not na(box1)
hi1 := math.max(hi1, high)
lo1 := math.min(lo1, low)
box.set_right(box1, time)
box.set_top(box1, hi1)
box.set_bottom(box1, lo1)
if not session1_active and not na(box1)
box1 := na
hi1 := na
lo1 := na
var box box2 = na
var float hi2 = na
var float lo2 = na
if session2_start
hi2 := high
lo2 := low
box2 := box.new(left = time, right = time, top = high, bottom = low, bgcolor=color.new(color.purple, 85), border_color=color.purple)
if session2_active and not na(box2)
hi2 := math.max(hi2, high)
lo2 := math.min(lo2, low)
box.set_right(box2, time)
box.set_top(box2, hi2)
box.set_bottom(box2, lo2)
if not session2_active and not na(box2)
box2 := na
hi2 := na
lo2 := na
Jipi QT (15m/5m/1m)indicateur de jipi pour délimiter les trimestres sur les TF de 15min, 5 min et 1min
MultiSessions traderglobal.topEste indicador de sesiones está diseñado para traders intradía que desean visualizar con precisión la actividad y la volatilidad característica de cada mercado. Basado en Pine Script v5 y optimizado para la zona horaria “America/New_York”, divide el día en sub-sesiones configurables y resalta sus rangos de precio en tiempo real. En particular, incorpora tres bloques para New York (NY1, NY2, NY3), dos para Londres (LON1, LON2), dos para Tokio (TKO1, TKO2) y mantiene Sídney como sesión opcional. Cada bloque puede activarse o desactivarse de forma independiente y cuenta con su propio color ajustable, lo que permite construir mapas visuales claros para estrategias basadas en horario, solapamientos y micro-estructuras de mercado.
El panel de inputs incluye la opción “Activate High/Low View”. Cuando está activada, el indicador calcula de manera incremental el mínimo y máximo de cada sub-sesión y sombrea el área entre ambos con fill, proporcionando una referencia inmediata del rango intrasesión (útil para medir compresión/expansión y posibles rompimientos). Cuando está desactivada, emplea un simple bgcolor por bloque, ideal para traders que prefieren un gráfico más limpio y solo desean distinguir visualmente los tramos horarios.
La lógica central utiliza dos funciones auxiliares: is_session(sess), que detecta si la vela actual pertenece a un tramo horario concreto, e is_newbar(sess), que determina el inicio de una nueva barra de referencia según la resolución elegida (D, W o M). Gracias a esta combinación, en cada sub-sesión el indicador reinicia sus contadores de alto y bajo al comenzar el período y los actualiza vela a vela mientras el bloque siga activo. Este enfoque evita mezclas de datos entre sesiones y asegura que el rango que se muestra corresponda estrictamente al segmento horario configurado.
Los horarios por defecto están pensados para Forex y contemplan casos que cruzan medianoche (por ejemplo, Tokio 2 y Sídney). Pine Script admite rangos como 2200-0200; no obstante, si tu bróker o la zona horaria del gráfico generan un sombreado parcial, basta con dividir el tramo en dos: 2200-2359 y 0000-0200. Asimismo, cada input.session incluye el patrón :1234567 para habilitar los siete días; puedes restringir días según tu operativa.
En cuanto al uso práctico, el indicador facilita identificar: (1) la estructura del rango por sub-sesión (útil para estrategias de breakout/mean-reversion), (2) los solapamientos entre Londres y New York, donde suele concentrarse la liquidez, y (3) períodos de menor volatilidad (tramos tardíos de Asia o previos a noticias). El color independiente por bloque te permite codificar visualmente la importancia o tu plan de trading (por ejemplo, tonos más intensos en ventanas de alta probabilidad).
Finalmente, su diseño modular hace sencilla la personalización: puedes ajustar colores, activar/desactivar bloques, cambiar horarios y modificar la resolución de reseteo del rango. Como posible mejora, se pueden añadir alertas de ruptura de máximos/mínimos de sub-sesión o etiquetas con la altura del rango (pips) al cierre. Este indicador no sustituye el juicio del trader ni constituye recomendación financiera, pero ofrece una base visual robusta para integrar el factor tiempo en la toma de decisiones.
This sessions indicator is built for intraday traders who want a precise, time-aware view of market activity and typical volatility patterns across the day. Written in Pine Script v5 and optimized for the “America/New_York” timezone, it divides the trading day into configurable sub-sessions and highlights their price ranges in real time. Specifically, it provides three blocks for New York (NY1, NY2, NY3), two for London (LON1, LON2), two for Tokyo (TKO1, TKO2), and keeps Sydney as an optional session. Each block can be enabled or disabled independently and comes with its own adjustable color, letting you build clear visual maps for time-based strategies, overlaps, and microstructure nuances.
In the inputs panel you’ll find the “Activate High/Low View” option. When enabled, the indicator incrementally computes each sub-session’s low and high and shades the area between them with fill, giving you an immediate reference to the intra-session range (useful for gauging compression/expansion and potential breakouts). When disabled, it switches to a clean bgcolor background by block—ideal if you prefer a minimal chart and simply want to distinguish time windows at a glance.
The core logic relies on two helper functions: is_session(sess), which detects whether the current bar falls within a given time window, and is_newbar(sess), which identifies the start of a new reference bar according to your chosen reset resolution (D, W, or M). With this combination, each sub-session resets its high/low at the beginning of the period and updates them bar by bar while the block remains active. This prevents cross-contamination between sessions and ensures the range you see belongs strictly to the configured segment.
Default hours are suited to Forex and include segments that cross midnight (e.g., Tokyo 2 and Sydney). Pine Script supports ranges like 2200-0200; however, if your broker or chart timezone causes partial shading, simply split the segment into two: 2200-2359 and 0000-0200. Each input.session uses the :1234567 suffix to enable all seven days; you can easily restrict days to match your plan.
Practically speaking, the indicator helps you identify: (1) range structure by sub-session (great for breakout or mean-reversion frameworks), (2) overlaps between London and New York, where liquidity and directional moves often concentrate, and (3) lower-volatility windows (late Asia or pre-news lulls). Independent colors per block let you visually encode priority or your trading plan (for example, richer tones in high-probability windows).
Thanks to its modular design, customization is straightforward: adjust colors, toggle blocks, change hours, and tweak the range-reset resolution to suit your routine. As a natural extension, you can add alerts for sub-session high/low breakouts or labels that display the range height (in pips) at session close. While no indicator replaces trader judgment or constitutes financial advice, this tool offers a robust visual foundation for incorporating the time factor directly into your decision-making, helping you contextualize price action within the rhythm of global trading sessions.
Indian Financial Year QuartersTo identify financial quarters in the chart in context of Indian financial quarter timing