♥ 0 |
Hello Pete. What I am looking to do is create a scan that alerts me of recent news on companies I have in my watchlists. Much like the Earnings scan, this would operate the same way. I tried to change the code for the Earnings scanner, but I can’t get past the errors. Can you offer some guidance? Thank you. rec preEarningsClose = if HasEarnings(EarningTime.BEFORE_MARKET) then close[1] else if HasEarnings(EarningTime.AFTER_MARKET) then close else preEarningsClose[1];
Marked as spam
|
Thank you, Pete. I saw some of the keywords that had Events, and Get events to offset. Wasn’t sure how to put that together without working around the errors.
“…keywords that had events…” “…get events to offset…” I am completely lost there. What are these “keywords” and where did you see them? Are you talking about the method named GetEventsOffset() which uses the list of “constants” found here: http://toslc.thinkorswim.com/center/reference/thinkScript/Constants/Events.html
Hello Pete,
These are in the think script references and when you’re typing in the codes, it auto-suggests them. I figured those could be substituted for what you used in your earnings scan.