Scan for Best Performing Stocks within last # Days

Been playing a bit with the stock scanner settings, but have not found what I am looking for. Hope someone on here can help.

Looking to run a scan for best performing stocks (by percentage) within a certain number of days. (example previous: 30, 60, 90 days). Has anyone performed this scan and can share a how to?

Thank you.
Got this scan created, thought I would share. It allows us to scan / sort by MTD Performance %

plot mtdreturn =100* (close(period = AggregationPeriod.DAY)-close(period = AggregationPeriod.DAY)[20])/(close(period = AggregationPeriod.DAY)[20]); mtdreturn.assignValueColor( if mtdreturn < 0 then color.RED else color.Light_GREEN);

I added this as a column in my scan section - that way I can filter when needed. You can edit the script for the number of trading days as well :)
Last edited:
Thread starter Similar threads Forum Replies Date
C 150 SMA Scan Help Questions 0
JP782 QQE Mod scan Custom 1
B Scan for Beta in TOS Questions 0
T How to Scan for Today's & Historic Largest Option Sales ? Questions 0
U Scan for correlation or inverse correlation. Questions 0

Similar threads