Losing week last week:
HGB's Candle Power multi-pair combined trader and dashboard
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
HGB's Candle Power multi-pair combined trader and dashboard
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
SWG123
- Trader
- Posts: 565
- Joined: Wed Nov 16, 2011 3:02 pm
- Location: Cape Town
HGB's Candle Power multi-pair combined trader and dashboard
Reasonable week for me (H4 TF, live account)-
You do not have the required permissions to view the files attached to this post.
-
Walt6730
- Posts: 4
- Joined: Sat Nov 10, 2012 10:50 am
HGB's Candle Power multi-pair combined trader and dashboard
Hi everybody,
Tried to test the EA on a demo. Saw this:
2017.12.04 14:40:40.861 Holy Graily Bob%27s multi-pair Candle Power EURUSD,M5: zero divide in 'hgi_lib.mq4' (59,51)
What's wrong?
Tried to test the EA on a demo. Saw this:
2017.12.04 14:40:40.861 Holy Graily Bob%27s multi-pair Candle Power EURUSD,M5: zero divide in 'hgi_lib.mq4' (59,51)
What's wrong?
- 1Direction
- Trader
- Posts: 97
- Joined: Sun Jan 29, 2017 8:37 pm
- Location: London
HGB's Candle Power multi-pair combined trader and dashboard
Update to last hgi_lib.mq4 this did the trick for meWalt6730 » Mon Dec 04, 2017 12:45 pm wrote:Hi everybody,
Tried to test the EA on a demo. Saw this:
2017.12.04 14:40:40.861 Holy Graily Bob%27s multi-pair Candle Power EURUSD,M5: zero divide in 'hgi_lib.mq4' (59,51)
What's wrong?
-
Walt6730
- Posts: 4
- Joined: Sat Nov 10, 2012 10:50 am
HGB's Candle Power multi-pair combined trader and dashboard
Thanks a lot! But where is it?1Direction » Mon Dec 04, 2017 7:46 pm wrote:Update to last hgi_lib.mq4 this did the trick for meWalt6730 » Mon Dec 04, 2017 12:45 pm wrote:Hi everybody,
Tried to test the EA on a demo. Saw this:
2017.12.04 14:40:40.861 Holy Graily Bob%27s multi-pair Candle Power EURUSD,M5: zero divide in 'hgi_lib.mq4' (59,51)
What's wrong?
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
HGB's Candle Power multi-pair combined trader and dashboard
That is my fault; I forgot to include the link either in post 1 here or in the user guide. I will correct both later.Walt6730 » Mon Dec 04, 2017 12:43 pm wrote:
Thanks a lot! But where is it?
Download it from http://www.stevehopwoodforex.com/phpBB3 ... =88&t=3964 You are looking for hgi_lib.ex4 about two thirds of the way down post 1. It goes in your crapform's Libraries folder.
Make sure you subscribe to Bob's thread folks, so you do not miss update announcements. All HGI stuff is time-limited and will stop working once the end date is reached.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
Walt6730
- Posts: 4
- Joined: Sat Nov 10, 2012 10:50 am
HGB's Candle Power multi-pair combined trader and dashboard
Thanx Steve,SteveHopwood » Mon Dec 04, 2017 9:00 pm wrote: That is my fault; I forgot to include the link either in post 1 here or in the user guide. I will correct both later.
Download it from http://www.stevehopwoodforex.com/phpBB3 ... =88&t=3964 You are looking for hgi_lib.ex4 about two thirds of the way down post 1. It goes in your crapform's Libraries folder.
Make sure you subscribe to Bob's thread folks, so you do not miss update announcements. All HGI stuff is time-limited and will stop working once the end date is reached.
I downloaded that you mentioned but it generates the error I described above...
-
eRIKb81
- Trader
- Posts: 22
- Joined: Wed Jul 05, 2017 6:03 am
HGB's Candle Power multi-pair combined trader and dashboard
Hi, I've been testing a bit with this EA and I really like the way this EA works, thanks for the hard work! But I ran into a problem:
Is anybody else using the "Whole position as basket take profit" option? My positions don't seem to close even though I get the alert "All trades should have closed".
Looking at the code it hits the 'CloseAllTrades(AllSymbols, AllTrades);' function, because I get the alert, but positions do not close. I've been looking at the code, but i don't understand why it does not close.
I've disabled (and enabled) all the offsetting and breakeven options, but it does not seem to work.
While writing this I've narrowed down the problem to line 1740 in the CountOpenTrades() function:
If you remove this line the trades start to close. Unfortunately i cannot test further now, because the trades have closed
.
EDIT: please do not do this this to your own EA, I may have found the problem, but removing the line probably is NOT the solution
Is anybody else using the "Whole position as basket take profit" option? My positions don't seem to close even though I get the alert "All trades should have closed".
Looking at the code it hits the 'CloseAllTrades(AllSymbols, AllTrades);' function, because I get the alert, but positions do not close. I've been looking at the code, but i don't understand why it does not close.
I've disabled (and enabled) all the offsetting and breakeven options, but it does not seem to work.
While writing this I've narrowed down the problem to line 1740 in the CountOpenTrades() function:
Code: Select all
//Ensure the EA 'owns' this trade
if (OrderSymbol() != symbol ) continue;EDIT: please do not do this this to your own EA, I may have found the problem, but removing the line probably is NOT the solution
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
HGB's Candle Power multi-pair combined trader and dashboard
Nice one Erik. Your solution is hopeless and will bugger up absolutely everything else, but it did point me towards a bloop I made.
There is an incorrect function call in bool LookForEntirePositionClosure()
Peasants, your fix is in V 1j in post 1.
Un-peasants, so a search for: "Alert("Candle Power has hit its whole position basket take profit. All trades should have closed.");"
In the code that follows, you will see this line of code three times:
CloseAllTrades(AllSymbols, AllTrades);
They need replacing with:
CloseAllTradesBelongingToEA();
You will see the difference if you look at the CloseAllTradesBelongingToEA() function.
Then do a search for this string: "//In case any global order close/delete failed"
You will see two more code lines calling the incorrect function, so replace them with CloseAllTradesBelongingToEA();
I coded this as a separate function because it is easier than trying to adapt calls to the existing CloseAllTrades() to a global trade closure failure - then forgot.

There is an incorrect function call in bool LookForEntirePositionClosure()
Peasants, your fix is in V 1j in post 1.
Un-peasants, so a search for: "Alert("Candle Power has hit its whole position basket take profit. All trades should have closed.");"
In the code that follows, you will see this line of code three times:
CloseAllTrades(AllSymbols, AllTrades);
They need replacing with:
CloseAllTradesBelongingToEA();
You will see the difference if you look at the CloseAllTradesBelongingToEA() function.
Then do a search for this string: "//In case any global order close/delete failed"
You will see two more code lines calling the incorrect function, so replace them with CloseAllTradesBelongingToEA();
I coded this as a separate function because it is easier than trying to adapt calls to the existing CloseAllTrades() to a global trade closure failure - then forgot.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
eRIKb81
- Trader
- Posts: 22
- Joined: Wed Jul 05, 2017 6:03 am
HGB's Candle Power multi-pair combined trader and dashboard
Thank you, this should allow for running multiple HGB-CP-MTF EA's in the same Empty4 client, i hope, as long as i set the magic numbers. Running a VPS with 3 different settings now, let's see what happens.
I'm testing the basket functionality with the assumption that the HGI signals are right more often than wrong. The basket should take care of the losers, so i disabled the offsetting and breakeven for 2 of the 3 EA's running now. Small profit targets of 5 and 10, with 0.01 size.
I'm testing the basket functionality with the assumption that the HGI signals are right more often than wrong. The basket should take care of the losers, so i disabled the offsetting and breakeven for 2 of the 3 EA's running now. Small profit targets of 5 and 10, with 0.01 size.