Reply

Integrate a News-Filter with ffcal_net

31 replies

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #202327

Hi,

I’m trying to integrate a News-Filter to avoid the big News and Speaks. The EA shouldn’t open orders in that time (you can configure in the indi attached how many minutes before and after). How can I integrate it in the EA? The Strategy Parameters of Speaks, High and Low Impact News should be boolean. And the Minutes should be editable. Has anyone an idea how to make this with EA Wizard?

Attachments:
You must be logged in to view attached files.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232870

 

This is an older post, cause it was locked:

 

Aaah…now I understand. 🙂 Tomas said that it has impact value for the most recent event (Low = 1, Medium = 2, High = 3)

But as you can see in the screenshot, it is also possible to set for Speaks and Holidays. But I don’t know the impact value for these two. 4 and 5? Try it out. But in strategytester it is not working! You have to put it on a demo to test.

Attachments:
You must be logged in to view attached files.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232904

No, the error is from MT4, when I start the EA it throws this error with every tick. I changed it through the original ffc from Tomas and it throws the same error. The indi is faulty perhaps. I’m looking for another news-indicator.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Steve Green

Subscriber, bbp_participant, community, 47 replies.

Visit profile

6 years ago #232908

Let me rephrase.

 

You got to import it into EA wizard firstly without throwing errors? – it must somehow compile within your EA like that then be compatible with the MT4’s version.

 

Maybe Tomas can help us.

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232912

I have the suspicion if you compile with the actual Meta Editor the EA Wizard gives back this error “unknown return type!” by importing an indicator. In Meta Editor were no errors, warnings or whatsoever. The importing routine of the EA Wizard must be the problem here.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232913

Let me rephrase. You got to import it into EA wizard firstly without throwing errors? – it must somehow compile within your EA like that then be compatible with the MT4’s version. Maybe Tomas can help us.

My EA works, but not with that newsfilter.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232936

Hi Steve,

I found 2 other Newsfilter, but I couldn’t import them to EA Wizard. They produce the same error “unknown return type!”.

So I changed to the newsfilter in the first post of the topic  and this is not producing any errors in MT4 and EA Wizard. It seems working now, but I must still figure out which outputBuffers it has and which logic I must take in EA Wizard not to trade for example when Speaks and High News occur. Unfortunately it has no “holidays” so I think it’s useless for you.   🙁

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Steve Green

Subscriber, bbp_participant, community, 47 replies.

Visit profile

6 years ago #233077

Thanks for your assistance.

 

Can anyone help us? Tomas?

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #233099

Hi Steve,

after testing it looks like it’s working now. I will put here a how to with the sqw and indicator soon until my license problem with EA Wizard is fixed after changing the harddisk. I already contacted support.

Maybe it’s useful for you too. And you can adapt the how to with another indicator you want?!

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #233121

Hello Conmariin,

please if you made it work you can share your sqw setup with others. That would be very useful

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #233136

The license issue with EA Wizard is fixed today and here is my how to:

The indicator I use has the imapcts: Speaks, High, Medium and Low. I want to AVOID big news (Speaks and High impact news). I want to take the EA off 30 minutes before and 30 minutes after. EAWizard didn’t take my modified version of ffcal_net although MetaEditor said that everything is okay.

First import the indicator from ffcal_net_orig.zip in EAWizard.

Take then the EAwithNewsfilter.sqw and put in your strategie.

Export your EA and put it in the expert folder of mt4.

Take the indicator from ffcal_net_new.zip (my modified version) and put it in the indicator folder of mt4.

It seems working with it. Please test it first on a Demo.

Any suggestions or improvements are welcome. 🙂

Attachments:
You must be logged in to view attached files.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Steve Green

Subscriber, bbp_participant, community, 47 replies.

Visit profile

6 years ago #233145

Thanks Conmariin for solving this one.

 

There must be away to add holidays in this?

 

I would speculate if you can enhance ‘ffcal_net_orig.zip’ and import it into EAWizard successfully then the rest will be ok.

 

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #233147

There must be away to add holidays in this? I would speculate if you can enhance ‘ffcal_net_orig.zip’ and import it into EAWizard successfully then the rest will be ok.

Of course there is a way to add holidays but you must add it at several places in the code and I’m not a programmer for mql4 to do the logic. I use EAWizard too. 😉 In this case it was only a one liner I added. That was not a big deal. So someone else must add this to the code perhaps.

As I said, you can’t import the indi after editing it with the MetaEditor. I think it’s better to find a newsindi with holidays and import that into EAWizard.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Gavin

Subscriber, bbp_participant, community, 0 replies.

Visit profile

5 years ago #240201

Hi Guys,

I have tried the above, thanks for all our efforts so far!

When I compile the EA through EA Wizard and load it onto a chart, there are no problems except this one:

“2019.04.04 18:55:36.834 ffcal_net AUDCADi,M1: FFCal Error – Web page download was not complete!”

Anyone have an idea wwhy this could be?

Thanks again!

(P.S. I only did one first level university course on C++, but have been using EA Wizard for about two years, just to give an idea of my programming skills (or lack thereof) 😉 )

0

Artur

Subscriber, bbp_participant, 0 replies.

Visit profile

4 years ago #242342

Conmariin

Any luck on this?

 

0

stearno

Customer, bbp_participant, community, 379 replies.

Visit profile

4 years ago #241921

The url changed, so you need to change the URL to the new one in the FFC code.  The new URL is: “http://cdn-nfs.faireconomy.media/ff_calendar_thisweek.xml”;

 

void xmlDownload()
{
//—
ResetLastError();
string sUrl=”http://cdn-nfs.faireconomy.media/ff_calendar_thisweek.xml”;
string FilePath=StringConcatenate(TerminalInfoString(TERMINAL_DATA_PATH),”\\MQL4\\files\\”,xmlFileName);
int FileGet=URLDownloadToFileW(NULL,sUrl,FilePath,0,NULL);
if(FileGet==0) PrintFormat(INAME+”: %s file downloaded successfully!”,xmlFileName);
//— check for errors
else PrintFormat(INAME+”: failed to download %s file, Error code = %d”,xmlFileName,GetLastError());
//—
}

0

Viewing 15 replies - 16 through 30 (of 33 total)

1 2 3