rodrigo.aprieto

High Low Yesterday

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_
+11 השב
Can you help first candle of high and low should marked automatically?? is there any script available
השב
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.

//
//@version=4
//@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, color=color.red, linewidth=1, style=plot.style_linebr)

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

Regards,
Vikont
השב
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?
השב
בית סורק מניות סורק מט"ח סורק מטבעות-קריפטו יומן כלכלי איך זה עובד‏ תכונות גרף מחירון הפנה חבר כללי הבית מרכז תמיכה כלים לאתרים וברוקרים יישומונים פתרונות גרפיים ספריית גרפים קלי משקל בלוג וחדשות טוויטר‏
פרופיל הגדרות פרופיל חשבון וחיוב חברים מופנים מטבעות לשוניות התמיכה שלי מרכז תמיכה רעיונות שפורסמו עוקבים עוקב הודעות פרטיות צ'אט התנתק