Start aggregations at market open checked on or off?@Miket Settings > Equities > Untick "Show Extended-Hours"
Start aggregations at market open checked on or off?@Miket Settings > Equities > Untick "Show Extended-Hours"
When the Extended-Hours Trading session is hidden, you can select Start aggregations at market open so that intraday bars are aggregated starting at regular market open (8:30 am CST).
Hi. Do you still track this indicator? really like it. what is the meaning of the red line within the Bear zone and the green line within the bull zone? also, do you keep your super trend indicator on 1? and finally does #risk on ORL# mean it's about to break or inversely work as support or resistance? THX!!TSLA trying to cross the border going into Bull Zone but got hit with a resistance and fell back down. Supertrend came through.
def na=double.nan;
input ORBegin = 0930;
input OREnd = 1000;
input ShowTodayOnly={"No", default "Yes"};
def s=ShowTodayOnly;
Def ORActive = if secondstilltime(OREnd)>0 AND secondsfromtime(ORBegin)>=0 then 1 else 0;
def today=if s==0 OR getday()==getlastday() AND secondsfromtime(ORBegin)>=0 then 1 else 0;
Rec ORHigh = if ORHigh[1]==0 or ORActive[1]==0 AND ORActive==1 then high else if ORActive AND high>ORHigh[1] then high else ORHigh[1];
Rec ORLow = if ORLow [1] ==0 or ORActive [1] ==0 AND ORActive ==1 then low else if ORActive AND low < orlow [1] then low else ORLow [1];
Def ORWidth = ORHigh - ORLow;
Plot ORH=if ORActive OR today<1 then na else ORHigh;
Plot ORL=if ORActive OR today<1 then na else ORLow;
ORH.setdefaultcolor(color.yellow);
ORH.setStyle(Curve.FIRM);
ORH.setlineweight(1);
ORL.setdefaultcolor(color.yellow);
ORL.setStyle(Curve.FIRM);
ORL.setlineweight(1);
@desirobinhood Using this code totally defeats the whole purpose of ORB trading. Please type Opening in the search box and read this post from the beginning. There is a wealth of info here that must be understood to trade using the ORB. Thanks.Current day first 30 mins High and low
Rich (BB code):def na=double.nan; input ORBegin = 0930; input OREnd = 1000; input ShowTodayOnly={"No", default "Yes"}; def s=ShowTodayOnly; Def ORActive = if secondstilltime(OREnd)>0 AND secondsfromtime(ORBegin)>=0 then 1 else 0; def today=if s==0 OR getday()==getlastday() AND secondsfromtime(ORBegin)>=0 then 1 else 0; Rec ORHigh = if ORHigh[1]==0 or ORActive[1]==0 AND ORActive==1 then high else if ORActive AND high>ORHigh[1] then high else ORHigh[1]; Rec ORLow = if ORLow [1] ==0 or ORActive [1] ==0 AND ORActive ==1 then low else if ORActive AND low < orlow [1] then low else ORLow [1]; Def ORWidth = ORHigh - ORLow; Plot ORH=if ORActive OR today<1 then na else ORHigh; Plot ORL=if ORActive OR today<1 then na else ORLow; ORH.setdefaultcolor(color.yellow); ORH.setStyle(Curve.FIRM); ORH.setlineweight(1); ORL.setdefaultcolor(color.yellow); ORL.setStyle(Curve.FIRM); ORL.setlineweight(1);
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Start a new thread and receive assistance from our community.
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.
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.