NexusFi: Find Your Edge


Home Menu

 





News Reminder Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one sam028 with 8 posts (2 thanks)
    2. looks_two jonesr9 with 7 posts (1 thanks)
    3. looks_3 cunparis with 4 posts (2 thanks)
    4. looks_4 wuolong with 2 posts (0 thanks)
    1. trending_up 13,274 views
    2. thumb_up 5 thanks given
    3. group 9 followers
    1. forum 27 posts
    2. attach_file 8 attachments




 
Search this Thread

News Reminder Indicator

  #11 (permalink)
 
cunparis's Avatar
 cunparis 
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
Posts: 2,565 since Jun 2009
Thanks Given: 1,162
Thanks Received: 2,093


TAJTrades View Post
Forex Factory has a XML page that can be accessed: Retail Sales m/m

Very good find!

Parsing XML in C# is not my area of expertise, so if anyone wants to take a shot at it be my guest.

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
Increase in trading performance by 75%
The Elite Circle
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
18 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #12 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

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...

Follow me on Twitter Reply With Quote
  #13 (permalink)
 jonesr9 
FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, 6E, CL
Posts: 71 since Jul 2009
Thanks Given: 159
Thanks Received: 34


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.

FILES REMOVED AND ATTACHED TO POST BELOW.

Reply With Quote
  #14 (permalink)
 
cunparis's Avatar
 cunparis 
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
Posts: 2,565 since Jun 2009
Thanks Given: 1,162
Thanks Received: 2,093


jonesr9 View Post
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.

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.

Follow me on Twitter Started this thread Reply With Quote
  #15 (permalink)
 jonesr9 
FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, 6E, CL
Posts: 71 since Jul 2009
Thanks Given: 159
Thanks Received: 34


cunparis View Post
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.

Good point. I'll just change the version number. Give me a sec I'll post the change.

Reply With Quote
  #16 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

Did someone can post a screenshot ?
I'm working on my own indicator, I called it NewsAlert, so this name is copyrighted .


edit: saw the post #1, no screenshot needed, but the vertical line is paint when the news is supposed to come, right ?

Follow me on Twitter Reply With Quote
  #17 (permalink)
 jonesr9 
FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, 6E, CL
Posts: 71 since Jul 2009
Thanks Given: 159
Thanks Received: 34

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.

Attached Thumbnails
Click image for larger version

Name:	NewReminder2.JPG
Views:	346
Size:	53.4 KB
ID:	2216  
Attached Files
Elite Membership required to download: NewsFiles.zip
Elite Membership required to download: NewsReminderV02.zip
Reply With Quote
Thanked by:
  #18 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

Is someone here know why this works:
 
Code
                            
Stream strm Client.OpenRead("http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?currentWeek=/events-calendar/2009/0913/&direction=none&collector=allInFolderDateDesc&view=week&timezone=GMT&currencyFilter=|&importanceFilter=Medium|Low|"); 

and this not:
 
Code
                            
string url_news="http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?currentWeek=/events-calendar/2009/0913/&direction=none&collector=allInFolderDateDesc&view=week&timezone=GMT&currencyFilter=|&importanceFilter=Low|";
Stream strm Client.OpenRead(url_news); 
???

Follow me on Twitter Reply With Quote
  #19 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787

sam028,

I've had to the same thing in similar situations.

I think it may have something to do with some of the special characters in the string.

Yes, that doesn't really make sense, just my thoughts.

RJay

Reply With Quote
  #20 (permalink)
 wuolong 
Canada
 
Experience: Intermediate
Platform: NinjaTrader
Posts: 76 since Jul 2009
Thanks Given: 175
Thanks Received: 9


Maybe try this?

 
Code
                            
string url_news=@"http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?currentWeek=/events-calendar/2009/0913/&direction=none&collector=allInFolderDateDesc&view=week&timezone=GMT&currencyFilter=|&importanceFilter=Low|";
Stream strm Client.OpenRead(url_news); 



sam028 View Post
Is someone here know why this works:
 
Code
                            
Stream strm Client.OpenRead("http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?currentWeek=/events-calendar/2009/0913/&direction=none&collector=allInFolderDateDesc&view=week&timezone=GMT&currencyFilter=|&importanceFilter=Medium|Low|"); 

and this not:
 
Code
                            
string url_news="http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?currentWeek=/events-calendar/2009/0913/&direction=none&collector=allInFolderDateDesc&view=week&timezone=GMT&currencyFilter=|&importanceFilter=Low|";
Stream strm Client.OpenRead(url_news); 
???


Reply With Quote




Last Updated on September 23, 2009


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts