News Reminder Indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


News Reminder Indicator
Updated: Views / Replies:6,645 / 27
Created: by cunparis Attachments:7

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 7  
 
Thread Tools Search this Thread
 

News Reminder Indicator

  #21 (permalink)
VIP Member
FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES, 6E, CL
 
Posts: 71 since Jul 2009
Thanks: 159 given, 32 received


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); 
???

The only thing I can think of is that when specifying a path within a STRING variable you need to double up on the forward slash marks similiar to the backward slash marks.

Example: c:\\temp\\temp.txt <- this works in STRING variables

Try this:

Reply With Quote
 
  #22 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received

Thx guys, but it's finally working, don't ask me why...
 
Code
                            
            string year_news="2009";
            
string month_news="09";
            
string day_news="13";
            
string filter_news="Medium|Low|"//No Medium/Low importance news
            
string url_news="http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?";
            
url_news=String.Concat(url_news,"currentWeek=/events-calendar/");
            
url_news=String.Concat(url_news,year_news,"/",month_news,day_news,"/");
            
url_news=String.Concat(url_news,"&direction=none&collector=allInFolderDateDesc&view=week&timezone=GMT&currencyFilter=|&importanceFilter=",filter_news);

            
Stream strm Client.OpenRead(url_news);
            
StreamReader sr = new StreamReader(strm); 

Reply With Quote
 
  #23 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received


Here is a pre-Alpha version, not finished at all, but I think it's a good start, the logic is already there, I just need to add some parameters for sound, plot arrows instead of a line, for customizable reg exp, etc, etc.
This indicator gets the news from Forex News | Forex Trading News | Currency Trading News, parse them, then print a line X minutes before the news.
In the code, I only take High importance news, and for USD currency (see regex).

It seems to work fine on my minutes charts, but as I wrote, it's not a production release.

Attached Thumbnails
News Reminder Indicator-newsalert.jpg  
Attached Files
Register to download File Type: cs NewsAlert.cs (8.3 KB, 60 views)
Reply With Quote
The following user says Thank You to sam028 for this post:
 
  #24 (permalink)
VIP Member
FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES, 6E, CL
 
Posts: 71 since Jul 2009
Thanks: 159 given, 32 received

Nice job Sam.

Reply With Quote
 
  #25 (permalink)
Trade with the flow
Paris, France
 
Futures Experience: Advanced
Platform: Market Delta & Ninjatrader
Favorite Futures: ES
 
cunparis's Avatar
 
Posts: 2,563 since Jun 2009
Thanks: 1,157 given, 2,030 received


sam028 View Post
Here is a pre-Alpha version, not finished at all, but I think it's a good start, the logic is already there, I just need to add some parameters for sound, plot arrows instead of a line, for customizable reg exp, etc, etc.
This indicator gets the news from Forex News | Forex Trading News | Currency Trading News, parse them, then print a line X minutes before the news.
In the code, I only take High importance news, and for USD currency (see regex).

It seems to work fine on my minutes charts, but as I wrote, it's not a production release.

This sounds good sam. Can you make the news priority level configurable? I got sacked for 30 ticks on CL by an orange news release. From now on I pay attention to both orange & red!!

Reply With Quote
 
  #26 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received


cunparis View Post
This sounds good sam. Can you make the news priority level configurable? I got sacked for 30 ticks on CL by an orange news release. From now on I pay attention to both orange & red!!

In the code posted above, just replace
 
Code
                            
string filter_news="Medium|Low|"
by
 
Code
                            
string filter_news="Low|"
And for filtering by currencies, until I've added some customizable parameterd, you'll have to play with
 
Code
                            
Regex r1 = new Regex("^EUR"); 

. In this example, we only get the news which concerns EUR.
I'm getting and parsing a csv file downloaded here, and their are many news, most of them are Forex oriented, and having too many alerts is not a good idea.
The good idea is maybe having a matrix, a table or something, which links the contract(s) traded with the news.

Reply With Quote
 
  #27 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

regex

Do I need to add a using directive to use regex?

Reply With Quote
 
  #28 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received


Mindset View Post
Do I need to add a using directive to use regex?

Yes:

using System.Text.RegularExpressions;

Reply With Quote
The following user says Thank You to sam028 for this post:

Reply



futures io > > > > > News Reminder Indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Econ news indicator incometrade NinjaTrader 12 July 7th, 2014 09:24 PM
NT Market Analyzer News Indicator c12345 NinjaTrader Programming 3 June 18th, 2014 12:43 PM
Graphical News Indicator richtobey The Elite Circle 12 December 18th, 2010 10:49 AM
Reminder: simpler is almost always better Big Mike Traders Hideout 7 September 9th, 2009 08:01 PM


All times are GMT -4. The time now is 05:09 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-11 in 0.12 seconds with 20 queries on phoenix via your IP 54.226.132.197