Gappy: trades The Gap at the start of the trading week

Post Reply
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.

Gappy: trades The Gap at the start of the trading week

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:
    • - How to use EA's.
      - The Gap


DO NOT USE THIS EA ON A LIVE TRADING ACCOUNT. IT IS EXPERIMENTAL.

Introduction
Read the genesis of SS at http://www.stevehopwoodforex.com/phpBB3 ... 569#p18569

Put simply, the markets sometimes open considerably higher/lower on Sunday night than they closed on Friday night. There is then a tendency for the markets to retrace back towards that previous close. Gappy attempts to take advantage of this.

Those of us in Europe and North America most notice this, as the markets open so far as we are concerned on Sunday night, about an hour after the crims kick their arses into gear.

Here is a great example of the gap - see the highlighted area. Notice how the market moved back towards the close at the end of the previous week?
pic.gif
I do not know if this applies to those of you who live in parts of the world where your markets open on Monday mornings. In any case, you need a criminal who opens for business at least one hour after market open.

The inputs are the usual suspects, with these that are specific to Gappy:
  • - CriminalHasSundayCandle: set this to true (the default) if your crim has a Sunday candle. If not, set it to false.
    - MinimumGapPips: the minimum gap required to send a trade.
Slope is included, so we can use it as a trade filter if we wish to. By default, it is disabled.

The chart display will look a little odd for now, so ignore it. In code-testing back-testing in strategy tester, Gappy will trade once and then shut up shop. The chart display is intended to help me work out why, using visual mode. I have not been able to sort this out, but it hardly matters. Gappy will trade once a week only, and so will be shut down once any trade it generates is closed.

Take profit is the distance between trade open price and last week's close. Stop loss is 50% of take profit.

In conclusion
Usual conclusion. Let's see if this Aardvark eats ants in decent quality.

:D

Matters of general interest

Read this post:
http://www.stevehopwoodforex.com/phpBB3 ... p=800#p800 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.stevehopwoodforex.com/phpBB3 ... p=803#p803, 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.stevehopwoodforex.com/phpBB3 ... p=516#p516
Account equity analyser: http://www.forexfactory.com/showthread. ... ost4693716Also 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=803#p803
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.
User avatar
tex
Trader
Posts: 89
Joined: Wed Nov 16, 2011 7:27 am

Re: Gappy: trades The Gap at the start of the trading week

Post by tex »

Thanks for this one Steve !! I am trading the DAX future with CFD a lot these days. The Dax closes every day during the week at 10:00pm and continues the next day at 8:00 am. Will Gappy only trade on sunday/monday or will it trade when theres a gap on lets say tuesday to wednesday for example?
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: Gappy: trades The Gap at the start of the trading week

Post by SteveHopwood »

Here you go Tex. V 1a is in post 1. I read yours just before going for a bath, so the timing was perfect. :lol:

I have replaced the Sunday candle thingy with TradeSunday, TradeMonday etc. See if this does the trick for you.

: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: Gappy: trades The Gap at the start of the trading week

Post by SteveHopwood »

Nothing from Gappy this week on my demo. No surprise, given the time of year.

Testing this baby could take a while. :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
tex
Trader
Posts: 89
Joined: Wed Nov 16, 2011 7:27 am

Re: Gappy: trades The Gap at the start of the trading week

Post by tex »

Thanks again for the quick update Steve !! Will test it out. I hope there will be some gaps this week :)

Edit : I dragged the EA to my Activtrades Dax Future CFD Chart and Gappy opened a Sell Trade right away. Even when there is no gap to trade at the moment.
Do you think it has something to do with the digits my broker has got ? Theres only one digit after the comma. Perhaps the EA is detecting wrong gaps because of this ? Could be an issue.

The last correct gap was on 2012-08-23 to 2012-08-24. It was a 11-Pip Gap and it has been closed already.
I marked it on the screenshot. So in my point of view the EA shouldnt take a trade after i drag it on the chart at the moment. I tested it on Strategytester too. It opened a sell trade too in backtest.
Attached is a screenshot and my setfile for gappy.
You do not have the required permissions to view the files attached to this post.
User avatar
mlewis
Trader
Posts: 76
Joined: Wed Mar 21, 2012 1:51 pm
Location: London

Re: Gappy: trades The Gap at the start of the trading week

Post by mlewis »

Amazing Steve! Great work. now all we need is a dramatic ECB related news event every friday evening!!
MJL
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: Gappy: trades The Gap at the start of the trading week

Post by SteveHopwood »

Gappy took 4 trades when the markets opened tonight. There is a problem with the take profit code.

: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.
Post Reply

Return to “Automated trading systems”