
Thanks.
No, I won't try to write much Craptastic code myself.
But I have to learn the essentials to be able to hack the codes from others and test and confirm if I can find things to improve.
I always like to prove for myself it works before raising it in a wider audience.
Hence e.g. I was looking at that closing code in HGB and asked Trendinator if he saw the same..... before raising it as a potential logic issue.
Also in my trial weeks ago I did prevent entries at Yellow by adding if (TmaStatus == Tmarangesignal || TmaStatus == TmaInitializing) return(false); to line 2285ish.
So generally I am just tinkering ....
For me HGB manual gives nice results, but HGB EA not yet. Especially in non-trending times HGB EA appears to suffer.
- Preventing Entry at Yellow improved things in my tests
- I hope your new version with closing on Waves will bring HGB EA closer to HGB manual
(although we have to accept it probably will never be as good as manual as you cannot code everything that you see... e.g. trendlines, news. But we can at least try to get it closer)
Some other ideas:
I think there is a much better closing method (am testing it manually).
Closing trades on Waves one TF lower preserves a lot of 'gain' that HGB now gives away. Conceptually it of course makes sense. My manually testing (slow progress) looks very promising. Unfortunately I have little time to trade manually.
Finding how to implement another TF in the same EA will have to become my next project.
Some other big effects I found so far were time of trades (ok I'll duck now

). Somehow trades initiated in the second half US and Asian period caused a NET loss (in MY trials). Is this because that period is generally less trending?
Also I definitively found that halfway the UK and halfway the US session there often appears to be draw-dawn in open trades. But no idea yet how to tell HGB to take profit and reset. May be the point about closing on waves one TF lower would solve this.
Enough ideas to keep busy. I have a 'warped' perspective.
My beef with most systems is that the focus is always on Entries. IMHO the deciding factor in being profitable is more determined by Exits and MM. So I will hobby away with the exit part.