% Change after opening


New member
2019 Donor
I was given a % Change after Opening scanner but it also includes the HOD. Can someone show me how to remove the HOD portion of the scanner so that it’s only % change after opening? Thank you.

def today = GetDay() >= GetLastDay();

def start = SecondsFromTime(400) > 0;

def end = SecondsFromTime(1600) < 0;

def op=if today and secoNdsFromTime(930)>=0 and op[1]==0 then open else op[1];

def hod = if start and today  and end and high > hod[1] then high else hod[1];

def hi=hod;

def con1 =  high > hod[1] or high[1]>hod[2] or high[2]>hod[3] or high[3]>hod[4] or high[4]>hod[5] or high[5]>hod[6];#£def con2 = close>=0.5 and close<=15;

def con3 = start and end;

def con4= close>=op*1.03;

plot scan= con1  and con3 and con4;
Last edited by a moderator:
I'd like to bump this TTT. I made a thread earlier today asking about how to scan top stocks since open... I just tried to enter that formula in a custom study but it didn't work. How did you get it to work? I wouldn't mind the HOD either lol

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
415 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.