ffcal_netとニュースフィルターを統合する
93 replies
こんにちは、,
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?
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
I found inside the ffcal-indi this sample for integration in an EA:
// EA Setting variables
// extern int MinsBeforeNews = 60; // mins before an event to stay out of trading
// extern int MinsafterNews = 60; // mins after an event to stay out of trading
//
// // Global variable at top of file
// bool NewsTime;
//
// // Function to check if it is news time
// void NewsHandling()
// {
// static int PrevMinute = -1;
//
// if (Minute() != PrevMinute)
// {
// PrevMinute = Minute();
//
// int minutesSincePrevEvent =
// iCustom(NULL, 0, “FFCal”, true, true, false, true, true, 1, 0);
//
// int minutesUntilNextEve nt =
// iCustom(NULL, 0, “FFCal”, true, true, false, true, true, 1, 1);
//
// NewsTime = false;
// if ((minutesUntilNextEvent <= MinsBeforeNews) ||
// (minutesSincePrevEvent <= MinsAfterNews))
// {
// NewsTime = true;
// }
// }
// }//newshandling
//
Don’t know if this is all I need and of course I can put it manually in the EA code. But I wanted to solve it with EA Wizard.
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
こんにちは,
ok, i will try to make an example on this
0
Thank you tomas for your excellent help! 🙂
I think a lot of people find that useful 🙂
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
Pushing it a little bit. 😉
Can anyone help?
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
こんにちは,
you rather use this version of Forex Factory news indicator (attached)
Then you need to import the indicator as “custom indicator” into EA Wizard
The indicator uses 2 buffers
Buffer (0) contains minutes until the most recent event.
Buffer (1) contains impact value for the most recent event (Low = 1, Medium = 2, High = 3)
More info can be found here: https://www.mql5.com/en/code/15931
Buffers can be used as shown on the screenshot attached
0
Thanks for your help Tomas! 🙂
I’ll try it with your solution!
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
I integrate now the Newsfilter in the EA. And it should avoid trading 30 mins before and after HIGH newsimpact only. Medium and Low is okay. Is it okay how I integrated it? What do you think?
ありがとうございます!
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
How do I use this indicator to not trade when there is either a US or UK holiday?
Do you tie the symbol (USD or GBP) to the holiday (Impact = Non-Economic).
0
Hi Steve,
I don’t know what you exact mean?! If you run the EA with newsfilter on GBPUSD the newsfilter looks for GBP and USD high impacts news.
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
Thanks for your response Conmariin.
My requirement is to switch off my EA on US and UK holidays ただ so what you telling me if I use this newsfilter on pairs like EUR/USD, USD/JPY or USD/CAD for example it will switch off all these pairs on US holidays as it will compare the “USD…” to forexfactorys calender “currency” column? – USD = USD
Likewise for pair GBP/USD – this will switch off on UK and US holidays. Am I correct?
Sounds promising.
What is the “ImpactBuffer” output value for holidays?
0
Hi Steve,
I looked in the code of the indicator. The impact values for speaks and holidays weren’t there. I added them (speaks has impactvalue 4 and holidays has impactvalue 5 now) . The compiler says that everything is allright but I didn’t test it in real action on a demo of course. 😉
I’m awaiting your test-response 🙂
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
Hi Conmariin,
When I try import your new custome indicator into EA wizard it throws this error (see attached picture)?
ありがとう
0
I imported the original ffc and after exporting EA to mt4 I changed the original ffc with the new ffc in the mt4 indicator folder.
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
Actually it throws an error constantly: 2018.03.26 21:35:29.442 FFC EURUSD,M15: cannot set timer (3600)
Don’t know what that means. I try something different. If I suceed I will tell you! 🙂
エキスパートアドバイザーによる自動取引
https://www.rabenesche.de
また、以下の分野でも活動しています:
https://forums.babypips.com/u/ravenash
0
Thanks Conmariin.
I’m sure you got to import it into EA wizard the way it threw that error with me.
0