Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Earning Dates
Collapse
X
-
Hello newdill,
Thank you for your post.
If you are able to obtain the earning dates in a .txt format or put them into a .txt file yourself from a calendar or list, you could then use StreamReader to check that .txt file and compare the current date and time to see if it is an earning date or not. You could use conditions with variables or bools for After Hours and pre market information from the .txt file to define certain actions that your strategy should or shouldn't perform. I have included some links below to our reference samples that demonstrate how to use Stream Reader as well as how to use a time filter to limit trading hours:
Please let us know if we may be of further assistance.Emily C.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by guillembm, Yesterday, 11:25 AM
|
2 responses
9 views
0 likes
|
Last Post
by guillembm
Yesterday, 11:58 PM
|
||
Started by junkone, 04-21-2024, 07:17 AM
|
9 responses
68 views
0 likes
|
Last Post
by jeronymite
Yesterday, 11:51 PM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
4 responses
18 views
0 likes
|
Last Post Yesterday, 10:33 PM | ||
Started by mgco4you, Yesterday, 09:46 PM
|
1 response
11 views
0 likes
|
Last Post Yesterday, 09:56 PM | ||
Started by wzgy0920, Yesterday, 09:53 PM
|
0 responses
10 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 09:53 PM
|
Comment