Gertje Plus: the fully-automated version

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.

Gertje Plus: the fully-automated version

Post by SteveHopwood »

PLEASE NOTE
I have locked this topic for the time being. This EA is an offshoot from http://www.stevehopwoodforex.com/phpBB3 ... 8998#p8998 We have done some serious development of the original EA and it looks far more promising than does this version. I have suspended development here and encourage you all to visit the first thread.

If there is sufficient interest here, then pm me and I will unlock this thread, but visit the original thread and trying that EA before contacting me about this one.


////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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 when NoOfTrades buys and sells are open, and the only recourse from there is to manage the basket manually.
    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.
DO NOT TRADE THIS EA ON A LIVE ACCOUNT. IT IS EXPERIMENTAL.

Ehup all

This EA has its genesis at http://www.stevehopwoodforex.com/phpBB3 ... 8998#p8998 Read about it first before continuing.

Gertje is a faithful coding of its inceptor's requirements. Gertje Plus tries to take the whole thing to a new level.

G+:
  • - uses my favourite 20 period D1 Rsi trend detection routine, recommended to us by Scoobs a couple of years ago.
    - does not trade a ranging market.
    - awaits a retrace before entering the initial trade/trades by:
    • - drawing a 'trade line' on the chart, x pips away from the market. When this line is crossed, the trade/trades trigger. The line values:
      • - can be created manually with the PipsDistanceToLine input, so long as AdrPeriod is set to zero.
        - created using Scoobs' Adr method. This takes an average of the hilo of the last 200 days trading. This becomes the Average Daily Range (Adr) the pair travels, and is used to calculate the distance between the trade line and the market.
        - AdrMultiplier allows you to manipulate the result of the Adr calculation. Suppose you want to use half of the daily range as the distance between the trade line and the market? Set AdrMultiplier to 0.5
    - once in place, the trade line (by default, yellow dashed) will not move away from the Bid. If the Bid continues to move away from the line, it will move in tandem with the Bid. If the Bid moves towards the line, the line will stay put - this is how G+ measures the retrace.
    - Once the market retraces to the trade line, here are your choices:
    • - take the hedged pair immediately (ImmediateHedge = true) or just the trade in the direction of the trend (ImmediateHedge = false the first hedge trade will only be taken if the market continues in the direction of the retrace and hits the first opposite direction pending trade line).
      - from here:
      • - manually enforce the distance between trades by setting PipsBetweenTrades > 0 and AutoPipDivisor to zero.
        - automatically calculate this distance by setting AutoPipDivisor > 0. G+ will then divide the Adr by this figure to dynamically calculate the distance between trades
The above looks horribly complicated - for sure it was horrible to type. I suggest you guys drag G+ onto a clearly trending chart and play with the settings. Simulate a trade line breech by dragging it onto the appropriate side of the market.

Ludo found the bot slowed his computer and ate processing power, so I added code to make the bot read Rsi at the start of each new M1 candle, rather than every tick; bear this in mind if you use a mtf Rsi on your charts.

Where do we go from here
To a large extent, that is down to you guys. Additions that come immediately to mind are:
  • - basket trailing cash stop.
    - basket stop loss.
    - adding to the grid when a trade fills, so that there are always NoOfTrades 'pending' trades waiting to fill.
    - dynamic take profit based on the number of trades open.
    - individual trade management features when the market had cooperated and hedging did not immediately kick in (and ImmediateHedge = false).
In conclusion
Let the ideas flow.

: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. [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.
SWG123
Trader
Posts: 565
Joined: Wed Nov 16, 2011 3:02 pm
Location: Cape Town

Re: Gertje Plus: the fully-automated version

Post by SWG123 »

Interesting adaptation Steve. I was getting nice steady balance growth from plain vanilla Gertje, so looking forward to trying the turbo-charged version too. :D
winsteadglenn
Trader
Posts: 101
Joined: Tue Nov 15, 2011 10:40 pm

Re: Gertje Plus: the fully-automated version

Post by winsteadglenn »

Really wonderful, Steve. Thanks. Glenn
User avatar
traderduke
Trader
Posts: 306
Joined: Mon Nov 28, 2011 7:30 pm
Location: East Coast USA

Re: Gertje Plus: the fully-automated version

Post by traderduke »

Steve
I don't know how you did it & you may not either but the Gertje Plus works on Renko charts. The funny thing is that it entered the the trades for both a 15M GU and a 10pip renko GU at the exact same time. Now I have to figure out the pip inputs. Great work!

Thanks a million I hope!
Tommy
Posts: 2
Joined: Tue Feb 07, 2012 1:36 am

Re: Gertje Plus: the fully-automated version

Post by Tommy »

Nice toy! I think what it needs now is a "cash stop loss" variable.
Cheers, Tommy.
thomasmore
Trader
Posts: 269
Joined: Tue Nov 15, 2011 10:35 pm
Location: Knokke, Belgium

Re: Gertje Plus: the fully-automated version

Post by thomasmore »

Hi all,
After good results with Geertje, I installed the "+" version on 4 majors. Unfortunatly, it is eating up 80% of my processor power. Anyone else with this problem? (PS: re-installing did not cure the problem"

EDIT Found it: when running on a small timeframe, the 200-day ADR is too long for what data is available in the History. Idem for the D1 RSi detection. Played around with these setting and my PC feels a lot colder now :).
Last edited by thomasmore on Mon Mar 19, 2012 1:45 pm, edited 1 time in total.
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: Gertje Plus: the fully-automated version

Post by SteveHopwood »

ludowillems wrote:Hi all,
After good results with Geertje, I installed the "+" version on 4 majors. Unfortunatly, it is eating up 80% of my processor power. Anyone else with this problem? (PS: re-installing did not cure the problem"
There is no reason why it should. Leaving Task Manager open to show cpu usage and disabling Experts makes no appreciable difference to the usage display.

Try this version. I have added code to make the bot read Rsi at the start of each new M1 candle, rather than every tick; see if it makes a difference.

:D
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. [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.
thomasmore
Trader
Posts: 269
Joined: Tue Nov 15, 2011 10:35 pm
Location: Knokke, Belgium

Re: Gertje Plus: the fully-automated version

Post by thomasmore »

SteveHopwood wrote:
ludowillems wrote:Hi all,
After good results with Geertje, I installed the "+" version on 4 majors. Unfortunatly, it is eating up 80% of my processor power. Anyone else with this problem? (PS: re-installing did not cure the problem"
There is no reason why it should. Leaving Task Manager open to show cpu usage and disabling Experts makes no appreciable difference to the usage display.

Try this version. I have added code to make the bot read Rsi at the start of each new M1 candle, rather than every tick; see if it makes a difference.

:D
That did the job Steve, thanks for your speedy reaction.
Ludo
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: Gertje Plus: the fully-automated version

Post by SteveHopwood »

ludowillems wrote:That did the job Steve, thanks for your speedy reaction.
Ludo
Great. I have uploaded the update 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. [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.
scalpz
Trader
Posts: 42
Joined: Tue Jan 17, 2012 3:27 am

Re: Gertje Plus: the fully-automated version

Post by scalpz »

SteveHopwood wrote:Great. I have uploaded the update to post 1.

:D
Awesome thanks Steve. :D

My vote for next addition would be:

c - adding to the grid when a trade fills, so that there are always NoOfTrades 'pending' trades waiting to fill.

Have this loaded up on EurUsd to give it a shake. Probably be quiet today thou, few hols around the globe. But you never really know.

cheers scalpz :D
Target 1 : SL in the green.
Locked

Return to “Automated trading systems”