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)
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
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.
Elite Membership required to download: NewsAlert.cs
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!!
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
string filter_news="Medium|Low|";
by
string filter_news="Low|";
And for filtering by currencies, until I've added some customizable parameterd, you'll have to play with
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.