Avoid Earnings Study (Sharing) - ThinkOrSwim | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim

Avoid Earnings Study (Sharing)
Started:May 23rd, 2014 (01:01 AM) by ckajrtx Views / Replies:1,058 / 0
Last Reply:May 23rd, 2014 (01:01 AM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Avoid Earnings Study (Sharing)

Old May 23rd, 2014, 01:01 AM   #1 (permalink)
Trading Apprentice
Wichita falls, tx
Futures Experience: Intermediate
Platform: Thinkorswim
Favorite Futures: stocks
ckajrtx's Avatar
Posts: 4 since May 2014
Thanks: 1 given, 4 received

Avoid Earnings Study (Sharing)

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.


#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
The following 3 users say Thank You to ckajrtx for this post:


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > Avoid Earnings Study (Sharing)

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart sharing para6ut Index Futures Trading 4 December 2nd, 2013 03:46 PM
New and sharing my plan. Manshevits Beginners and Introductions 5 March 2nd, 2013 06:34 AM
Color bar study always outputting 0 to spreadsheet study vegasfoster Sierra Chart 2 January 3rd, 2013 12:30 PM
Sharing input values kiasom EasyLanguage Programming 2 August 30th, 2011 01:27 PM
Quotes sharing between two pc arjfca The Elite Circle 3 May 28th, 2011 07:28 AM

All times are GMT -4. The time now is 11:29 PM.

Copyright © 2016 by futures.io. 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.
no new posts

Page generated 2016-10-22 in 0.05 seconds with 20 queries on phoenix via your IP