4 Ducks

Locked
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

4 Ducks

Post by SteveHopwood »

THIS POST IS LOCKED. PLEASE READ THE FINAL POST TO SEE WHY.

SERIOUS WARNING
  • Most Forex traders lose all their money.
  • Using the robot posted here in trading Forex does not guarantee success.
  • Trading this robot could lead to serious financial loss.
  • Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
  • This is not a set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
  • At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
  • To trade this robot, you have to understand:
    • How to use EA's. Remember to set IsGlobalPrimeOrECNCriminal to 'true' if your crim insists on two-stage order sending.
I am not yet trading this EA on my live account

One of the guys at FXAW mentioned Captain Currency's 3 Ducks trading system.

I had forgotten about this. I came across it a few years ago but did not appreciate its potential strength at the time - back then, I did not understand much, to be honest. :lol:

CC's stuff is copyright so I cannot upload his ebook here. Download it from http://captaincurrency.blogspot.co.uk/2 ... ystem.html. Leave your email addy and you will quickly receive a breezy invitation to download the ebook. That is all you get. CC does not bombard you with spam - I remember from a few years ago that he did not do so back then either. Nice guy, it seems to me.

My understanding of CC's basic idea is this:
  • it is a trend trading system.
  • taking a buy as an example, the trend is ascertained by:
    • market is > the H4 60 period SMA.
    • market is > the H1 60 period SMA.
  • from there, burrow down the the M5 60 period SMA:
    • find the nearest high that is above the M15 60 period SMA. Buy when the market crosses it.
Vice versa for a sell.

So, that is the 3 Ducks. The fourth is Bob's H4 240 period moving average. To the above, add that the market has also to be above the H4 240 MA for a buy, below for a sell.

There is a stop loss input that you should regard as a disaster sl. The actual sl is a recross of the M15 SMA in the opposite direction.

From here, BASA takes over. The tp is the same and stacking is implemented in the same way - in fact, 4 Ducks is an edited version of BASA. Go to http://www.stevehopwoodforex.com/phpBB3 ... 838#p70838 to download the user guide that explains all the inputs.

Missing from BASA is Stochastic and TMARSI2 as they are not relevant here.

Tomasso's contribution
4 Ducks is a conversion of Bob and Shelley Again. I thought it would be sooooo easy to make the conversion, but it threw up a lot of problems with trades opening and then immediately closing again.

Tomasso has solved the problem with:
  • some code rearranging.
  • adding a minimum time for the trade to remain open. The relevant input is DeltaTimeLiveTrades at the base of the General Inputs. This is an input in seconds, so the default minimum is 5 minutes.
Let's play with this and see if it has legs.

:D

Shell user guide
This describes the usual inputs in my EA's. Consult it for details not listed above.
Matters of general interest
Go here to download and run the script that will fill your platform's missing chart history: http://www.stevehopwoodforex.com/phpBB3 ... f=15&t=254
Read this post:
http://www.stevehopwoodforex.com/phpBB3 ... p?f=6&t=78 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration.

Masterly summary of hedging: http://www.forexfactory.com/showthread. ... ost4977179

EA coding
I receive may requests to code EA's. Traders, if I code your EA for free, then I will share it here. If you want me to code your EA without sharing, then my fee is $100 payable into my paypal account. I explain why at http://www.stevehopwoodforex.com/phpBB3 ... ?f=15&t=79, at the bottom of the post.

Useful utilities/EA's/scripts
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. [email protected] 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.
User avatar
Elixe
Trader
Posts: 98
Joined: Tue Jun 04, 2013 6:44 pm
Location: France

Re: 4 Ducks

Post by Elixe »

Thanks Steve, I'll give it a try asap.

In my memories the entry timeframe for the ducks was the 5min chart, is it a voluntary choice to switch to M15 ?
:D
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: 4 Ducks

Post by SteveHopwood »

Elixe wrote:Thanks Steve, I'll give it a try asap.

In my memories the entry timeframe for the ducks was the 5min chart, is it a voluntary choice to switch to M15 ?
Oh Crap. I was playing from memory when I coded the bot and coded the M15 instead of the M5. Bugger. Should have re-read the doc.

You guys couldn't pretend you didn't notice could you, and re-download from post 1?

:D


It seemed sooooo simple when I started. :lol:
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. [email protected] 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.
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

Re: 4 Ducks

Post by SpiderX »

Hi Steve,

Line 1516

Code: Select all

if (useMaStackForMainTrade && MaStackStatus != stackshort) return;
Cant seem to find the corresponding code in the SendLong section.
Is this correct ?

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
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: 4 Ducks

Post by SteveHopwood »

SpiderX wrote:Hi Steve,

Line 1516

Code: Select all

if (useMaStackForMainTrade && MaStackStatus != stackshort) return;
Cant seem to find the corresponding code in the SendLong section.
Is this correct ?

Cheers
Nice spot. Thanks.

Lots of bloops in the code that only came to light when I ran the bot on demo today.

V1 is in post 1 - V1 because I forgot to change the version number from BASA's 2n.

:D
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. [email protected] 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.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: 4 Ducks

Post by SteveHopwood »

I just noticed I have not changed the chart display, so it is still showing "M 15 60 period" at the end of the MA display. I will change that next time I update. The bot is using the M5.

:D
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. [email protected] 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.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: 4 Ducks

Post by SteveHopwood »

Hold on before downloading the latest. The Fractals detection code still isn't quite right. You will see what happens when the market reaches the trade line.

:D
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. [email protected] 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.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: 4 Ducks

Post by SteveHopwood »

V 1b is in post 1. Seems to be doing what I want now,

:D
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. [email protected] 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.
OldTrader
Trader
Posts: 71
Joined: Wed Nov 16, 2011 10:19 pm

Re: 4 Ducks

Post by OldTrader »

anything i can do about this, can't compile it seems

'SendNotification' - function is not defined C:\installs\Finfx - DBM\experts\4 Ducks.mq4 (1689, 5)
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: 4 Ducks

Post by milanese »

OldTrader wrote:anything i can do about this, can't compile it seems

'SendNotification' - function is not defined C:\installs\Finfx - DBM\experts\4 Ducks.mq4 (1689, 5)
compiles without problems
Edit if you are using an outdated version of Empty4 older than build 432 it will give this errore..

Cheers :)
Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Locked

Return to “Automated trading systems”