Scan for Best Performing Stocks within last # Days

  • Thread starter traderintheroom
  • Start date
traderintheroom

traderintheroom

Member
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.
 
traderintheroom

traderintheroom

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

Code:
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:

Similar threads

Top