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.
فارسی:
این اندیکاتور بالاترین و پایینترین قیمت (سایه کندل، نه بدنه) روز معاملاتی قبل را بهصورت خطوط افقی مرجع روی چارت رسم میکند تا سطوح حمایت/مقاومت مهمی که از روز قبل باقی مانده مشخص شوند.
- در روزهای **سهشنبه تا جمعه**، بالاترین و پایینترین نقطهی **روز معاملاتی قبل** رسم میشود (مثلاً چهارشنبه، سقف/کف روز سهشنبه نشان داده میشود).
- در **دوشنبه**، چون بازار در تعطیلات آخر هفته بسته بوده، بهجای یک جفت خط، دو جفت جداگانه رسم میشود: **سقف/کف جمعه** (آخرین روز کامل معاملاتی) و **سقف/کف یکشنبه** (اولین بخش بازگشایی هفته)، هرکدام با رنگ متفاوت تا بهراحتی از هم تشخیص داده شوند.
- هر خط دقیقاً از ابتدای روز هدف شروع شده و فقط تا پایان همان روز ادامه دارد و به روز بعد کشیده نمیشود.
- رنگها، ضخامت خط و نوع خط (ممتد/خطچین/نقطهچین) کاملاً از تنظیمات قابل تغییر هستند.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.