High Low Yesterday

‎3211‎ مشاهدة
My friends, this is a very simple script, but it has some work to function the way it currently does.

Basically it prints the HIGH and LOW from previous day into the current day. This forms like a channel.
It's useful to visually detect when the price cross over the yesterday's high, or close under yesterday's low.

You can activate/deactivate colors as input parameter:
- Price above a previous high: fills green.
- Price below a previous low: fills red.
- Price inside previous low/high: fills blue.

Hope this helps to you too.
This only works for intraday resolutions only (less than 1D)

More to come: I'm working to include pre-market low/high for the current trading day.

إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة


Hi Thanks for sharing. If it can help you, here is a script that plots pre-markets high and lows. -----> Extended Session High/Low by freedom_trader_
+9 رد
Hi Rodrigo,

Thank you for the script, took is as source code.
Added some modifications, feel free to update yours if you want. Don't want to make duplicates.

//@author=Rodrigo Prieto
//December 2019
//Modded by VT
study("High Low Yesterday_mod",overlay=true,shorttitle="High Low Yesterday")
useColors = input(title="Fill with colors?",defval=true)
res = input(title="Resolution", defval="W", type=input.resolution) // option to change resolution without going into code
isess = session.regular
t = tickerid(syminfo.prefix, syminfo.ticker, session=isess)
igaps = barmerge.gaps_off

yOpen = security(t,res,open,gaps=igaps, lookahead=barmerge.lookahead_on) // takes information for
yClose = security(t,res,close,gaps=igaps, lookahead=barmerge.lookahead_on) // candle body

yesterdayHigh = security(t,res,high,gaps=igaps, lookahead=barmerge.lookahead_on)
yesterdayLow = security(t,res,low,gaps=igaps, lookahead=barmerge.lookahead_on)

// Plot the other time frame's data
a=plot(timeframe.isintraday ? yOpen : na, color=color.gray, linewidth=1, style=plot.style_linebr) // Draws body of the candle in Gray
b=plot(timeframe.isintraday ? yClose : na, color=color.gray, linewidth=1, style=plot.style_linebr) //

plot(timeframe.isintraday ? yesterdayHigh : na, color=color.lime, linewidth=1, style=plot.style_linebr)
plot(timeframe.isintraday ? yesterdayLow : na,, linewidth=1, style=plot.style_linebr)

fill(a,b,color=(useColors? yClose>yOpen ? : (yClose < yOpen ? : : color.white) ) // fills body with red/green color (according resolution)

How to add or subtract this high and low difference in next days opening price????
Thank you for your good indicator
Nice and Simple - clean Script
Hi, I have a similar script I use for showing previous period high and low. However, I'd like to a features but having trouble writing the script. Display the previous period pip size, that is the absolute value of previous period High minus previous period Low. Any thoughts?
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف تعمل مميزات الرسم البياني أسعار العضوية إحالة صديق قوانين الموقع مركز المساعدة حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مكتبة الرسوم البيانية صغيرة الحجم المدوّنة والأخبار تويتر
ملف التعريف إعدادات الصفحة الشخصية الحساب وإعداد الفواتير الأصدقاء المُحالون العملات الافتراضية تذاكر الدعم الخاصة بي مركز المساعدة التحاليل المنشورة المتابعين تُتابع رسالة خاصة المحادثة تسجيل الخروج