Archived: Opening Range Breakout

Status
Not open for further replies.
@BenTen I have uploaded the ORBSupertrend indicators, they work fine....I entered the ORB Scanner but I think is not working... how do you use it? you scan at 8:45 CTM? and every now and then during the day you scan? trying to work this out.
 
Also really interested in the ALERT or Scan. @tommylala I've be seeing great correlation on up trends after it hits HTarget2 on my reach of past stocks.
Yes, my only dilemma is that it is hard to watch all tickers so a watchlist or scan that will alert when the ticker hits HTarget2. I have a feeling it does not exist only if a programmer is up for a challenge.
 
Hey Ben, its my first day here. Thanks for all of the great indicators. I think I'm doing something wrong with the ORB?

rWwSQ8J.png
[/IMG]
 
@laperchaser I don't think so. You have expansion areas on. That might be causing the issue. If you want, you can use the simplified version of ORB here. See if that one fixes the problem.
 
So Mobius posted an ORB study that draws lines for the High and Low of the first candle, but it changes based on the Chart Time Frame. I like to use the 15 minute chart for my ORB lines and then trade on the 5 min chart.

Is there a way to make the code below, do that? That is, draw the high and low of the 15 minute chart on any of the time frames I pull up or will it always be based off the first candle of the current time frame?

Code:
# ORB for TOS Mobile App
# Mobius
# V01.08.2018

def o = open;
def h = high;
def l = low;
def c = close;
def OpeningBell = getTime()[1] < RegularTradingStart(getYYYYMMDD()) and
                  getTime() > RegularTradingStart(getYYYYMMDD());
def RTH = getTime() >= RegularTradingStart(getYYYYMMDD()) and
          getTime() <= RegularTradingEnd(getYYYYMMDD());
def ORActive = getTime() >= OpeningBell and
               getTime() <= RegularTradingStart(getYYYYMMDD()) + 1800000;
def ORH = if OpeningBell
          then h
          else if ORActive and
                  h > ORH[1]
               then h
               else ORH[1];
def ORL = if OpeningBell
          then l
          else if ORActive and
                  l < ORL[1]
               then l
               else ORL[1];
plot ORhigh = if !ORActive and RTH
              then ORH
              else Double.NaN;
ORhigh.SetStyle(Curve.LONG_DASH);
ORhigh.SetLineWeight(3);
ORhigh.SetDefaultColor(Color.GREEN);
plot ORlow = if !ORActive and RTH
             then ORL
             else Double.NaN;
ORlow.SetStyle(Curve.LONG_DASH);
ORlow.SetLineWeight(3);
ORlow.SetDefaultColor(Color.RED);
def ORmeanActive = getTime() >= OpeningBell and
                   getTime() <= RegularTradingStart(getYYYYMMDD()) + 300000;
def ORmeanH = if OpeningBell
              then h
              else if ORmeanActive and h > ORmeanH[1]
                   then h
                   else ORmeanH[1];
def ORmeanL = if OpeningBell
              then l
              else if ORmeanActive and l < ORmeanL[1]
                   then l
                   else ORmeanL[1];
plot ORmean = if !ORmeanActive and RTH
              then Round(((ORmeanH + ORmeanL) / 2) / TickSize(), 0) * TickSize()
              else Double.NaN;
ORmean.SetStyle(Curve.LONG_DASH);
ORmean.SetLineWeight(3);
ORmean.SetDefaultColor(Color.YELLOW);
# End Code ORB for Mobile App
 
@CaptainNORDO

Change the first few lines of the code. But be-aware you need 15m to close to form the ORB and you can be in the lower timeframe not on the higher timeframe. Any frame higher then 15m will not show the ORB lines.

Code:
input aP = AggregationPeriod.FIFTEEN_MIN;
def o = open(period = aP);
def h = high(period = aP);
def l = low(period = aP);
def c = close(period = aP);
 
Good morning,
I would like to change the start on the ORBI from 9:30 to opening bell. Is that possible? If so can someone please guide me on how to change it.
Please and thank you
 
Good morning,
I would like to change the start on the ORBI from 9:30 to opening bell. Is that possible? If so can someone please guide me on how to change it.
Please and thank you
I like that idea too. I have been doing opening bell trades without success as it's a rollercoaster. After months of unsuccessful trades, I have decided not to trade for the first 30 minutes.
 
that is the whole idea. @s1111 you need to wait for a specific time to give you price range for a specific day. How about start from the beginning of what it is supposed to do? I would suggest read up this and may be few other Openrange threads on this form to see how openrange indicators are supposed to work before you deploy them in your strategy .

-S
 
Nice! this looks to be very useful. Can you please explain what the white line & RO mean? (Risk ON/OFF?) Also could you explain what Risk On ORL with red line and Risk On ORH with green line mean? Hope these questions make sense, thank you!

I’m also pondering the idea if somehow this could be turned into a watchlist column. Green bar for bull zone red bar for bear zone. 🤔
 
Status
Not open for further replies.

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
403 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top