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)
I'm playing with something like this, not with XML data source, with a basic .csv.
But, how to draw a vertical bar in the future (DrawVerticalLine), with NT ?
As it does not seems to be possible, I'm looking for a smart idea, parsing the file downloaded is not very hard, but if I can't have the informations on the chart...
Well, I'm able to put together something rude and crude that does work. It might help us brain storm a little to see where it might take us. I don't know how to parse XML data but maybe somebody else can help. I do have a book on it I just need to dust it off. It's been a long time since I've coded.
Attached is the indicator file, txt file(s) needed for News and NewsTimes.
Step1:
Create the following directory under NT: "My Documents\NinjaTrader 6.5\NewsFiles"
Step2:
Extract the NewsFiles.Zip file into NewsFiles directory.
Step3:
Extract the NewsReminder.cs from the Zip file and place it in the Indicator directory.
Step4:
Edit the NewsReminder.cs and change its path to the location of the News files. There's a variable that contains the path location.
Step5:
Add the indicator to a chart and watch is plot the news information.
I've tried using Excel spreadsheet to extract the data from the website and then create these file(s) with a click of a button. It didn't quit work out. Still working on a few issues within the code.
cunparis, I hope you didn't mind me modifying your code a bit. I added an entry in the comment area and left everything else alone. I think you did a heck of a job on this indicator and I really like this indicator.
-Rich
Also, the NewsTimes.txt file(s) must contain all 9 times. Add them with 0's if there is no news. I'm also gonna check tomorrow(Wednesday) if it automatically picks up Wednesday News items. That would be cool.
One more thing if there is no News for the day, don't create the file(s) for that day.
I don't mind at all. I'm very happy to see some collaboration, especially on an indicator that doesn't draw squiggly lines!
The only thing I ask is that we pay attention to the name so that we don't have multiple versions of the same name floating around. So if we need to have a few of them (different approaches) we could add an underscore to the name to keep them straight. like newsreminder_jones or whatever.
Thanks for working on it. I hope others will contribute.
Okay, here the changes. I also removed the SPACE needed within the TXT files. Instead I use a comma which makes it less confusing.
This display the news name @ 10 minutes before the news come out. This way it alerts you of the following news event in advance. Then at the time of the news event it places NEWS on the chart.