4 Ducks
-
OldTrader
- Trader
- Posts: 71
- Joined: Wed Nov 16, 2011 10:19 pm
Re: 4 Ducks
yes, sorry, my mistake. used wrong editor to open 
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: 4 Ducks
V 1c is in post 1. I noticed some strange behaviour when starting up, and found a line of code that needed moving.
To make the change yourself, go to int init() and find this line of code
Cut and paste this to just above
so the snippet reads:
then recompile.

To make the change yourself, go to int init() and find this line of code
Code: Select all
ReadIndicatorValues();Code: Select all
CountOpenTrades();Code: Select all
ReadIndicatorValues();
CountOpenTrades();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.
-
RxCape
- Trader
- Posts: 68
- Joined: Sun Mar 04, 2012 8:10 pm
Re: 4 Ducks
I keep getting rogue trades. I have left the rogue trade parameters in the settings as OOTB, i.e 0 & 1. I cannot figure out why I keep getting these trades. Any suggestions would be appreciated.
- SpiderX
- Trader
- Posts: 554
- Joined: Thu Aug 22, 2013 4:50 pm
Re: 4 Ducks
Seems to be the same for me here.RxCape wrote:I keep getting rogue trades. I have left the rogue trade parameters in the settings as OOTB, i.e 0 & 1. I cannot figure out why I keep getting these trades. Any suggestions would be appreciated.
Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
-Corinthians 13:4-8
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: 4 Ducks
Read the 'Safety Feature' section of the BASA user guide.
I am trying to work out why the damn trades are closing so quickly.

I am trying to work out why the damn trades are closing so quickly.
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.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: 4 Ducks
V 1d is in post 1, with attempted fixes for possible problems causing trades to close as soon as they open.
Colders, bool LookForTradeClosure(int ticket) is the relevant function. I had forgotten to explicitly declare CloseThisTrade as false. Default declarations are unreliable in crapql4. This fault was in my shell code as well.
I noticed that M5MaVal was zero for several seconds, so I have added a check that this is >0 when tested for closure.

Colders, bool LookForTradeClosure(int ticket) is the relevant function. I had forgotten to explicitly declare CloseThisTrade as false. Default declarations are unreliable in crapql4. This fault was in my shell code as well.
I noticed that M5MaVal was zero for several seconds, so I have added a check that this is >0 when tested for closure.
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.
-
RxCape
- Trader
- Posts: 68
- Joined: Sun Mar 04, 2012 8:10 pm
Re: 4 Ducks
Thanks for version 1d Steve. I suppose I should have explicitly stated that I had re-read the user guide in an attempt to better understand the safety features.
I also should have stated that fractal identification appears to work very well. The rate /speed of trading in 4 Ducks is a nice complement to BASA.
Tom
PS: Sorry to report that I had multiple trade opens with immediate closures, resulting in the rogue trade error shortly after implementing version 1d. From my observation, it seems to occur when price is moving quickly. A steady move, spread over time does not seem to trigger the close and rogue trade error. Not sure that observation helps in identifying the reason in the code, but I hope it helps.
I also should have stated that fractal identification appears to work very well. The rate /speed of trading in 4 Ducks is a nice complement to BASA.
Tom
PS: Sorry to report that I had multiple trade opens with immediate closures, resulting in the rogue trade error shortly after implementing version 1d. From my observation, it seems to occur when price is moving quickly. A steady move, spread over time does not seem to trigger the close and rogue trade error. Not sure that observation helps in identifying the reason in the code, but I hope it helps.
- Elixe
- Trader
- Posts: 98
- Joined: Tue Jun 04, 2013 6:44 pm
- Location: France
Re: 4 Ducks
You can have theses rogues trades if price move very quickly from the trigger back to the MA60 on M5 (in the minute after opening the trade).
I had some yesterday that looked like this, maybe adding some spare room around the MA60 would reduce this (opposite fractal to leave breathing room maybe ?).
I had some yesterday that looked like this, maybe adding some spare room around the MA60 would reduce this (opposite fractal to leave breathing room maybe ?).
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: 4 Ducks
Here is a version of 1d that has the trade-closure on recross of the M5 MA removed, so we are simply relying on the stop loss.
We will know the problem lies elsewhere if the behaviour continues. Tommaso made a suggestion in a pm that I am going to investigate.

We will know the problem lies elsewhere if the behaviour continues. Tommaso made a suggestion in a pm that I am going to investigate.
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.
- SpiderX
- Trader
- Posts: 554
- Joined: Thu Aug 22, 2013 4:50 pm
Re: 4 Ducks
Hi,
Is this EA working fine for anyone ?
My demo still shut down from rogue trade warning.
Cheers
Is this EA working fine for anyone ?
My demo still shut down from rogue trade warning.
Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
-Corinthians 13:4-8