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

HGI XtraTF Display
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5102
Page 1 of 3
Author:  gprince66 [ Sat Mar 04, 2017 3:35 am ]
Post subject:  HGI XtraTF Display

Here's a little indicator that will display HGI signals for any time frame. The settings allow you to choose your wingding style and size, this helps differentiate the different TF signals for multiple HGI indis on same chart.

Hers's a link for the wingding codes:
https://docs.mql4.com/constants/objectc ... /wingdings

The image below shows HGI on H4 TF (regular style) and HGI_XTF is set to D1 (hollow style).

I'm not sure if the alerts are set up correctly, will test next week. Any input/suggestions are welcome.

Thanks and enjoy.

Gary

almost forgot, you need to put hgi_lib.mqh in 'Include' folder and hgi_lib.ex4 in 'Libraries' folder.
Screenshot (41).png
.
Author:  Wavegarrick [ Sat Mar 04, 2017 5:07 am ]
Post subject:  HGI XtraTF Display

Hi Gary,

This is going to be most helpful. :good:

Thank you.

Cheers
Leon
Author:  Wavegarrick [ Sat Mar 04, 2017 6:43 am ]
Post subject:  HGI XtraTF Display

Hi Guys,

For the newer users, here is the hgi_lib.mqh file from Rene's Hgi matrix which must go into your include folder:
hgi_lib.mqh
The hgi_lib.ex4 file which must go into the library folder is on Pg 1 of the Hgi thread.
Sorry for taking the liberty Gary. I know you will get questions regarding this.

Cheers
Leon
Author:  gprince66 [ Sat Mar 04, 2017 8:11 am ]
Post subject:  HGI XtraTF Display

Thanks Leon, much appreciated! :good:
Author:  traderduke [ Tue Mar 07, 2017 3:23 pm ]
Post subject:  HGI XtraTF Display

Gary
Thank you, it will give us an interesting HGI prospective on one chart.

Ray
Author:  gprince66 [ Tue Mar 07, 2017 11:40 pm ]
Post subject:  HGI XtraTF Display

Thanks Ray,

The idea for this indi came to me in a dream... guess who needs a new hobby :smile:

Gary
Author:  rapple [ Wed Mar 08, 2017 12:51 am ]
Post subject:  HGI XtraTF Display

Nice work Gary

I will give it a go :good:
Author:  traderduke [ Wed Mar 08, 2017 3:28 pm ]
Post subject:  HGI XtraTF Display

Gary
This is a very useful tool for reaffirming the many hits the HGI OF THE CHART Frame may give. I use the HGImatrix and one of the indicators I find useful is a Next TF automatic adjustment.
Is there any chance you could incorporate that into the HGI_XTF. Then each Chart TF could automatically show the Higher TF.
I know we could load 5 XTFs on the matrix templet, my present templet, but I thought this option would sever better us in a lot of ways.
I have attached the indicator with the option which also allows the higher TF to jump more than 1 TF. When I use a15M chart, I use H1.

Thank you very much for all you contribute to this forum
Ray

PS: I was looking into requesting the NextTF for the Baulda SuperSlope, any thoughts?
RK-FX Sniper's Ergodic CCI Trigger-AL-next TF-v2.5.mq4
Author:  gprince66 [ Wed Mar 08, 2017 5:46 pm ]
Post subject:  HGI XtraTF Display

Ray,

Baluda.SuperSlope:
the indi has an extern variable 'autoTimeFrame'...
set this to true and the indi will auto display the next higher TF

EDIT: the autoTimeFrame in Baluda.SuperSlope refers to the TF in column two, my mistake.


HGI_XTF:
add a block of 'if' statements at the end of 'OnInit()' just above 'return(INIT_SUCCEEDED);'

Code: Select all

if( _Period == PERIOD_M1 ) userTimeFrame = PERIOD_M5; 
else if( _Period == PERIOD_M5 )  userTimeFrame = PERIOD_M15;
else if( _Period == PERIOD_M15 ) userTimeFrame = PERIOD_M30;
...
...
...

Hope this helps. :good:
Author:  gprince66 [ Wed Mar 08, 2017 11:59 pm ]
Post subject:  HGI XtraTF Display

Here's a new version with 'autoHigherTF' . I also noticed the signals were getting eaten up by candles so I added a function to redraw/adjust bar 1 signal spacing. I also added a signal line so we can see what price level the signal occurred.

Keep the suggestions coming.

Gary

.
All times are UTC Page 1 of 3