OPEN-SOURCE SCRIPT
Daily Range Zones: PDH/PDL with SL/TP

This indicator automatically plots the previous day's High and Low levels and projects dynamic Stop Loss (SL) and Take Profit (TP) zones based on the daily range percentage.
It is designed for traders focusing on daily range breakouts or mean reversion strategies around the Previous Day High (PDH) and Previous Day Low (PDL).
Key Features:
Level 0 & 1: Visualizes the exact High and Low of the reference timeframe (Daily).
Inner Zone (Orange): Calculated inside the range. Acts as a buffer for Stop Loss placement or entry zones for mean reversion.
Outer Zone (Purple): Calculated outside the range (extension). Acts as a primary Take Profit target for breakout trades.
Settings:
Fully customizable percentages for inner and outer zones.
Option to toggle between current day or previous day data.
Works on any timeframe (intraday charts recommended).
It is designed for traders focusing on daily range breakouts or mean reversion strategies around the Previous Day High (PDH) and Previous Day Low (PDL).
Key Features:
Level 0 & 1: Visualizes the exact High and Low of the reference timeframe (Daily).
Inner Zone (Orange): Calculated inside the range. Acts as a buffer for Stop Loss placement or entry zones for mean reversion.
Outer Zone (Purple): Calculated outside the range (extension). Acts as a primary Take Profit target for breakout trades.
Settings:
Fully customizable percentages for inner and outer zones.
Option to toggle between current day or previous day data.
Works on any timeframe (intraday charts recommended).
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.