HGIMatrix

The title says it all
Post Reply
skinner36

HGIMatrix

Post by skinner36 »

It was suggested that this important information was still lacking on the HGIMatrixMTF screen. Mind you, we don't have much more space to display any more information
Well Renexxxx, I guess to accommodate a tool this good we will just have to buy bigger monitors... lol

Cheers

John
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

HGIMatrix

Post by renexxxx »

I have added the hgi_lib version of 17.

In this version, you no longer need the HGI_v15.06.ex4 indicator (or any version for that matter) in your \Indicators folder. (Of course you can leave them there, they won't do any harm). However, you do need the hgi_lib.ex4 file in your \Libraries folder. Tommaso has granted me permission to publish this library with the 17L version. The library will cease to work beyond April 1st, 2015, like the indicator. After a certain time, you will get differences in signals between 17 and 17L, as signals obtained via the library are always the latest, updated signals. Signals obtained via the indicator stay the same except for bar 0.

17L and hgi_lib.ex4 are in post 1.
trendinator
Trader
Posts: 156
Joined: Sat Dec 06, 2014 12:22 am

HGIMatrix

Post by trendinator »

wow a lot has changed since i looked here last week!

im getting an error when compiling HGIMatrixMTFv17L - can't open Metatrader4/MQL4/include/hgi_lib.mqh include file.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

HGIMatrix

Post by renexxxx »

trendinator » Wed Dec 24, 2014 8:13 am wrote:wow a lot has changed since i looked here last week!

im getting an error when compiling HGIMatrixMTFv17L - can't open Metatrader4/MQL4/include/hgi_lib.mqh include file.
Ooops ... that must have slipped my mind ... :oops:

hgi_lib.mqh is now in post 1 and goes into \Include
trendinator
Trader
Posts: 156
Joined: Sat Dec 06, 2014 12:22 am

HGIMatrix

Post by trendinator »

renexxxx » Wed Dec 24, 2014 8:25 am wrote:
trendinator » Wed Dec 24, 2014 8:13 am wrote:wow a lot has changed since i looked here last week!

im getting an error when compiling HGIMatrixMTFv17L - can't open Metatrader4/MQL4/include/hgi_lib.mqh include file.
Ooops ... that must have slipped my mind ... :oops:

hgi_lib.mqh is now in post 1 and goes into \Include
sweet, all good. it's so colourful now! thought id post a pic coz it's lit up like a christmas tree :xm:
HGIMatrixMTFv17L.JPG
You do not have the required permissions to view the files attached to this post.
skinner36

HGIMatrix

Post by skinner36 »

This is about as trivial as it gets as far as suggestions go for modifications. Maybe you can consider it when you have absolutely nothing else to do.

I was testing different values in the MaxBarLookback and as expected I saw that there was no symbol displayed if none were on the chart in the period. What was displayed though was the number 0.
See the attached picture.
Empty.JPG
Maybe if no symbols are displayed then no number is displayed either.

Cheers,

John
You do not have the required permissions to view the files attached to this post.
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

HGIMatrix

Post by BobbyT »

renexxxx » Wed Dec 24, 2014 8:25 am wrote:
Ooops ... that must have slipped my mind ... :oops:

hgi_lib.mqh is now in post 1 and goes into \Include
Thanks Rene.

I thought I was losing my mind (more) for a second there. I'm thinking "there should be an mqh file here somewhere, the indi is calling it and Rene said it should be there". I think I've had too much "Christmas cheer" already :smile:

17L seems to have fixed an issue I was having regarding the matrix not updating with any signals. Not even changing TF would get new signals up :?
This new build has allowed me to see this sweet thing in full swing. So thank you very much Rene (and Tommaso for releasing the library and of course the work on HGI itself).

Once the silly season festivities are done though Rene, could I request a very minor revision to be looked into (when you feel you have had enough eating and drinking to last a lifetime :yahoo: ). This is more to do with the alerts system more than anything.
Would it be possible to have the alerts say which bar the signal has been thrown up on. I tried turning off the alerts on HGI and turned all the alerts on on the matrix.
I saw this: "TREND UP signal for AUDJPY on H4" and scrambled to look at the chart only to see the signal was updated on a bar 5 bars back. Maybe amending it with something simple like "TREND UP signal for AUDJPY on H4 (5)" so we know exactly how excited to get about an alert. This will also be handy for when trading using the alerts from a mobile device as we obviously can't have custom indis on the mobile platform.

On an entirely seperate note, does anyone know how to make the alerts window bigger. Such a waste of space (see the attached picture) :arrrg: .

Thanks Rene and everyone else for everything (ever). Have an awesome Christmas and an even more awesome new year :!!:
You do not have the required permissions to view the files attached to this post.
Procrastination provides exponentially negative returns - BobbyT
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

HGIMatrix

Post by renexxxx »

The suggestions from skinner36 and BobbyT were both very good, and easy to implement. As for customizing the Alert window: this would need to be done using WinAPI calls. It might be easier to create your own scrollable message pane.

Version 18 and 18L are in post 1.
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

HGIMatrix

Post by BobbyT »

Thanks Rene.
I made an attempt to do it myself. Not quite so elegant and involved another direct call the the array:

Code: Select all

message = StringFormat( "RANGE UP signal for %s on %s " + "(bar" + symbols[iSymbol][itf].signalShift + ")", symbols[iSymbol][itf].symbol, GetTimeframeString(timeFrame) );

It works but, yeah.

Could you point me to the mql4 page that has the string format function you have used (%s, %d). I see them a bit but never got the hang of how they are used.

With the custom alerts window do you mean to create one in MQL4 and run as an indicator of sorts? As for the WinAPI idea I wouldn't even know where to begin. I've tinkered with MQL4, R, MySQL (haha) and VBA (also haha) but as you know they run through their own dedicated platforms.
Sorry for being such a noob :oops: :arrrg: and thanks for everything :hi:
Procrastination provides exponentially negative returns - BobbyT
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

HGIMatrix

Post by renexxxx »

BobbyT » Wed Dec 24, 2014 2:32 pm wrote:Thanks Rene.
I made an attempt to do it myself. Not quite so elegant and involved another direct call the the array:

Code: Select all

message = StringFormat( "RANGE UP signal for %s on %s " + "(bar" + symbols[iSymbol][itf].signalShift + ")", symbols[iSymbol][itf].symbol, GetTimeframeString(timeFrame) );

It works but, yeah.

Could you point me to the mql4 page that has the string format function you have used (%s, %d). I see them a bit but never got the hang of how they are used.

With the custom alerts window do you mean to create one in MQL4 and run as an indicator of sorts? As for the WinAPI idea I wouldn't even know where to begin. I've tinkered with MQL4, R, MySQL (haha) and VBA (also haha) but as you know they run through their own dedicated platforms.
Sorry for being such a noob :oops: :arrrg: and thanks for everything :hi:
Hi BobbyT,
Have a look at what I've done in version 18 and 18L. That is more elegant than your code.

As for the %d and %s formatting placeholders, have a look at PrintFormat, as StringFormat and PrintFormat use the same syntax. By the way, this was invented in the 70s when Kernighan and Ritchie designed C. This was used in the good old printf() and scanf() functions.

I was thinking of an scrollable pane you can build in MQL4 for the message text. Problem is though that we don't have much screen space left -- especially if there is more than one matrix on the screen.
Post Reply

Return to “Indicators and matrixes”