Regular visitors will have noticed ever increasing amounts of spam on the Trading Gurus Community Forum. On November 24th 2012 we implemented some changes:

1. New users will be moderated 2. Registered users who have a post count of zero will not be able to view attachments or download code. 3. Registered users who have a post count of zero will not be able to create a new thread

As an additional countermeasure we anticipate introducing a modest paywall in the near future.

If this is your first visit here our apologies for the inconvenience.

Existing users may wish to contribute their ideas to this thread.

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40

Thread: Ray Robot 2 Makes Money Trading Breakouts with MetaTrader 4

  1. #1
    Administrator Jim's Avatar
    Join Date
    Apr 2010
    Location
    South West England
    Posts
    494

    Ray Robot 2 Makes Money Trading Breakouts with MetaTrader 4

    Following some festive Halloween fun over on the AlgoTrader development group a new "robot" was conceived. After a remarkably brief gestation period the MetaTrader version of the son of Ray the Random Robot has now been born!

    Ray Robot II has learned something from his father's experiences, and uses slightly more intelligent entries. RR2 waits for the end of a bar, then places a pair of pending orders at or just beyond the high and low of that bar. These "bracket orders" can either be stops, in which case the son of Ray hopes for a breakout, or they can be limit orders, in which case he is hoping for some "mean reversion" to take place.

    Ray Robot the second has also now seen his father's equity curve, and decided to ditch Martingale money management in favour of the far more sensible methods used by our "London Breakout Robot". He still uses his father's original exit method though, which consists of a fixed profit target and stop loss.

    Here's the source code for our latest creation, together with RR2's very first backtest results:

    RayRobot2_v100.zip

    This is what a few month's worth of breakout trades from daily bars of EUR/USD on an Alpari UK demo account looks like:

    RR2-EU-D1-H2-2011.jpg

    Not bad pocket money for such a young whippersnapper?

    P.S. Here's the latest version:
    Attached Files Attached Files
    Last edited by Jim; 04-29-2012 at 05:26 PM. Reason: Added version 1.02
    Reality is merely an illusion, albeit a very persistent one - Albert Einstein

  2. #2
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8
    Hi Jim,
    Thanks for that, will have a play

    Laurence

  3. #3
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8
    http://screencast.com/t/czJgujD2
    1hr Chart since 1st July

  4. #4
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8
    http://screencast.com/t/aaF2wWWlEQy
    DAX!!! 1hr, TP = 20, SL = 10

    oops - ignore that - dp error, that's using TP = 2, SL = 1!
    Last edited by Laurence; 11-12-2011 at 11:05 AM.

  5. #5
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8
    http://screencast.com/t/Ab8P0BRgm

    DAX Optimised at 800 TP (80 pips), 200 SL (20 pips) using GKFX to run tests

  6. #6
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8
    http://screencast.com/t/i0PCjlbM

    And just for fun.... Final optimisation on Dax 1hr suggests that a stop loss of 1 pip & a target of 90 pips will bring wealth beyond your wildest dreams...
    Could Ray be the Holy Grail disguised as a donkey?

  7. #7
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8

    Smile

    http://screencast.com/t/x5Y3yf6vYPce

    5 mins, 7pip TP, 1 pip SL,- seems to be the optimum set-up on GKFX back tester.
    Will run on demo from Mon with MM type 1, 5% risk and see what happens.
    I suspect GKFX would have a sense of humour failure running an ea with these settings on a live account as it probably falls into their definition of scalping...
    Certainly an interesting experiment, Dow & FTSE also move in a similar manner and have 1 pip spreads (Dow is 3 outside US open) on GKFX so should give similar results

  8. #8
    Administrator Jim's Avatar
    Join Date
    Apr 2010
    Location
    South West England
    Posts
    494
    Hi Laurence,

    Blimey, you've been working hard! Thanks for all those screenshots, and the "interesting" tables of backtest results too. As you know, Ray is a robot of very little brain. His son is a bit brighter, and makes some attempt to call a pip a pip on FX. His efforts in that direction haven't got as far as indices yet I'm afraid.

    Ray undoubtedly looks just like a donkey, though the countenance of Ray the 2nd has yet to be revealed! I fear neither of them look anything like "The Holy Grail" however. When I have a spare moment or two I'll port RR2 to Dukascopy and backtest him on tick data. I have a sneaking suspicion that those impressive looking results with very tight stops are an artefact of MetaTrader 4's less than accurate backtester, and won't be repeatable in "real life". Nonetheless I very much look forward to seeing your "forward test" results!

    I'll be doing some similar tests starting on Monday also. Following the recent announcement from Alpari I figured comparing their spread bet platform with GKFX's would be very enlightening, so I think I'll let the son of Ray start playing with modest amounts of real money at both brokers. Those experiments will be limited to FX of course, since that's all Alpari have to offer spreadbetting wise at present.

    Cheers,

    Jim
    Reality is merely an illusion, albeit a very persistent one - Albert Einstein

  9. #9
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8
    Agreed, a 1 pip (all right, point as we're talking indices) is an unusual stop loss value!
    I was assuming that FTSE / Dow would give similar looking results but not at all, they nose dive like the proverbial flying piano on the short tf's I tried so will be interested to see how demo works out on DAX.
    I will alter the magic numbers and run on 5, 15, 1hr & daily tf's concurrently and see how they perform

  10. #10
    Junior Member Laurence's Avatar
    Join Date
    Nov 2011
    Posts
    8
    1st observations;
    GKFX demo is only 4 dp's so there is an immediate variation to the backtests performed on the live 5dp platform
    'Trade context is busy' prevents 2 or more concurrently running versions of Ray placing simultaneous orders so I am just running one chart on 5 mins.
    That seems to be placing orders ok - will ignore now for the rest of the day & see what it does...

Page 1 of 4 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •