Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Is there a method in strategies to identify past earnings dates? I want to close open trades prior to announcements. My positions are maintained through them and often stopped for way more than my assigned risk. As such, my strategy doesn't replicate real life.
I am new to EasyLanguage but not new to programming. I am get it pretty fast.
Thank in advance...
Can you help answer these questions from other members on NexusFi?
I found a non-programatic work around. I am hoping someone has found a way to program this. Should be a way since the dates can be made visible by downloading and installing the 'Next Earnings Date Studies ( Version 1 )_8945241.tsw' workspace from the Trading App store. Also, I think the 'EPS Postings' study is included.
This provides a visual on the chart of the past earnings.
After downloading to Excel the Strategy Performance Report, I am reviewing the trading dates for any overlap of the EPS date. I am highlighting those days. I inserted a new row at the top and added some 'subtotal' formula to provide adjusted more true numbers.
Not very elegant, but it makes me much more confident in my back tests.
Well, don't know anything about that. I think that is where I found it. I downloaded it, found it in my folder, executed it, and then installed it. I don't remember precisely where I found it. I didn't think that was all that relevant, so i didn't track my steps, but maybe it is. Maybe I found a back door, or something? It was in the workspace that I downloaded, called the name above.
There is documentation on Tradestation Help with Studies and Strategies about these two studies on the WS.
Sorry, I don't know how I got the download. But, If I found it, I am sure anyone can with some effort. Subsequent: Maybe what I am using is the EPS Postings Show Me to go back and see. I think so, now that I read the documentation. Anyway it works to accomplish my needs. Be lovely if this process I do was automated in a strategy as option to click in Customize.
If anyone has more skill in EasyLanguage (I am a true newby, but an ancient VBA programmer), I would live to collaborate.
NOT SO ELEGANT SOLUTION - BUT IT WORKS!
I am sure there are better methods to do this, but here is my version of a solution.
I want to make sure that I exit positions the close of the day before earnings. I want to NOT enter a trade on the day of earnings.
I created a custom Function "_isEPSDate" that does a simple if then statement with multiple OR statements. If the date of the bar passed to the function is contained in the list of OR statement, then it returns then number 1 to the strategy, if not then it returns the number 0 to the strategy.
In the strategy, I have added assigned a variable to equal this value that I use in an IF statement to then close any open positions, or to not open any new ones.
The function module:
inputs:
int BarDate (numeric);
if BarDate = 1181023 or BarDate = 1181024 or bardate = 1190423 or bardate = 11 or BarDate = 1191021 or BarDate = 1200204 or BarDate = 1220425 or BarDate = 1221026 then
Begin
_isEPSDate = 1;
End
Else Begin
_isEPSDate = 0 ;
end;
I plan to use Excel to capture the dates with my manual entry and then concatenate the or string to then copy paste into here. That will save a little time.
Does anyone know if there exists and where data for past EPS dates?
I know that somewhere in TS this information is stored because of the 'EPS Posting' Show me. I just don't have the knowledge of how to access it. If anyone wants to give me a lesson, I will then code this using that and this will be a snap.
Please let me know if I can help anyone.