equitydurai81

ORB 15 Min By EquityDurai

#Let the index/stock trade for the first fifteen minutes and then use the high and low of this "fifteen minute range" as support and resistance levels.
#A buy signal is given when price exceeds the high of the 15 minute range after an up gap.
#A sell signal is given when price moves below the low of the 15 minute range after a down gap.
#It's a simple technique that works like a charm in many cases.

>If you use this technique, though, a few caveats are in order to avoid whipsaws and other market traps.
>The most common whipsaw is a trading range that lasts longer than 15 minutes.
>If an obvious range builds in 20, 25 or even 30 minutes , use those to define your support and resistance levels.
>Also consider the higher noise level in the morning.
>A breakout that extends only a tick or two can be easily reversed and trap you in a sudden loss.
>So let others take the bait at these levels, while you find pullbacks and narrow range bars for trade execution.
Release Notes: #Let the index/stock trade for the first fifteen minutes and then use the high and low of this "fifteen minute range" as support and resistance levels.
#A buy signal is given when price exceeds the high of the 15 minute range after an up gap.
#A sell signal is given when price moves below the low of the 15 minute range after a down gap.
#It's a simple technique that works like a charm in many cases.

>If you use this technique, though, a few caveats are in order to avoid whipsaws and other market traps.
>The most common whipsaw is a trading range that lasts longer than 15 minutes.
>If an obvious range builds in 20, 25 or even 30 minutes , use those to define your support and resistance levels.
>Also consider the higher noise level in the morning.
>A breakout that extends only a tick or two can be easily reversed and trap you in a sudden loss.
>So let others take the bait at these levels, while you find pullbacks and narrow range bars for trade execution.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

hi awesome script. I need a script to mark the 3rd 15mins candle high and low.
please guide me bro
+29 Reply
srsivasekhar ClikermanRP
@ClikermanRP, You can get it in chartink website
Reply
Great job.
If I want the script to start from 0930 - 1030 then end at end of day? (equities use)

Thank you
+20 Reply
An excellent way to see the opening trend thanks to that opening range script.
The duration of the opening can be a variable instead of 15 minutes only, let's say X the value in minutes and below I set 2 hours (120 minutes) instead of 15 for the OR as for an example:

up15on = input(true, title="X Minute Opening Range High")
down15on = input(true, title="X Minute Opening Range Low")
X=input("120")
is_newbar(res) => change(time(res)) != 0

adopt(r, s) => security(syminfo.tickerid,r, s)

high_range = valuewhen(is_newbar('D'),high,0)
low_range = valuewhen(is_newbar('D'),low,0)

high_rangeL = valuewhen(is_newbar('D'),high,0)
low_rangeL = valuewhen(is_newbar('D'),low,0)

up15 = plot(up15on ? adopt(X, high_rangeL): na, color = color.lime, linewidth=2)
down15 = plot(down15on ? adopt(X, low_rangeL): na, color = #ff0000, linewidth=2)
+7 Reply
Selvanagarajan parisseine
@parisseine,

// TimeFrame = TF; Opening Range High = ORH; Opening Range Low = ORL; Opening Range Average = ORA
study(title="TESTING ORB", shorttitle="TESTING ORB", overlay=true)

TF=input("120")
is_newbar(res) => change(time(res)) != 0

adopt(r, s) => security(tickerid, r, s)

ORH = valuewhen(is_newbar('D'), high, 0)
ORL = valuewhen(is_newbar('D'), low, 0)
ORA = (ORH + ORL)/2

High = plot(adopt(TF, ORH), color = #000000, linewidth = 2)
Low = plot(adopt(TF, ORL), color = #000000, linewidth = 2)
Average = plot(adopt(TF, ORA), color = #787B86, linewidth = 2)
//
+2 Reply
jaymakwana50 parisseine
@parisseine, what should be the code if i want to create strategy, where vwap cross ORH buy and exit @ 3:15 and vwap cross ORL sell and exit same. or price close above buy / sell when close below
Reply
for futures , I am getting HL and LL seperately. However, for stocks, the same script is giving only 1 line. What could be the issue?
Reply
in my chart the time starts from 9.00 am itself , as pre/post timig tried changing it but its not working any solutions please
Reply
HI i tried in my chart , but only getting a single line , low line is missing , any solutions ?
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 Private Messages Chat Sign Out