FFCal Indi

1000pips
Trader
Posts: 29
Joined: Fri Jun 03, 2016 11:13 am

FFCal Indi

Post by 1000pips »

Very sorry, yes you a Right Rene, typo error slip appologies :arrrg: . Vertical lines anchored to time, pop up window shows next news item for that currency pair only in any given TF & time remaining 2 that news item in the popup description that appears as you hover your mouse over it. Simply that. Thanks 4 the correction. Al buy dis one if u so wish. :good:
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

FFCal Indi

Post by renexxxx »

No need to pay for this (if that was what you were suggesting ... I wasn't quite sure from your limited English).

I have created the FFCalLines - indicator, (added to Post 1 of this thread), and included the source code (MQ4-file) to show how easy it is to do this.

Have fun.
1000pips
Trader
Posts: 29
Joined: Fri Jun 03, 2016 11:13 am

FFCal Indi

Post by 1000pips »

:clap: wow, thanks a million Rene. That was super fast. Am liking it, the lines tell an unfolding story in the market.
Looking to edit the code to add these, tho am just a fledgling coder. :shock:

Am trying to add these that would be most helpful.

✔ dotted lines option, so that the lines don't hide the shadows (wicks) on any candle for us naked traders. I find the shadows are just as important as the candle body

✔ the pop up that appears when you hover over the mouse over past/future lines to include the data series on that news item: for example: previous 25bn, expected is 30b, outcome is 20bn. Calling data series to the pop up will focus the trader exclusively on the charts market reaction, not the news so much.

:yahoo: thats it. Thank you for this beautiful tool, :cheer: working great :xm: there is still room for improvement for the naked trader, al see if I can code the checked items into it :shock: :o :) Thanks
1000pips
Trader
Posts: 29
Joined: Fri Jun 03, 2016 11:13 am

FFCal Indi

Post by 1000pips »

Oh, you ain't supposed to modify it, as mentioned in the code, ☑ okay
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

FFCal Indi

Post by renexxxx »

The observant eyes of Boulder (Aram) spotted a bug in the FFCalIndi indicator. This has to do with the correct interpretation/conversion of the times 12:00am and 12:30am to 0:00 and 0:30 respectively. The LibFF.mqh has been updated to fix this, but you can just re-download FFCalIndi.ex4 and FFCalLines.ex4 from Post 1.

Thanks Aram!
1000pips
Trader
Posts: 29
Joined: Fri Jun 03, 2016 11:13 am

FFCal Indi

Post by 1000pips »

Managed to find & change FFCal Line code settings that draw the !VLines in the background in dotted style. Unfortunately it hides the !VLine dates. Need help Incorporating these in the popup that appears when you hover your mouse over the line.
Am suggesting Acronym P.E.A (Previous, Expected, Actual)

[USD] - Non Farm Employment Change
2016.11.04 16:30
[P] - 156K
[E] - 165K
[A] - 177K

Date is included because drawing the dotted vertical line in backgroug hides it. Thanks :good:
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

FFCal Indi

Post by renexxxx »

1000pips » Fri Oct 21, 2016 6:04 pm wrote: [USD] - Non Farm Employment Change
2016.11.04 16:30
[P] - 156K
[E] - 165K
[A] - 177K
Just replace line 123 in FFCalLines.mq4 with this

Code: Select all

             if ( !SetToolTip( ChartID(), objectName, StringFormat( "[%s] : %s\n%s\n[P] : %s\n[E] : %s", aNewsItem.ni_country, aNewsItem.ni_title, TimeToStr( GMTToServer( aNewsItem.ni_datetime ) ), aNewsItem.ni_previous, aNewsItem.ni_forecast ) ) ) {}
Unfortunately, the xml file from ForexFactory doesn't provide the actual data, so we don't have it.

R.
1000pips
Trader
Posts: 29
Joined: Fri Jun 03, 2016 11:13 am

FFCal Indi

Post by 1000pips »

Hi Rene Thanks , that wasn't hard :youknow: as I thought, quite simple.

By actual I just meant the actual data after the event, Okay then, if its not possible I understand, coz I never saw it the FFIndi either. Will just hv 2 refer to d website I guess. thanks
You do not have the required permissions to view the files attached to this post.
1000pips
Trader
Posts: 29
Joined: Fri Jun 03, 2016 11:13 am

FFCal Indi

Post by 1000pips »

Rene, how are you.

Sorry to ask this but is there a way to turn dates from this format:

2016.11.02 21:00 to this ➡ Wednesday, 2. Nov 2016, 9:00pm

So that the FFCal Lines show something like this:

[USD] : FOMC Statement
Wed, 2 Nov 2016, 9:00pm
[P] :
[E] :
[A] :

✴ Thanks alot 4 d help
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

FFCal Indi

Post by renexxxx »

1000pips » Tue Nov 01, 2016 3:45 pm wrote: So that the FFCal Lines show something like this:

[USD] : FOMC Statement
Wed, 2 Nov 2016, 9:00pm
[P] :
[E] :
[A] :
These are very specific requirements and not necessarily useful for the general public.

I have added the Date.mqh include file to FFCalLines that contains a general purpose DateToStr() function, that takes a dateMask parameter. See the comments inside the Date.mqh file for the format of this dateMask.

Have fun.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Clocks and calendars”