How to scan Top % Gainers from Open?

PDAC228

New member
Is there a way you can put this into the scan filters? I have 1 thinkscript where it shows daily % change from open but thats only on my charts. Would love to be able to scan the market for a list of top % change gainers since opening price
 
@Sagar
Price change from Specified time close to current close (intraday only/same day only)
Code:
#declare lower;
#Price change from Specified time close to current close  (intraday only/same day only)
#time aggregation must match and be multiple of the chart
#By XeoNoX via request via usethinkscript.com
input time = 0930;
def  close_at_time = if secondsFromTime(time) == 0 or GetDay() <> GetDay()[1] then close else close_at_time[1];
def dif = ((close-close_at_time)/close_at_time)*100;
AddLabel (yes, "Price Diff from Selected Time: " + round((close-close_at_time),2) + " (" +  round(dif,2) + "%)" );
 
Last edited:

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

@XeoNoX Looks like there is some issue with calculation of percentage. Checked tonight globex and see difference in %change column and next column.
p.s. Not sure how to upload the image here... but if you can add the change % column and the new code in another watchlist column can spot some discrepancies.
 
Last edited:
the custom script you req is defaults to 9:30am EST regular trading hours market open, the default %change is not from regular trading hours market open, the default is change from previous day close. you requested to be able to see the change from the current day's inputed the time and thats what that script does.

btw i dont get your logic, why are you are implying they should be the same?
for for future reference, since you are relating time to price the entire screenshot including the chart time and price shoud be included to be able to assist you better or else there will be to time to price to compare to for anyone to help.
 
Last edited:
the custom script you req is defaults to 9:30am EST regular trading hours market open, the default %change is not from regular trading hours market open, the default is change from previous day close. you requested to be able to see the change from the current day's inputed the time and thats what that script does.

btw i dont get your logic, why are you are implying they should be the same?
for for future reference, since you are relating time to price the entire screenshot including the chart time and price shoud be included to be able to assist you better or else there will be to time to price to compare to for anyone to help.
You are right.. Got it both should be different.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
383 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