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.
Create the following directory under NT: "My Documents\NinjaTrader 6.5\NewsFiles"
Extract the NewsFiles.Zip file into NewsFiles directory.
Extract the NewsReminder.cs from the Zip file and place it in the Indicator directory.
Edit the NewsReminder.cs and change its path to the location of the News files. There's a variable that contains the path location.
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.
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.
FILES REMOVED AND ATTACHED TO POST BELOW.
Last edited by jonesr9; September 16th, 2009 at 08:46 AM.
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.