Aussiedoc's Duck'n'Bob

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

Aussiedoc's Duck'n'Bob

Post by SteveHopwood »

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 tells you there is, is either a liar or an idiot. This EA will need 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:
DO NOT USE THIS EA ON A LIVE ACCOUNT. IT IS EXPERIMENTAL.

Here is the heart of a pm Aussiedoc sent me last week.
1. MA cross of the 8 period smoothed moving average by the 3 period smoothed moving average.
2. look for 1st candle to open below/above 3MA in TD
3. is TMA_Slope >0.8/-0.8 Y/N?
4. if N - wait for next MA cross
5. if Y - is NB_10.2_TMA_Slope_Display indicating above 0 (horizontal arrow) in same TD?
6. if N - wait for next MA Cross
7. if Y - open trade
8. set SL = previous pivot/3 candles back
9. only 1 trade in TD per MA cross.
10. each subsequent candle - is TMA_Slope_Norm > 0.4/-0.4 Y/N If Y - next candle; if N - close trade.
11. repeat sequence

You do not need the Slope indi on your chart; thanks to Baluda, the code is embedded within the EA.

Users can play with the moving average inputs; I have used the Slowkey 2 ma trend detector.

I have included a lower time frame Slope. Always use the higher time frame; disable the lower by setting LtfTimeFrame to zero.

HtfBuyLevel=0.8; the level at which Slope signals a buy.
HtfBuyCloseLevel=0.7; the level at which Slope signals a close of the buy trade.
HtfSellLevel=-0.8; the level at which Slope signals a sell.
HtfSellCloseLevel=-0.7; the level at which Slope signals a close of the sell trade.

MaxCandlesCrossAgo: the is the maximum number of candles ago that an MA cross can be considered 'valid'.

StopLossCandlesBack: this sets the stop loss at the hi/lo of the candle this far back. Set this to zero to disable it.

The EA trades the time frame of the chart it is loaded onto, at the opening of a new candle.

I have just realised that I have not coded step 8 yet. I will do that soon.

All pip inputs should be as pips not points; the EA handles the conversion to x digit criminal accounts internally.

Doc will answer questions about the trading method and any inputs that newcomers do not understand.

:D

Matters of general interest

Read this post:
http://www.forexfactory.com/showthread. ... ost4923611 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration. There is a thread devoted to Sam's trading method at http://www.forexfactory.com/showthre...25#post5118825

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.forexfactory.com/showthread. ... ost4431794, at the bottom of the post.

Useful utilities/EA's/scripts
Matt's chart-population script at http://www.stevehopwoodforex.com/phpBB3 ... 5733#p5733. Use this every time you start a fresh platform.
MaryJane has posted a fabulous utility to allow us to resize EA input windows: http://www.forexfactory.com/showthread.php?t=299017
Multi purpose trade manager: http://www.forexfactory.com/showthread.php?t=89371
Account equity analyser: http://www.forexfactory.com/showthread. ... ost4693716 Also at http://www.forexfactory.com/showthread. ... ost4709098, which includes a template for both USD and the Euro.
Past-trades display indi by squalou; shows a graphical display of the success/failure of trades in your History tab. Breathtaking piece of work. http://www.forexfactory.com/showthread. ... ost3830610
My shell EA – the code I use to produce EA's so quickly. http://www.stevehopwoodforex.com/phpBB3 ... p?f=5&t=15
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.
User avatar
Aussiedoc
Trader
Posts: 270
Joined: Tue Dec 13, 2011 8:10 am
Location: Western District. Victoria. Australia

Re: Aussiedoc's Duck'n'Bob

Post by Aussiedoc »

Thanks Steve. Brilliant work as ever!

Thanks for sorting this out! Lovely little twist including Baluda's coding (thanks Baluda) into the EA. It was giving me a bit of bother as to how we'd get around the lower TFs. :D

Once again good Sir, I am in your debt!
Diolch yn fawr. :D

Cheers.
If you can never exceed your own expectations - why expect second-best?
User avatar
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: Aussiedoc's Duck'n'Bob

Post by SteveHopwood »

You are welcome Doc.

I forgot to explain MaxCandlesCrossAgo: the is the maximum number of candles ago that an MA cross can be considered 'valid'. I have added a line about this to post 1.

: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. 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.
User avatar
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: Aussiedoc's Duck'n'Bob

Post by SteveHopwood »

Doc, I settled in to code no 8 in the list, then realised I need you to be a bit more specific.

The 3 candles back is no problem, obviously. I need you to be a tad more specific about which pivots you mean.

: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. 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.
User avatar
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: Aussiedoc's Duck'n'Bob

Post by SteveHopwood »

V 1a is in post 1. I have added the candles-back stop loss.

StopLossCandlesBack: this sets the stop loss at the hi/lo of the candle this far back. Set this to zero to disable it.

: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. 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.
User avatar
Aussiedoc
Trader
Posts: 270
Joined: Tue Dec 13, 2011 8:10 am
Location: Western District. Victoria. Australia

Re: Aussiedoc's Duck'n'Bob

Post by Aussiedoc »

Sorry, Steve. :oops: My default is at the high/low of the preceding 'change of TD direction' pivot - which usually happens around the opening of the 3rd candle back - NOT including the current candle.

Cheers :D
If you can never exceed your own expectations - why expect second-best?
User avatar
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: Aussiedoc's Duck'n'Bob

Post by SteveHopwood »

Versions 1a is in post one and is an essential re-download.

I needed to copy the Slope code into my shell because I had forgotten a bit - I coded it first here. I noticed a humungous bloop that will play Hell with short trades.

: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. 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.
User avatar
Aussiedoc
Trader
Posts: 270
Joined: Tue Dec 13, 2011 8:10 am
Location: Western District. Victoria. Australia

Re: Aussiedoc's Duck'n'Bob

Post by Aussiedoc »

Thanks!
If you can never exceed your own expectations - why expect second-best?
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Aussiedoc's Duck'n'Bob

Post by fxozgirl »

Hey Doc,

Thanks for this strategy...it has perked my interest!

Please permit me to make a few observations...I hope you don't mind ;)

I set up a new demo, but haven't had any trades yet, but I wanted to get more of a visual so I attached the MA's to the chart to have a look & the TMA slope to see how price action looks. I have to say I'm pretty impressed the way PA respects the 3MA :D

What I do think though, looking at your entry criteria is that it may be too strict & probably not likely to generate many trades, in particular I'm thinking rule #4 would possibly prevent most trades, because if we're trading the Daily charts, price is generally not going to swing/cross the MA's every other day & still meet rule #3.

What do you think if rule #4 was if N - wait for TMA slope to be > +/- 0.8 (providing there has been no re-cross of the MA)?
I think the same strictness to rule #6 could also contribute to missing possible profitable trades.

What do you think? Have you demoed this at all yet?

Cheers

Shelley
1. MA cross of the 8 period smoothed moving average by the 3 period smoothed moving average.
2. look for 1st candle to open below/above 3MA in TD
3. is TMA_Slope >0.8/-0.8 Y/N?
4. if N - wait for next MA cross
5. if Y - is NB_10.2_TMA_Slope_Display indicating above 0 (horizontal arrow) in same TD?
6. if N - wait for next MA Cross
7. if Y - open trade
8. set SL = previous pivot/3 candles back
9. only 1 trade in TD per MA cross.
10. each subsequent candle - is TMA_Slope_Norm > 0.4/-0.4 Y/N If Y - next candle; if N - close trade.
11. repeat sequence
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Aussiedoc's Duck'n'Bob

Post by fxozgirl »

I went a bit further and decided to take a look at USDCHF, GBPUSD, EURUSD with some slightly different entry criteria and using Baluda's Currency Slope Strength indicator.

I have attached the 3 charts, please see below my trade strategy for each pair:

USDCHF:

1. 3MA has crossed above 8MA
2. Currency Slope Strength for USD (lead pair) is >0.8 (so indicating a buy)
3. Candle has closed above 3MA (after cross) - Take Buy trade at open of next candle
4. Candle has closed below 3MA - Close trade
5. Entry criteria has been met again (there has been no re-cross of the 3MA below the 8MA, candle has closed above 3MA & Currency Slope Strength is still above 0.8), take Buy trade at open of next candle.
6. Candle has closed below 3MA - Close trade

These 2 trades would have culminated in 190 pips & 134 pips respectively.
usdchf.gif
GBPUSD:

1. 3MA has crossed below 8MA
2. Candle has closed below 3MA (after cross) - Take Sell trade once CSS is <-0.4
3. Currency Slope Strength for GBP goes below -0.4, take Sell trade at open of next candle
4. Candle has closed above 3MA - Close trade

Total pips for this trade would have been 286 pips
gbpusd.gif
EURUSD:

1. 3MA has crossed below 8MA
2. Currency Slope Strength for EUR is below -0.4 (indicating a Sell trade)
3. Candle has closed below 3MA, take Sell trade at open of next candle
4. Price closed above 3MA, close trade
5. Entry criteria met again (No re-cross of the MA's, Candle closed below 3MA & CSS is still below -0.4, Take Sell trade at open of next candle
6. Price closed above 3MA - close trade

Pips for these trades would have been 280 pips & 179 pips
eurusd.gif
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Automated trading systems”