ws | The WealthScript instance. Pass this. |
bar | The current bar number. |
earningsString | A fundamental item string that can be referenced to determine past earnings dates. Be sure to use an item that is reported quarterly. Examples for the Zacks Adjusted Earnings fundamental provider: "[z] Zacks Adjusted Earnings" |
barsBefore, barsAfter | The number of days before and/or after the earnings date to be considered in the earnings window. For just the earnings date itself, pass 0 for both parameters. |