ChrisBaker97

Today's Earnings Stocks - thinkScript Scan Study

Oct 22nd, 2013
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. # TODAY'S POTENTIAL EARNINGS PLAYS - Shows only stocks with earnings tonight or tomorrow morning
  2. #
  3. # Scan tab study that selects stocks with earnings either after the
  4. # market today or before the market opens tomorrow. To find stocks
  5. # *without* earnings, see my other thinkScript:
  6. # Earnings-Free Equities: http://pastebin.com/wZbyXgEZ
  7. #
  8. # by: Chris Baker <ChrisBaker97@gmail.com> @ChrisBaker97
  9. # Latest version maintained at: http://pastebin.com/gC1GJMfB
  10. # More thinkScripts at: http://pastebin.com/u/ChrisBaker97
  11. #
  12. # This thinkScript is designed for use in the Scan tab. Detailed
  13. # instructions may be found here: http://pastebin.com/wGi1Mvuh
  14. #
  15. # This work is licensed under the Creative Commons Attribution-ShareAlike
  16. # 3.0 Unported License. To view a copy of this license, visit:
  17. # http://creativecommons.org/licenses/by-sa/3.0/deed.en_US
  18. #
  19. # I created this because the default TOS Earnings filter is useless for
  20. # actually highlighting earnings plays. For example, when set to 2 days,
  21. # it includes both stocks that already had earnings this morning, as
  22. # well as those that won't release until tomorrow afternoon.
  23. #
  24. # If (for some reason) you want to look further ahead, you may adjust the
  25. # days input. For example, when set to 2, this will find all stocks having
  26. # earnings through the market open on the day after tomorrow.
  27.  
  28. input days = 1;
  29.  
  30. declare once_per_bar;
  31.  
  32. plot scan = sum(HasEarnings(EarningTime.AFTER_MARKET),days)[1-days] +
  33. sum(HasEarnings(EarningTime.BEFORE_MARKET),days)[0-days] > 0;
Add Comment
Please, Sign In to add comment