| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| News event monitor EA that closes/disables trading https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5039 |
Page 1 of 11 |
| Author: | renexxxx [ Tue Jan 03, 2017 10:06 am ] |
| Post subject: | News event monitor EA that closes/disables trading |
The CloseOnNeewsEA has been updated such that it can optionally set a global variable that can be used by other EAs to stop initiating new trades. This way, you can avoid disabling AutoTrading completely (so you can set DisableTradingOnNews to false)
Update (LibFF.mqh) (2019.04.08): ForexFactory has apparently moved the xml file (temporarily?) to a new location. The new LibFF.mqh checks both the old and new location to find some data. A big "Thank You! :hi: " to Thomas for alerting me to this. Update v2.1 (2021.03.26):Used the EasyXML library for parsing the xml file. Thanks go to Paul van Hemmen for creating this library. Update (2021.07.16): Fixed a bug in EasyXML that was the reason that the xml-file was not downloaded in its entirety and therefore caused parsing problems further down the line. |
|
| Author: | bazze [ Tue Jan 03, 2017 9:54 pm ] |
| Post subject: | News event monitor EA that closes/disables trading |
Thanks, renexxxx |
|
| Author: | renexxxx [ Tue Jan 03, 2017 10:38 pm ] |
| Post subject: | News event monitor EA that closes/disables trading |
Not sure what's happening there. Did you get any errors compiling the CloseOnNewsEA.mq4 file? You must have the necessary include files. Also, check that you have "Allow DLL imports" checked under Tools->Options, Experts Advisors. |
|
| Author: | renexxxx [ Wed Jan 04, 2017 1:52 am ] |
| Post subject: | News event monitor EA that closes/disables trading |
You probably have some .mqh files missing from the \Include folder. I have now added the .ex4 file to Post 1, so that you don't have to compile. I am using the "Snipping Tool", that comes with Windows 10. You can get to it by typing SNI in Cortana. I'm sure there are other ways too. R. |
|
| Author: | bazze [ Wed Jan 04, 2017 11:14 am ] |
| Post subject: | News event monitor EA that closes/disables trading |
Thanks |
|
| Author: | renexxxx [ Fri Jan 06, 2017 1:47 am ] |
| Post subject: | News event monitor EA that closes/disables trading |
I have got no idea what this means. Please rephrase to make yourself understood. |
|
| Author: | luke [ Sun Jan 08, 2017 10:58 am ] |
| Post subject: | News event monitor EA that closes/disables trading |
Hi renexxxx - thanks for this! I'm also missing one of the include files, mql4-http.mqh is referenced in LibFF.mqh. A google search turned it up here: https://github.com/sergeylukin/mql4-htt ... 4-http.mqh Is that the correct version to use? |
|
| Author: | renexxxx [ Sun Jan 08, 2017 11:30 am ] |
| Post subject: | News event monitor EA that closes/disables trading |
My mistake. All these include files were already attached in this thread, so I didn't bother to attach them here as well. But I have now also included mql4-http.mqh to Post 1 of this thread. Both files are identical. Hope you can compile now ... if not, you still have the option to use the .ex4 file. |
|
| Author: | deadman [ Sun Jan 08, 2017 2:11 pm ] |
| Post subject: | News event monitor EA that closes/disables trading |
Hi Rene, thank you very much for the EA. It is very helpful. Would it be possible for the further releases to show the upcoming news in the chart window? That would be super useful. Thanks again! |
|
| Author: | renexxxx [ Sun Jan 08, 2017 8:33 pm ] |
| Post subject: | News event monitor EA that closes/disables trading |
You can just load the FFCal Indi on the chart. Both the EA and FFCal Indi are using the same news feed. Hope this helps. |
|
| All times are UTC | Page 1 of 11 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|