NexusFi: Find Your Edge


Home Menu

 





Avoid Earnings Study (Sharing)


Discussion in ThinkOrSwim

Updated
    1. trending_up 4,400 views
    2. thumb_up 4 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




 
Search this Thread

Avoid Earnings Study (Sharing)

  #1 (permalink)
ckajrtx
Wichita falls, tx
 
Posts: 4 since May 2014
Thanks Given: 1
Thanks Received: 5

If you don't want to trade stocks when they get close to their earnings date here is the study for you. Add this study along with your other studies/filters and you can avoid those stocks with upcoming earnings.

Tip

#I couldn't get the wizard to function like it does if you select the Corporate earnings study. I left it here for others to play with it.

#Wizard text: Has an earnings announcement
#Wizard input: Choice
#Wizard text: in the next
#Wizard input: length
#Wizard text: bars

#If the Input length is 10 days. Then any stock that has earning in 10 days or less will not appear in your scan. Change the 10 to however many trades you would like to use.
Input length = 10;

input Choice = {default "Any time", "Before the Market", "After the Market"};
def earnings = hasearnings();

plot scan;

switch (Choice){
case "Any time":
scan = (sum(hasearnings(),length)[-length +1] > 0) is false;
case "Before the Market":
scan = (sum(HasEarnings(type = EarningTime.BEFORE_MARKET),length)[-length +1] > 0) is false;
case "After the Market":
scan = (sum(HasEarnings(type = EarningTime.AFTER_MARKET),length)[-length +1] > 0) is false;
}


Reply With Quote
Thanked by:




Last Updated on May 23, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts