stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Daily FX News Indicator
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3616
Page 1 of 1
Author:  kwanann [ Mon May 12, 2014 11:36 pm ]
Post subject:  Daily FX News Indicator

Well, i got sick and tired of using ffcal and trying to figure out what options to use for news_b6, so i decided to go and write my own.

NO time settings required

If you want to be fancy go ahead and change the color scheme, otherwise it is good to go as is

Click on the title to automatically open up the dailyfx news website for the day

90% of functionality already done and tested, the other 10% are purely bells & whistle

Enjoy :party:

Requires: Empty4 Build 600 and ABOVE
Author:  mobthehop [ Tue May 13, 2014 2:37 am ]
Post subject:  Daily FX News Indicator

works great - thanks a lot! Mop
Author:  SpiderX [ Tue May 13, 2014 10:21 am ]
Post subject:  Daily FX News Indicator

Would this be what you were trying to achieve ?
http://www.forex21.com/fx-pulse-3

Cheers
Author:  kwanann [ Tue May 13, 2014 11:28 pm ]
Post subject:  Daily FX News Indicator

SpiderX ยป Tue May 13, 2014 6:21 pm wrote:Would this be what you were trying to achieve ?
http://www.forex21.com/fx-pulse-3

Cheers
Wow nice one spiderx!

Not looking at something so fancy since this is thrown in my Empty4 dashboard, simply a replacement of the defunct ffcal indi :D

But hey that works well too, nicely presented :clap:
Author:  theforexedge [ Fri Oct 03, 2014 4:08 pm ]
Post subject:  Daily FX News Indicator

Kwanann

Thanks for the simplified mod to the Daily News Indicator. Just wondering if its possible to come up with a iCustom call for the Indicator? :)

I've attached the code that was from the original version of FFCal that seems to work well...

Thanks, Jason

Code: Select all

void NewsHandling()
 {
     static int PrevMinute = -1;

      if (ImpactFilter > 0) {
         if (Minute() != PrevMinute)
         {
             PrevMinute = Minute();
    
             int minutesSincePrevEvent = iCustom(NULL, 5, "FFCal", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 0);
             int minutesUntilNextEvent = iCustom(NULL, 5, "FFCal", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 1);
 
             int impactOfPrevEvent =  iCustom(NULL, 5, "FFCal", true, true, false, true, true, 2, 0);
             int impactOfNextEvent = iCustom(NULL, 5, "FFCal", true, true, false, true, true, 2, 1);
 
             
            
             NewsTime = false;
             NewsTimeComment = "No News, Trading Allowed LVL   " + impactOfPrevEvent + "   "  + minutesSincePrevEvent + "  mins. ago, LVL   " + impactOfNextEvent + "  in  " + minutesUntilNextEvent + "  mins.";
             
             if ((minutesUntilNextEvent <= MinsBeforeNews) || 
                 (minutesSincePrevEvent <= MinsAfterNews))
             {
             
                  if ((impactOfPrevEvent >= ImpactFilter) || (impactOfNextEvent >= ImpactFilter)) {
                     NewsTime = true;
                     NewsTimeComment = "Ongoing News, Trading Disallowed  LVL   " + impactOfPrevEvent + "   "  + minutesSincePrevEvent + "mins. ago, LVL   " + impactOfNextEvent + "  in  " + minutesUntilNextEvent + "  mins.";
                  } else {
                    NewsTime = true;
                    NewsTimeComment = "Ongoing Light News, Trading Allowed  LVL   " + impactOfPrevEvent + "   "  + minutesSincePrevEvent + "mins. ago, LVL   " + impactOfNextEvent + "  in  " + minutesUntilNextEvent + "  mins.";
                  }
             }
         }
     } else {
         NewsTime = false;
         NewsTimeComment = "Check Disabled Trading Allowed";
     }
 }//Void NewsHandling End
Author:  Cherry [ Fri Jan 09, 2015 10:05 am ]
Post subject:  Daily FX News Indicator

Can anyone tell me please what I need to do with this indi? Since New Year it displays as shown!
Do others still use this or some other one like Spider posted above?
Thanks.
JT News.JPG
Author:  kwanann [ Mon Jan 19, 2015 2:05 am ]
Post subject:  Daily FX News Indicator

hey sorry, been terribly busy and didnt have time to look at this.

looks like some year bug, maybe i have added an extra year somewhere (8760 hrs = 1 yr)

if there is any kind soul that want to help, greatly appreciated!
Author:  Cherry [ Mon Jan 19, 2015 2:42 am ]
Post subject:  Daily FX News Indicator

Well by some strange happening it just corrected itself at the start of the next week!?!! :o :lol:
So now it's all showing fine. Don't know if anyone else had the same thing happen though?!
Thanks,
Cherry
Author:  kwanann [ Mon Jan 19, 2015 7:17 am ]
Post subject:  Daily FX News Indicator

Wow that is amazing, self correcting code

Next thing it will start trading for you :yahoo:
Author:  Cherry [ Mon Jan 19, 2015 7:30 am ]
Post subject:  Daily FX News Indicator

Sure!! LOL!
Don't know what happened on the 12th Jan but there you go! Magic Monday for correcting code! :smile:
All times are UTC Page 1 of 1