Gap trading Catcher V2

Gap trading Catcher V2

Hi all,

This is a modification to Gap trading Catcher.

It uses Mid-level day indicator and Williams’ 3 bar trailing stop.

Tested on AEX25, 2 minutes timeframe, 200k backtest, spread 0.1

Optimised p1 and p2 in range 1 to 7

Exit positions are made with the help of the Williams 3 bars trailing stop indicator found here:

https://www.prorealcode.com/prorealtime-indicators/williams-3-bar-trailing-stop/

If criteria are met it enters 9u am. Keeps positions overnight but closes at Friday 22u pm.

The strategy takes a while to load.

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. Nicolas • 11/13/2017 #

    Hi Paul, thank you for your code. There are not so many trading strategies for AEX25 around here 🙂
    The strategy takes a while to load because of all these unnecessary FOR/NEXT loops in your code, this could be optimized to a few lines and increase the speed of calculation.

  2. mrripley99 • 11/13/2017 #

    First impressions, looks great, backtests well across a number of markets, great on nikei. Only seems to take long trades, can’t see why?

  3. Paul • 11/13/2017 #

    thnx nicolas, will take that advise and see if I can improve the speed.
    mrripley99, set countofshortshares < 0 to 1. It can do both long and short same time, or do it separately.

  4. BiggestNoob • 11/13/2017 #

    Hi Paul, Thank you for your code. I have tested it on several pairs and noticed that it never opens short positions although there is code for it?

  5. ProContra • 11/13/2017 #

    It seems that after publishing it started drawdown.

  6. Kris75 • 11/13/2017 #

    Hi,
    Seems great but what would be the code for a stock ?
    Thanks,
    Chirs

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
Jan Wind fatcat, sorry to hear. Today I did run the code for 100.000 bars (from 17 dec 2017 till 31 ...
GraHal I confirm that I get almost exactly the same (+7 days difference now) results as Jan states ...
Jan Wind A discussion Topic is opened, and can be found at https://www.prorealcode.com/topic/di-tem...
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.
joobeng I get area of shading above and below a horizontal line. How can I post a picture here ? Thanks
joobeng Sorry, I solved the problem. I have add the CBL indicator using the spanner icon on the pric...
Nicolas Adjust the price settings for the Y Axis to use the price only.
Bard "Bacon with speed" is a new one on me, Apologies, the link was not working on my iphone ...
TAC Bolsa I already published it ... in prorealcode ... Next time ... request a change of programmi...
TAC Bolsa I already published it … in prorealcode … https://www.prorealcode.com/prorealtime-indicator...
Nicolas Should not if adxlen variable is superior to 0.
AussieTrader Nicolas, Can you explain the numerator logic - e.g. Line 35 is (sTR[1] - sTR[1]) which wo...
Nicolas You are right, this is useless. Since I converted it from another programming language, I a...
Nicolas Definition of CustomClose: https://www.prorealcode.com/documentation/customclose/ [2] means...
Bard Just wondered Nicolas, say you had set DEFPARAM CumulateOrders = True, is there anyway for t...
Bard Sorry pls ignore last image, try this - it actually has the Dev Stop indicator! https://www...
Geronima Ortiz okay bien estaré pendiente en esta pagina gracias
Domenec Aqui dejo colgado link del video para ver como funciona el indicador https://www.youtube....
Geronima Ortiz Gracias Domenec
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
juanj
1 year ago
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
Bard Thanks Gabri I get an error saying the highlow and highhigh need defining? Is there a ...
gabri Hi Bard, the second arrow should have appeared 16 bars before. You can write me at ggabri@me...
Abz Violet , when trying to automate this my trades are not opening at the same entry point as w...
Violet Abz, the arrows and circles are only the *first part* of a trade setup. If certain conditio...
gabri Violet, you did an excellent job. I attached here https://www.prorealcode.com/prorealtim...
gabri Gianni, io non faccio trading automatico ma sono sicuro che Nicolas ti potra' aiutare.
Matt B Bonjour, Savez-vous à combien de bougies après apparaît l'ellipse ? Il faut faire attention,...
Matt B RolanBay, L'ellipse apparaît-elle à la bougie notifiée et reste ?
Al Ok grazie Gabri
Paul thnx for posting. Combine it with Williams’ 3 bar trailing stop to create strategy!
gabri Paul, he uses the best day of the week to trade (he figured out the best day to enter, exit...

Top