Gap trading Catcher

Gap trading Catcher

Hi, I modified prorealtime gapdetection indicator to a simple strategy basis for a long position.

Only 1 or 2  parameters and it gives interesting results with a simple stop of 1% for intraday or for daily a stop of 3%

the parameter has very small range i.e. 1-14 to optimise.

some stock/futures 5 min with 50.000 units backtest

p=1 unilever 81.89 % profitable with win/loss 1.8 in 497 trades.

p=1 tkh 71.67 % profitable with win/loss 1.54 473 trades

p=1 heineken 82,46% profitable with win/loss 1.48 496 trades

p=5 aex 5 min 84.44% profitable with win/loss 1.65 270 trades

Have a look and maybe it’s interesting enough to dig further !

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Francesco78 • 09/14/2017 #

    thanks, which underlying are you using?

  2. auvergnat • 09/14/2017 #

    Thank’s for your job. Which spread on your screen report ?

  3. Paul • 09/14/2017 #

    Thanks for the interest. I’am new to this and will trade CFD. What exactly do you mean with underlying? I didn’t set the spread in backtest.

  4. nwesterhuijs • 09/14/2017 #

    Although it looks interesting just wondering: Aren’t the second conditions for the buy and sell criteria [Buy: (abs((high-low[1]) / low[1]) > Amplitude) ; Sell: (abs((low-high[1]) /high[1]) > Amplitude)] always true due to the use of “abs” with amplitude at 0 [unless high and low[1] or high[1] and low are exactly the same]?

  5. Paul • 09/14/2017 #

    You’re right. It’s always bigger then 0 unless it’s 0, which can happen the way you said.. You can set a different amplitude like 0.0005 which probably makes more sense. In the original gap detection indicator the value is also bigger then 0. With different coding on amplitude you can improve the code, although it gives more parameters to optimise.

  6. CKW • 09/14/2017 #

    Hi Paul,

    Thanks for sharing 🙂
    Same question probably as Francesco78, which securities you used on the screenshot that you posted? Just to compare if I have similar result as yours

  7. Paul • 09/14/2017 #

    its the aex25 futures with p5

  8. Paul • 09/14/2017 #

    Useful to this code is to put this as indicator on a intraday price chart

    RETURN dc as “dc”

  9. Despair • 09/14/2017 #

    I can not reproduce your results. Which timeframe do you run it on?

  10. Paul • 09/14/2017 #

    1-10 min. Here 5 as posted.
    add additional indicator to get bigger profits and limit number of trades.

  11. Andrea • 09/14/2017 #

    Hi, great strategy, it would be interesting to filter signals with atr.

  12. Frank • 09/14/2017 #

    Hi Paul – I tried the original strategy. My first trade showed first a great profit, but it turned out to be a loss in the end. Should the strategy have a element of profit-taking?

  13. Frank • 09/14/2017 #

    Another thing – have you also tried to go short?

  14. Paul • 09/14/2017 #

    try activate Williams 3 bar trailing stop to exit when profits are i.e. above x% with a stoploss of y%.
    You can modify to go short. It’s more tough although profitable and the gains are lacking behind to the long positions.

  15. Kris75 • 09/14/2017 #

    Hi Paul,
    Thanks for sharing but I cannot reproduce any profit on Heineken on 5mn ;

  16. bertrandpinoy • 126 days ago #

    BONJOUR PAUL impossible de tenter le trading automatique, PRT me dis que l instruction “GRAPH” ne passe pas…as tu une solution? cordialement

  17. Paul • 126 days ago #

    Bonjour, supprimez les lignes avec un “graph”

  18. bertrandpinoy • 124 days ago #

    merci. vous l utiliser actuellment sur quel instrument vous? et quel timeframe? Merci

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
MonopolyTm Thanks for sharing. I tried it but i did not get any results. Just checking if that's the ca...
RobertFX Works fine
Kees Pols great tool! Thank you
ckat55 Thank you Nicolas, is there any way that an alert can be set for when the dot appears?
Nicolas yes, change the last line with: RETURN wrb,qh and set an alarm with the alert tool for ea...
ckat55 Thank you Nicolas, I will try it.
fredfilm Hi Nicolas, how could we add a price screen to this? eg stock prices between $1 to $3 etc
anandxsawant Hi Odin, Thanks for this screener based on the popular criteria to trade trends from Marc...
Despair What do you mean by “German extra stocks”?
odin i mean german xetra stocks :-)
Despair Ok! Thanks.
2 years ago
Actabi Thank you ! Have you realised your "next step" ?
Jessar guten Tag, gibt es bereits die Aktualisierte Datei?
Per Inge Gents - An update - I have been studying various trading approaches, as this one that is bas...
Vonasi An interesting idea that was easily turned into a strategy on a shorter time frame that appe...
Stenozar Hi Vonasi, is it possible for you to share your code here? thanks in advance
Vonasi Sorry Stenozar. I have only really spent an hour or so on this strategy so far and it is far...
GraHal Please forgive the daft question, but why is 3-bars-trailing-stop-williams-3.itf included a...
Kris75 Hi, Seems great but what would be the code for a stock ? Thanks, Chirs
oakenstream Paul, what is the best way in your opinion to know if I have over optimized?
gabri GraHaL, I cannot see any link attached. I mostly manual trade but for stocks with strong fi...
GraHal Yes sorry, I set up a link to a screen shot on my google drive and then I got locked into th...
gabri Here's the thread
Doctrading Hello, Higher timeframes are better. I suggest D1 or H4.Best regards,
Pinkybouh hello, I propose to add another conditions: ie: haussier: close > open and close >...
TheHovisTrader I'd be interested in the actual profit of this - in the example the stop range is at least 2...
Magnatolia Hi, this is amazing! Thanks! Question, I'm on end of day data. How do you actually implem...
Al Wikah Bonjour, Le n'arrive pas à faire marcher ce screener. Je télécharge le screener puis l'imp...
Al Wikah ...j'ai le me problème en procédant à un copier-coller du code..
century hi, can we have more explanations please ? about parameters and time unit ? thanks
Nicolas Line 10: Volume of current candlestick must be at least 1.5 higher than the previous one and...
Julio Hi Doctrading, Is it possible to flip this to a "going bearish" by simply switching the cod...
Doctrading Hello, Yes, you can do it very simply...
Tarek Laaroussi Hi doctrading i am the one who sent you the email first thanks for the code . It really wo...