OPEN-SOURCE SCRIPT
Updated High/Low de la Bougie Daily d'Hier

🧩 General Description
This indicator plots two horizontal lines on your chart every day:
One line at the High of yesterday’s daily candle
One line at the Low of yesterday’s daily candle
It is designed to help you quickly identify key market levels based on the previous day’s range — often used as:
Support/resistance zones
Breakout or rejection areas
Reference points for intraday strategies (e.g. New York session trading)
⚙️ How It Works
The indicator uses request.security to fetch data from the daily timeframe, regardless of the chart timeframe you're trading on (e.g. M15, H1).
It captures the high[1] and low[1] from yesterday’s daily candle.
These levels are displayed on your current chart using horizontal lines extended to the right, which automatically update every day.
🎨 Visual Style
High of yesterday: green, dashed line
Low of yesterday: red, dashed line
Lines are refreshed on every new bar to stay clean and updated
This indicator plots two horizontal lines on your chart every day:
One line at the High of yesterday’s daily candle
One line at the Low of yesterday’s daily candle
It is designed to help you quickly identify key market levels based on the previous day’s range — often used as:
Support/resistance zones
Breakout or rejection areas
Reference points for intraday strategies (e.g. New York session trading)
⚙️ How It Works
The indicator uses request.security to fetch data from the daily timeframe, regardless of the chart timeframe you're trading on (e.g. M15, H1).
It captures the high[1] and low[1] from yesterday’s daily candle.
These levels are displayed on your current chart using horizontal lines extended to the right, which automatically update every day.
🎨 Visual Style
High of yesterday: green, dashed line
Low of yesterday: red, dashed line
Lines are refreshed on every new bar to stay clean and updated
Release Notes
📄 Description:This script draws two dashed horizontal lines on your chart representing the high and low of yesterday's daily candle.
The lines start from the previous candle (yesterday) and extend into today.
The green dashed line shows yesterday’s high.
The red dashed line shows yesterday’s low.
Old lines are automatically deleted to keep the chart clean.
✅ Features:
Based on daily timeframe, even on lower chart timeframes (like 5min, 1h, etc.)
Lines are drawn only once per bar to avoid clutter
Works on any instrument or market
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.