Indicators: FFC - Forex Factory Calendar - page 13

 

ForexFactory changed the HTML code of the impact, the new value is "icon--ff-impact-red" for high impact.

In python the code would be:

calendar__impact = row.find('td', class_='calendar__impact').find('span')['title'][0]
if calendar__impact == "icon--ff-impact-red":

                 calendar__impact = "high"


I don't know how is MQL5
 
trademikenr #:

Thank you SO much for sharing the MT5 version - can you give me any clues why I only see a blue box?

I have allowed forexfactory in the 'web requests' and allowed DLL imports, any thoughts are greatly appreciated :) 

 

Forex factory changed the way their website is built. The general URL and several Html tags are not the same anymore. That's why the indicator is not working (anymore?).


You will need to change the url in the code then change the searching patterns (/date, ...), and add security on the "alert()" function in the when the URL is changed. If not the alert will loop infinitely on your screen. 

http://www.forexfactory.com/calendar.php?c=2&week=

change it to

https://www.forexfactory.com/calendar?week=


Other changes are mainly  in the ConvertHTMtoCSV function:

- check StringFind <tr class=\"calendar__row calendar_row -> change it to <tr class=\"calendar__row calendar__row , 

- GetVal(rows[r],"date\">","</td>") -> there is no  date\ in their new html...

I've stopped searching from there.

Calendar | Forex Factory
  • www.forexfactory.com
Anticipate market-moving events long before they happen with the internet's most forex-focused economic calendar.
 

Hi,

modify the indicator, and change the forexfactory.com url for this one:  https://nfs.faireconomy.media/ff_calendar_thisweek.xml

Regards

 
davbarrio #:
https://nfs.faireconomy.media/ff_calendar_thisweek.xml
Thanks, it worked!
 

how to FFC can be disable ea before and after news,,  source kode please..

thanks before

 
Thanks for sharing... I found it helpful indeed.
 

Good morning,

 I started getting an error recently:


2024.02.12 09:51:29.030 FFC_March_2021-RATE EURAUD,M15: cannot set timer (82800)

2024.02.12 09:51:29.078 FFC_March_2021-AUDNZD EURAUD,M15: cannot set timer (82800)

2024.02.12 09:51:29.294 FFC_March_2021-CPI GBPJPY,M15: cannot set timer (86400)

2024.02.12 09:51:29.333 FFC_March_2021-RATE GBPJPY,M15: cannot set timer (82800)

2024.02.12 09:51:29.667 FFC_March_2021-US500 US30,M15: cannot set timer (82800)

2024.02.12 09:51:30.352 FFC_March_2021-CAD CADCHF,M15: cannot set timer (82800)

2024.02.12 09:51:30.392 FFC_March_2021-CHF CADCHF,M15: cannot set timer (82800)


Is there a way to fix this timmer error?

I cant seem to find what is wrong. Nothing was changed ave the name so I know which pair this indicator was one.  


Thank you!!

 
i apply the indicator on the chart but i get this error message:

2024.03.04 10:16:14.423 FFC XAUUSD,H1: FFC: failed to open FFC-ffcal_week_this.xml file, Error code = 5004

seems that the xml file in files\ directory is not created?

to test i downloaded the xml file manually and changed its name, and placed it manually in \files\ folder, and then the indicator showing the news the chart, and the buffer is counting down, 

(i allowed dll files etc..)

what could be the problem? thanks 


 
boeyahya #:
FFC-ffcal_week_this

I changed line 443 to this and it works fine for me.

string sUrl="https://nfs.faireconomy.media/ff_calendar_thisweek.xml";

Seems the xml URL has changed.

 
Yashar Seyyedin #:

I changed line 443 to this and it works fine for me.

Seems the xml URL has changed.

thanks !!!! worked

Reason: