@TheNameIsBond You need to create two separate scanners. Don't put them all into one.
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Hi there,Hi @Rosalyn,
Below please find the link you requested...I made two changes to the scan:
As a result of the changes made, the scan does return tickers...Give it a try and let me know how it goes...
- I changed the timeframe from Daily to 30 minutes
- I added "RangeLimiter" to go with the original "Limiter" to be able to better scope result sets
Hope this helps...
Good Luck and Good Trading
Link: http://tos.mx/Nqe2Z6l
It is almost 30-40 minutes late. LYFT broke out around 8 am my time (Mountain time) and the alert came around 8:41 am Mountain time. Not sure how to add a picture/screenshot here@suchetam About 3-5 mins late?
# Filename: 30_min_Opening_Range_SCAN
# source: 30 min opening range
# original author: Robert Payne
def OpenRangeMinutes = 30;
def MarketOpenTime = 0930;
input ShowTodayOnly = yes;
def Today = if GetDay() == GetLastDay()
then 1
else 0;
def FirstMinute = if SecondsFromTime(MarketOpenTime) < 60
then 1
else 0;
def OpenRangeTime = if SecondsFromTime(MarketOpenTime) < 60 * OpenRangeMinutes
then 1
else 0;
def ORHigh = if FirstMinute
then high
else if OpenRangeTime and high > ORHigh[1]
then high
else ORHigh[1];
def ORLow = if FirstMinute
then low
else if OpenRangeTime and low < ORLow[1]
then low
else ORLow[1];
def OpenRangeHigh = if ShowTodayOnly and !Today
then Double.NaN
else if !OpenRangeTime
then ORHigh
else Double.NaN;
def OpenRangeLow = if ShowTodayOnly and !Today
then Double.NaN
else if !OpenRangeTime
then ORLow
else Double.NaN;
#TPO Value area high
Def TPOVAHigh = TPOProfile("time per profile" = "DAY", "on expansion" = no)."VAHigh";
# TPO Value area high of yesterday
Def TPOVAHighValue = GetValue(TPOVALow, GetMaxValueOffset(TPOVAHigh, 1), 1);
plot ORBOPOC = OpenRangeLow > TPOVAHighValue;
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.