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

FFCal Indi
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4304
Page 2 of 4
Author:  1000pips [ Wed Oct 19, 2016 10:36 pm ]
Post subject:  FFCal Indi

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:
Author:  renexxxx [ Thu Oct 20, 2016 12:51 am ]
Post subject:  FFCal Indi

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.
Author:  1000pips [ Thu Oct 20, 2016 8:06 am ]
Post subject:  FFCal Indi

: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
Author:  1000pips [ Thu Oct 20, 2016 8:57 am ]
Post subject:  FFCal Indi

Oh, you ain't supposed to modify it, as mentioned in the code, ☑ okay
Author:  renexxxx [ Thu Oct 20, 2016 12:29 pm ]
Post subject:  FFCal Indi

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!
Author:  1000pips [ Fri Oct 21, 2016 8:04 am ]
Post subject:  FFCal Indi

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:
Author:  renexxxx [ Fri Oct 21, 2016 10:46 pm ]
Post subject:  FFCal Indi

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.
Author:  1000pips [ Sat Oct 22, 2016 12:50 pm ]
Post subject:  FFCal Indi

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
Author:  1000pips [ Tue Nov 01, 2016 5:45 am ]
Post subject:  FFCal Indi

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
Author:  renexxxx [ Tue Nov 01, 2016 6:32 am ]
Post subject:  FFCal Indi

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.
All times are UTC Page 2 of 4