Getting Minutes Since/Until News Correctly

Post Reply
disbellj

Getting Minutes Since/Until News Correctly

Post by disbellj »

Hello everyone,

I am having a problem with getting the correct minutes since news or until news.

Whether I change the offset in FFCal, FFCal Headlines, or Sonic FFCal Headlines, I get incorrect information given to me.

For FFCal, I use buffer 1 and shift 0 and shift 1, per instructions.

The other later indicators don't have instructions, so I use the only buffer 0, and shifts 0 and 1.

Attached are the pics. FFCal doesn't display at lower right. Sonic FFCal Headlines has white background lower right, and FFCal Headlines has black background lower right.

Can anyone help me get this information correct? FFCal Headlines gives correct information printed on one chart it looks like, but buffer gives weird numbers I frankly don't understand, so getting minutes since or until for all pairs is not working. BTW, the las two columns with no header are the numbers I am getting. For instance, on NZDJPY, it was only minutes since a news release, but the numbers don't show it.

Any help is appreciated.

Thank you.

Kindest regards,

Don
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Getting Minutes Since/Until News Correctly

Post by gaheitman »

disbellj wrote:Hello everyone,

I am having a problem with getting the correct minutes since news or until news.

Whether I change the offset in FFCal, FFCal Headlines, or Sonic FFCal Headlines, I get incorrect information given to me.

For FFCal, I use buffer 1 and shift 0 and shift 1, per instructions.

The other later indicators don't have instructions, so I use the only buffer 0, and shifts 0 and 1.

Attached are the pics. FFCal doesn't display at lower right. Sonic FFCal Headlines has white background lower right, and FFCal Headlines has black background lower right.

Can anyone help me get this information correct? FFCal Headlines gives correct information printed on one chart it looks like, but buffer gives weird numbers I frankly don't understand, so getting minutes since or until for all pairs is not working. BTW, the las two columns with no header are the numbers I am getting. For instance, on NZDJPY, it was only minutes since a news release, but the numbers don't show it.

Any help is appreciated.

Thank you.

Kindest regards,

Don
In the code Magft used in Fratelli and other EAs, he made the following iCustom calls that worked.

Code: Select all

      minutesSincePrevEvent =
             iCustom(NULL, 0, "FFCalH", "",true, true, false, true, true, 1, 0);
 
      minutesUntilNextEvent =
             iCustom(NULL, 0, "FFCalH", "",true, true, false, true, true, 1, 1);
As you can see it uses the second buffer (mode 1) not the first (mode 0).

George
disbellj

Re: Getting Minutes Since/Until News Correctly

Post by disbellj »

George,

Thank you very much!

After working with it, I see that the display is wrong when using FFCalH (corner changed to 4 on EURAUD chart), but looks like the right information is received from it from buffer (pic of EURUSD with numbers for last two columns).

I made my own mod from Sonic version, adding 4 buffers for each of the four lines displaying correct info on chart. Then after obtaining really just buffers 1 and 2 for first two printed lines on chart (which are correct in Sonic version it looks like), if "minutes since" buffer reads more than 0 (meaning it's for an upcoming event), I make "minutes until" buffer to be "minutes since" buffer value, and "minutes since" buffer value to be an empty value. Then display "N/A" for any value that is not less than 99999 (99999 is no news value, and empty value 2147483647 is more than this, so since it's over 99999, it would also default to "N/A"). Note: the small difference in times is because I fixed a color problem and uploaded pic again of mine, which should only color those since or until minutes that are within user input minutes (60 I made default).

I am using Forex Factory calendar to check what I get.

Thanks again George. Do you think I should post my version?

Kindest regards,

Don
You do not have the required permissions to view the files attached to this post.
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Getting Minutes Since/Until News Correctly

Post by fxdaytrader »

ceshiwuhao wrote: he made the following iCustom calls that worked.
which calls? It seems that you forgot to post them ;)
scheinwerfer
Trader
Posts: 42
Joined: Mon Dec 12, 2011 12:36 am

Re: Getting Minutes Since/Until News Correctly

Post by scheinwerfer »

fxdaytrader wrote:
ceshiwuhao wrote: he made the following iCustom calls that worked.
which calls? It seems that you forgot to post them ;)
ceshi is a spammer, he posts just ramblings, nevermind his posts! His best one yet is this one:
http://www.stevehopwoodforex.com/phpBB3 ... 253#p35253
I know EA is a comparable and Blizzard game production company.
Dude made a quick search on EA and took it as Electronic Arts company :lol:
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Getting Minutes Since/Until News Correctly

Post by fxdaytrader »

ah, now I understand - maybe he is spamming that forum to spread the backlinks in his signature? that's really poor, because real profi spammers use programs to do that.
;)
Post Reply

Return to “Coders Hangout”