-3

May I know is there a way to programmatically detect major FOREX news and avoid trading in those time frame?

user3666197
  • 1
  • 6
  • 50
  • 92
william007
  • 17,375
  • 25
  • 118
  • 194

2 Answers2

2

You need Forexfactory news indicator, "FFCal", that reads data from the website and returns true/false depending on time in minutes before/after major/mid/minor news events. you can download it on fxfactory website, use is rather simple

int result = (int)iCustom(Symbol(),0,"FFCal", (parameters),0,0);

Daniel Kniaz
  • 4,603
  • 2
  • 14
  • 20
  • Not a safe way to use a per-QUOTE-called Custom Indicator automation, you may be well aware that *(cit.:)* "DISCLAIMER (Sept 17, 2016): Apparently some people have been getting the "Unable to process calendar" error. More info here >>> http://www.forexfactory.com/showthread.php?p=9144301#post9144301." and that the Downloader exhibits problems ( last update 2017/03 ). – user3666197 Apr 20 '17 at 10:42
1

Oh sure, sir, it is!

Let me share an example of such a fully automated / scripted approach:

enter image description here

halfer
  • 19,824
  • 17
  • 99
  • 186
user3666197
  • 1
  • 6
  • 50
  • 92