Created
July 22, 2020 00:03
-
-
Save tarnus/b81f62384a4326d59b5197ac80b1ab64 to your computer and use it in GitHub Desktop.
Days to Earnings Column
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################# | |
# ER Labels | |
################# | |
def daysBefore = 100; | |
def erInDays = AbsValue(GetEventOffset(Events.EARNINGS, 0)); | |
def before = Sum(HasEarnings(), daysBefore)[-daysBefore]; | |
AddLabel(Yes, IF before THEN "ER: "+erInDays+" days" ELSE "ER: No", IF before THEN Color.RED ELSE Color.GREEN); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment