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

Boinvests Holy Grail Playground
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4060
Page 3 of 25
Author:  boinvest [ Wed Jan 21, 2015 11:35 pm ]
Post subject:  Boinvests Holy Grail Playground

Ok, this is a cross post..
But I think this might be valuable for everyone's understanding...
Originally from the Great HGB forward test topic...
This all to try and find an explanation why the results differ with the forward test, of the same EA, Same Setfile, and same broker.


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 interesting 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 don't 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 experimenting 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.


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 unlikely that you all attached the EA at the same time to the chart.
And clicked simultaneously on the OK butting, for the settings.
So, all of your indicator read-times 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 doesn't 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 focused 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 separate EA, with only purpose to catch this type of behavior, to see what we have to work with.

Edit: have to add that this might be over optimization.. we'll see.

Hopefully your are not bored with all this tech talk :lol:
Author:  boinvest [ Wed Jan 21, 2015 11:43 pm ]
Post subject:  Boinvests Holy Grail Playground

almartins » Tue Jan 20, 2015 4:47 pm wrote:Hi Boinvest,

I have tried your BoHGB 2q.mq4 EA but can't be compile because a metaeditor error in line 1349:
"'c' - variable already defined BoHGB 2q.mq4 1349 18"
Please check

B. Regards
almartins
Whoops, I totally overlooked this post.
I played around a bit, with the usage of strict compilation which might lay at the roots of this.
Dunno, I don't experience this at this moment..
Are there more people facing this issue??
Author:  acostafulano [ Wed Jan 21, 2015 11:46 pm ]
Post subject:  Boinvests Holy Grail Playground

I share your feelings about this.

As I mentioned in my PM, the approach I'm taking to try and "avoid" all this issues with the signals is take the signal as an entry point, and let the non-faulty good old hard TP/SL approach, and tweak things from there.

I'm sure that running this thing over a long period of time (3-6 months) we should be able to know which pairs tend to yield the best results, on which type of trades, and at which times of day. Even though the past doesn't predict the future, it does give you an edge.

My 2 cents.

Thanks for the amazing work Emiel

PS. I'm also experiencing the issues with 2q. (Can't compile/attach to charts). 2q mod running just fine.
boinvest » Wed Jan 21, 2015 6:35 pm wrote:
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 separate EA, with only purpose to catch this type of behavior, to see what we have to work with.

Edit: have to add that this might be over optimization.. we'll see.

Hopefully your are not bored with all this tech talk :lol:
Author:  boinvest [ Thu Jan 22, 2015 12:08 am ]
Post subject:  Boinvests Holy Grail Playground

acostafulano » Wed Jan 21, 2015 11:46 pm wrote: PS. I'm also experiencing the issues with 2q. (Can't compile/attach to charts). 2q mod running just fine.
Great stuff how Empty4 handles it's backwards an forward compatibility of it's own compiler.

Wanted to change stuff to use property strict..
Made the code comply with the new standard.
Saw it messed up the settings and changed back..
And the old compiler method can't handle how things has to be for the new method..
sight... :arrrg:


All well, Version 2r is attached to post 1.
Not much changed.. took the compilation error out by renaming one item.

Added a alert message in case you forget to check "Allow DLL imports"
Had an attempt to fix "the min distance between trades".
Author:  acostafulano [ Thu Jan 22, 2015 12:37 am ]
Post subject:  Boinvests Holy Grail Playground

Don't mean to be a bugger, but I think found something faulty,


Why are these trades closing if "wave close on opposite arrow" is disabled, same for all types of trades.
I want to try exits purely by SL/TP.

I've seen this problem occur only on the wavy line trades, so far

any thoughts?
Author:  boinvest [ Thu Jan 22, 2015 1:11 am ]
Post subject:  Boinvests Holy Grail Playground

acostafulano » Thu Jan 22, 2015 12:37 am wrote:Don't mean to be a bugger, but I think found something faulty,


Why are these trades closing if "wave close on opposite arrow" is disabled, same for all types of trades.
I want to try exits purely by SL/TP.

I've seen this problem occur only on the wavy line trades, so far

any thoughts?
Hmm, interesting..
We should be able to exclude the:
Opposite Arrow signals as this is set to false
Opposite TMA...
It are losers,, so no basket TP, cash target... or similar..

Leaves out Margin check?? (unlikly from the screen)
SL hit?

(Or some thing we hope we had solved in previous versions of HGB)

Hard to tell from that image.
Are they buy or sells?
Can you post your set file?
Any messages in expert tab? which might give a clue?
Author:  acostafulano [ Thu Jan 22, 2015 2:10 am ]
Post subject:  Boinvests Holy Grail Playground

Im on the phone now. Will send all when i get to my pc.
I can say:
No margin closure so exclude that.
SL is 45 pips and the closures have been at various losses so i think we can exclude that too.

I must say; its 2q mod. Maybe sometjing to do with the special closures???
Havent tried 2r yet.
boinvest » Wed Jan 21, 2015 8:11 pm wrote:
acostafulano » Thu Jan 22, 2015 12:37 am wrote:Don't mean to be a bugger, but I think found something faulty,


Why are these trades closing if "wave close on opposite arrow" is disabled, same for all types of trades.
I want to try exits purely by SL/TP.

I've seen this problem occur only on the wavy line trades, so far

any thoughts?
Hmm, interesting..
We should be able to exclude the:
Opposite Arrow signals as this is set to false
Opposite TMA...
It are losers,, so no basket TP, cash target... or similar..

Leaves out Margin check?? (unlikly from the screen)
SL hit?

(Or some thing we hope we had solved in previous versions of HGB)

Hard to tell from that image.
Are they buy or sells?
Can you post your set file?
Any messages in expert tab? which might give a clue?
Author:  acostafulano [ Thu Jan 22, 2015 2:13 am ]
Post subject:  Boinvests Holy Grail Playground

Fprgot to mention: I'm not having this closures with the SH version. (All opposite closures set to false and all trades closing on either tp or sl as intended).

Maybe has something to do with the modifications?
Author:  boinvest [ Thu Jan 22, 2015 2:27 am ]
Post subject:  Boinvests Holy Grail Playground

acostafulano » Thu Jan 22, 2015 2:13 am wrote:Fprgot to mention: I'm not having this closures with the SH version. (All opposite closures set to false and all trades closing on either tp or sl as intended).

Maybe has something to do with the modifications?
Aah this helps, at least now I can start looking in the right ea. :arrrg:

But first get some sleep. 3,00 here.
Lying in bed, had some good coding ideas I needed to write down. :yahoo:

Think we are really on to somethings here.
Author:  trendinator [ Thu Jan 22, 2015 4:17 am ]
Post subject:  Boinvests Holy Grail Playground

Nice developments here. Looking forward to seeing the progress
All times are UTC Page 3 of 25