silenThunderr

Opening High/Low Range Breakout Overlay

736 views
63
This Script Marks High and Low of Session's first candle based on your current Time Frame selected.
Remove from Favorite Scripts Add to Favorite Scripts

Comments

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © silenThunderr
//@version=4
//This will mark High Low based on your Current Time Frame in Current Session

study("Opening Range High/Low",shorttitle="ORB", overlay=true)

hTF = input("D", type=input.resolution)
sessSpec = input("0915-1530", type=input.session)

is_newbar(res, sess) =>
t = time(res, sess)
na(t) and not na(t) or t < t

newbar = is_newbar("1440", sessSpec)

var float s1 = na
var float s2 = na
if newbar
s1 := low
s2 := high

// plot(s1, style=plot.style_circles, linewidth=3, color=color.red , title="Low")
// plot(s2, style=plot.style_circles, linewidth=3, color=color.lime , title="High")

plot(s1>0 ? security(syminfo.tickerid, hTF, low) : na, style=plot.style_circles, linewidth=3, color=color.red , title="Low")
plot(s2, style=plot.style_circles, linewidth=3, color=color.lime , title="High")
Reply
Request you to please share code at anujsh202@yahoo.co.in
Reply
hello please provide codes that we can upgrade , and ass alerts , and put sl an tp
Reply
silenThunderr jayadevtrader121
@jayadevtrader121, will post EOD
Reply
jayadevtrader121 silenThunderr
@silenThunderr, where please send on jayadevrana12768@gmail.com or open source it for some time
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out