OPEN-SOURCE SCRIPT
Daily Levels [Dr-Ram]

English:
This indicator plots the previous trading day's highest and lowest wick prices as horizontal reference lines, helping traders spot key support/resistance levels carried over from the prior session.
- On **Tuesday–Friday**, it draws the **High** and **Low** of the immediately preceding trading day (e.g., on Wednesday it shows Tuesday's High/Low).
- On **Monday**, since the market was closed over the weekend, it draws two separate reference pairs instead: **Friday's High/Low** (last full trading day) and **Sunday's High/Low** (the initial weekend/open session), each in its own color so they can be told apart at a glance.
- Each line begins at the start of its target day and extends only through that day — it does not carry over into the next day.
- Colors, line width, and line style (solid/dashed/dotted) are fully customizable in the settings.
فارسی:
این اندیکاتور بالاترین و پایینترین قیمت (سایه کندل، نه بدنه) روز معاملاتی قبل را بهصورت خطوط افقی مرجع روی چارت رسم میکند تا سطوح حمایت/مقاومت مهمی که از روز قبل باقی مانده مشخص شوند.
- در روزهای **سهشنبه تا جمعه**، بالاترین و پایینترین نقطهی **روز معاملاتی قبل** رسم میشود (مثلاً چهارشنبه، سقف/کف روز سهشنبه نشان داده میشود).
- در **دوشنبه**، چون بازار در تعطیلات آخر هفته بسته بوده، بهجای یک جفت خط، دو جفت جداگانه رسم میشود: **سقف/کف جمعه** (آخرین روز کامل معاملاتی) و **سقف/کف یکشنبه** (اولین بخش بازگشایی هفته)، هرکدام با رنگ متفاوت تا بهراحتی از هم تشخیص داده شوند.
- هر خط دقیقاً از ابتدای روز هدف شروع شده و فقط تا پایان همان روز ادامه دارد و به روز بعد کشیده نمیشود.
- رنگها، ضخامت خط و نوع خط (ممتد/خطچین/نقطهچین) کاملاً از تنظیمات قابل تغییر هستند.
This indicator plots the previous trading day's highest and lowest wick prices as horizontal reference lines, helping traders spot key support/resistance levels carried over from the prior session.
- On **Tuesday–Friday**, it draws the **High** and **Low** of the immediately preceding trading day (e.g., on Wednesday it shows Tuesday's High/Low).
- On **Monday**, since the market was closed over the weekend, it draws two separate reference pairs instead: **Friday's High/Low** (last full trading day) and **Sunday's High/Low** (the initial weekend/open session), each in its own color so they can be told apart at a glance.
- Each line begins at the start of its target day and extends only through that day — it does not carry over into the next day.
- Colors, line width, and line style (solid/dashed/dotted) are fully customizable in the settings.
فارسی:
این اندیکاتور بالاترین و پایینترین قیمت (سایه کندل، نه بدنه) روز معاملاتی قبل را بهصورت خطوط افقی مرجع روی چارت رسم میکند تا سطوح حمایت/مقاومت مهمی که از روز قبل باقی مانده مشخص شوند.
- در روزهای **سهشنبه تا جمعه**، بالاترین و پایینترین نقطهی **روز معاملاتی قبل** رسم میشود (مثلاً چهارشنبه، سقف/کف روز سهشنبه نشان داده میشود).
- در **دوشنبه**، چون بازار در تعطیلات آخر هفته بسته بوده، بهجای یک جفت خط، دو جفت جداگانه رسم میشود: **سقف/کف جمعه** (آخرین روز کامل معاملاتی) و **سقف/کف یکشنبه** (اولین بخش بازگشایی هفته)، هرکدام با رنگ متفاوت تا بهراحتی از هم تشخیص داده شوند.
- هر خط دقیقاً از ابتدای روز هدف شروع شده و فقط تا پایان همان روز ادامه دارد و به روز بعد کشیده نمیشود.
- رنگها، ضخامت خط و نوع خط (ممتد/خطچین/نقطهچین) کاملاً از تنظیمات قابل تغییر هستند.
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.