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

The Great HGB Foward Test
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4044
Page 15 of 27
Author:  milanese [ Tue Jan 20, 2015 11:57 pm ]
Post subject:  The Great HGB Foward Test

triangla » Tue Jan 20, 2015 11:15 pm wrote:
trendinator » Tue Jan 20, 2015 2:46 pm wrote:
that's strange. something must've gone wrong with your installation, because this should be installed by default, no need to add it. or you're looking at the wrong folder - open Empty4 and go to File | open data folder.


Yes, that's what I did.
Open Empty4, File=>Open Data folder=> MQL4=> Libraries=> "This folder is empty." :roll:
if the EA compiles and runs, and you see no error messages in the EA log you have that lib but at an other location.. and the HGB should run as intended

Cheers :)

Tommaso
Author:  triangla [ Wed Jan 21, 2015 1:08 am ]
Post subject:  The Great HGB Foward Test

milanese » Tue Jan 20, 2015 3:57 pm wrote:
triangla » Tue Jan 20, 2015 11:15 pm wrote:
trendinator » Tue Jan 20, 2015 2:46 pm wrote:
that's strange. something must've gone wrong with your installation, because this should be installed by default, no need to add it. or you're looking at the wrong folder - open Empty4 and go to File | open data folder.


Yes, that's what I did.
Open Empty4, File=>Open Data folder=> MQL4=> Libraries=> "This folder is empty." :roll:
if the EA compiles and runs, and you see no error messages in the EA log you have that lib but at an other location.. and the HGB should run as intended

Cheers :)

Tommaso


Thanks Tommaso,
I just checked the logs and found the error. It happened a few days after the installation :arrrg: :arrrg:
So, I guess that all of us who are doing the test should check the experts log, just in case :?:
Author:  trendinator [ Wed Jan 21, 2015 3:58 am ]
Post subject:  The Great HGB Foward Test

guys im away until next tuesday. gonna go to a festival interstate this weekend.. sorry its bad timing i know.

please organise yourselves, good luck :)
Author:  milanese [ Wed Jan 21, 2015 7:42 am ]
Post subject:  The Great HGB Foward Test

triangla » Wed Jan 21, 2015 1:08 am wrote:
Thanks Tommaso,
I just checked the logs and found the error. It happened a few days after the installation :arrrg: :arrrg:
So, I guess that all of us who are doing the test should check the experts log, just in case :?:
than just place the stdlib.ex4 in your liberary folder and you should have resolved the problem...
I do not think that your results are affected, as it is only used to printout in clear text the type of error
Cheers :)

Tommaso
Author:  gringoh [ Wed Jan 21, 2015 12:17 pm ]
Post subject:  The Great HGB Foward Test

Are you using MTCrap portable mode?

I am asking this question as I am using the portable mode on my platforms which make it easier for me to add indicators/ea, to save the platform...

When you use the portable mode, the various indicators and libraries... are stored in Program files. In the standard mode they are stored in the user directory....

Even when I use the portable mode, I have to make sure that some of the libraries are installed in the user directory otherwise sometime I have this issue for stdlib.

Just an idea which might help to track the issue.

Cheers,
G
Author:  sponn [ Wed Jan 21, 2015 6:35 pm ]
Post subject:  The Great HGB Foward Test

Strange. So different results (different trades) on the same broker.
Author:  drunka [ Wed Jan 21, 2015 6:40 pm ]
Post subject:  The Great HGB Foward Test

sponn » 4 minutes ago wrote:Strange. So different results (different trades) on the same broker.
Even on the same computer with same settings.
Author:  boinvest [ Wed Jan 21, 2015 11:26 pm ]
Post subject:  The Great HGB Foward Test

Hi Guys,

Appreciate what your doing, hopefully I can join the next run.
Just want to share some interesting stuff.
I've also experienced that not all signals are taken.
This caught my attention and curiosity.
In the HGI indicator topic was some conversation about repainting.
And the change of signals, don't want to dig to deep into it here.
But this might be an interesing read for you.

There was also someone (Drunka) http://www.stevehopwoodforex.com/phpBB3 ... 80#p112158
who had multiple instances of Empty4 and the indicator.
On the same broker, but with different signals on the charts.
As we dont know, how the HGI calculates stuff, maybe this is caused by some interpolation or extrapolation of values??
Either way interesting....
WhoKnows » Tue Jan 20, 2015 10:42 pm wrote:
The second point would be the HgiReadDelaySeconds setting. The larger this setting, the more chance there is that a signal that comes and disappears within the ReadDelay period is missed. And with different computers looking at different timestamps within the ReadDelay period... different computers may miss different temporary signals.

It would be interesting to see what effect increasing the HgbReadDelay has on the performance of HGB. Maybe take it from 60 too 300 seconds to weed out bad signals .... On a 4H trading TF 5minutes is not much. Need to think this through. Just an hypothesis, no proof.
Yes you are really on to something with the HGI Readdelay.
Im expirimenting with this. Did set it, so that at least 10 checks per candle.
But when trading H4, this still might be to long distance apart.
Ow, just saw you typed something similar :arrrg:

The interpretation of the signals is one of the reasons why I switched with the BoHGB from using the indi to the library.

Oh, just have an insight..
The next indi read time is determined from the moment the EA is initialized.
It is very very unlikly that you all attached the EA at the same time to the chart.
And clicked simultaniously on the OK butting, for the settings.
So, all of your indicator readtimes are different from start, and stay different from that moment on.
Depending on the settings it could be seconds of, or even milliseconds.
Coding the EA a bit different, MIGHT improve this, but I don't believe it possible to get this thingy entirely out of our way.

Today I did some eyeballing on the charts...
I saw a sell wavy drawn on the chart at the current candle, and all of a sudden it was changed to a buy wavy. You clearly didn't want to enter that one as a sell.
The sum this up.. and combine this with my previous statement.
The way your instance of HGB took the trade is entirely depending on the time the signal from that candle is read. And as stated above, this differs from each and everyone of you, and each instance.

I also noticed, sometimes trades where closed by an opposite signal.
Even when there was no visible opposite signal on the chart.
(Have to add, that this could also be the case because I use the LIB and indicator in the mix.)

Just want to make clear, this is no bug at all! This is normal behavior.
It is the result of how the HGI and HGB works.
A discretionary trader won't notice even notice this change of signals, or a bad signal for a short time.
But an EA reacts much faster in the milliseconds area.
This is one of the challenges someone faces when automating stuff..

It will be hard to overcome this, but at least there can be something done to try to improve this.
It is common practice to use filters for this purpose.
I have a background in programming physical stuff.. over there it's common practice to use this.
Dunno if its common for MQL programmers.
At this moment the HGB and my version the BoHGB does'nt have this kind of filter in place.
This is one of the things I wanna pay attention to and work on.
Before I take the next steps..(different strategies ect..)

Will have to add that this is THE challenge.
Discretionary trades have such an easy job, not to deal with this kind of stuff :mrgreen:.

Because the text above was only focussed on the possibility of a "wrong" signal or changing signal appearing on the candle. Have to add, that there is also a the repainting thingy.
Won't go deep into this one, but as reported on the HGI indicator thread.
Sometimes a signal is formed on the previous candle. (on H4 this might sometimes be to late to enter when this happens).

Well, all this said, we can have multiple approaches with this.
Accept that the HGI has it's weaknesses. (if I may call it so).
And the same goes for the HGB, BoHGB.
Accept it, leave the system simple and enjoy it...
You'll never gonna get a 100% perfect system...

Personally have to say I am the kind of person who likes a challenge and is intrigued by this.
Was already on the topic today in some PM's so good to share this here.
I accept the challenge to see, if I can come up with some form of filter to (potentially) reduce these kind of unwanted system behavior.
Will create a seperate EA, with only purpose to catch this type of behaviour, to see what we have to work with.

Hopefully your are not bored with all this tech talk :lol:
Author:  boinvest [ Wed Jan 21, 2015 11:49 pm ]
Post subject:  The Great HGB Foward Test

trendinator » Tue Jan 20, 2015 10:23 pm wrote: Regarding differences:
I remember few years ago when we were comparing NinjaTrader strategy performance between a group of traders, one issue turned out to be that the computer times of the participants were not the same. Some were out several minutes. At the time we used a thingy to force regular synchronisation.

It would be interesting to see if all the Amazon VPS's are more similar (as these would run at the same time stamp).
Just want to add, that maybe the instances could be on different server also, but It's a interesting start to compare.

Also on the same note, I've noticed my Windows 8 system clock is always 4 minutes behind.
I've tried everything, regular synchronisation, different sync servers... cannot solve the issue.
So decided not to be bother with it, and accept the way it is.
Some new code I have lying around for the BoHGB, is the Rolloverprotection.
For this matter I decided to use the server time.
(hopefully the server of the broker actually has the good time.)
DoctorGremlin » Tue Jan 20, 2015 10:29 pm wrote:The magic number is an identifier for the EA so that it knows which trades it should handle. For example, my HGB on EURUSD has magic number 2, so this HGB should only handle this trades. When you run 28 instances, and each one has magic number 0, then it might be possible that for example the HGB on EURUSD Closes trades on USDCHF.
That's true, it can differ from EA to EA.
In the HGB, is coded that for the closure each EA instance is only looking at the symbol of the chart it's placed on.
I'm not sure if having a different magic number influences the max amount of open trades, or the trade counting. Have to check..
Author:  Yuggr [ Thu Jan 22, 2015 12:07 am ]
Post subject:  The Great HGB Foward Test

Arrived home from work this evening to be greeted by an odd comment in the alerts stating that the indicator is not attached to the chart.
Capture.JPG
Now I'm sure that HGB should only need the indicator in the folder to work and not attached to the chart.

Has been working fine up till this point, any one else seeing this issue?
All times are UTC Page 15 of 27