Repulse and DPO – 4H OnlyLong-Strategy on Dax

Repulse and DPO – 4H OnlyLong-Strategy on Dax

Hello

This is a small OnlyLongstrategy with quite acceptable results.

The Detrended Price Oscillator and the power of the candles with the Repulse Indicator are used.
If both > 0.1 we buy a position, if one of the two indicators Short < 0.1 we sold. Buying and selling is quite convenient at the usual times in the Dax at 09.00 / 13.00 / 17.00 and 21.00 hours (utc+2 “Berlin-time”). Who likes can  protect the losses and profits in percent and not only via the indicators.

Like all trend-following systems, it has weaknesses in sudden trend changes and range phases, but this strategy still achieves a better result than the Dax itself.

kind regards

JohnScher

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?

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

  1. Glen Marquis • 05/06/2018 #

    This is dangerous as it doesn’t consider a 50-100 pip swing before the bar close direction.

  2. JohnScher • 05/06/2018 #

    Yeah, I know that.
    It would be nice if you could bring 1, 2 or even 3 suggestions how this danger can be banished. Perhaps together we can optimise the results of the strategy.

    • Glen Marquis • 05/06/2018 #

      Perhaps the answer is just be long above Hourly open and Short below hourly open.

  3. JanWd • 05/06/2018 #

    Dear John,

    nice strategy, with 1.7 pips average spread and optimising p and q to respectively 3 and 7 outperformes indeed the DAX, it gives a profit of 6.093 Euro over a period from January 2014 to May 2018, with an In Sample result of 4.705 Euro (first 68% of the bars) and Out of Sample 1,388 Euro (remaining 32% of the bars), the Out of Sample result is 62% which sounds relative good.
    Also good to know is that with this strategy you are only less then 40 % in the market !
    Maybe also good to mention that the first 11 months, from January 2014 to December 2014, profits are ZERO, which is annoying and it would be hard to maintain the strategy if the simulation would have been true during that year !

    • JohnScher • 05/06/2018 #

      I did not come up with the baking test results, they were supplied by PRT.
      I didn’t go through a change from p and q to 3 or 7.
      And times I’m not on the market I haven’t checked either, but I’ll make up for that.
      Currently I also have the strategy programmed by someone in MT4 to get a separate backtest. Depending on the result of the backtest from MT4, I then go live on air “Who beats the Dax?

  4. Glen Marquis • 05/06/2018 #

    Perhaps the answer is just take Longs above the 4Hourly openprice and Short below the 4Hourly open .

    • JohnScher • 05/06/2018 #

      “Perhaps the answer is just take Longs above the 4Hourly openprice and Short below the 4Hourly open ”
      Can you rewrite the code accordingly? – my coding skills are very limited.

  5. Glen Marquis • 05/06/2018 #

    Sorry John, I do not have much time to. But tested on lesser timefrom for 1hr and 4hr blocks beginning at session open likely a good starting point.

    • JohnScher • 05/06/2018 #

      Well, hi,
      you are welcome to put the code here, if we achieve better results – no problem

  6. Glen Marquis • 05/06/2018 #

    Sorry John I have no time.

  7. Geronima Ortiz • 05/06/2018 #

    Is this trading system expected overnight?
    or is it my problem?
    I see long at 21 hours, which are closed the next day

    • JohnScher • 05/06/2018 #

      Yes, the strategy works overnight.
      Open and Closes are at 09.00/13.00/17.00 and 21.00 o´clock “Berlin-Time” on the 4H chart.
      There’s a little risk involved, all right.

  8. Dymjohn • 05/06/2018 #

    Hi John
    You can cut the number of trades down by about 23% by introducing a “BuyPrice” STOP for entry 2 points above the high. This only reduces overall profits by 5.6% and reduces time in the market by over 4% coupled with an increase in number of winning trades of over 1%.

    • JohnScher • 05/06/2018 #

      Oh,
      I did not optimize the strategy.
      You are welcome to put a modified code according to your approach here.

  9. JohnScher • 05/06/2018 #

    Hello.

    I have updated the code littel bit.

    On the one hand I switched to GMT+1.
    On the other hand, I optimized the entries and exits using the Optimazingtool via the Repulse, thus slightly improving the result in the backtest.

    In the attachment the itf.ile. If there are problems with the download and/or opening, here is the code again

    //————————————————————————-
    // maincode : Dax Only Long by Repulse and DPO
    // timezone GMT+1 new !!
    // timframe 4H
    // Spread 2

    // created by JohnScher
    //————————————————————————-

    Defparam cumulateorders = false

    TradingDay = Opendayofweek = 1 or Opendayofweek = 2 or Opendayofweek = 3 or Opendayofweek = 4 or Opendayofweek = 5
    TradingTime = time >=080000 and time 0.01 and Repulse [3] >= 0.21 then // new … 0.0 before
    buy position contracts at market
    Endif

    If Repulse [3] <-0.17 then // new .. 0.0 before
    sell at market
    Endif

    Endif

    Set Stop %Loss 5 // stays !!
    //Set Target %profit 3

  10. osupero • 05/06/2018 #

    https://www.screencast.com/t/Tc0F6XB5q……………intentando mejorar su estrategia en h1..buena estrategia..yo amante del DPO

  11. osupero • 05/06/2018 #

    https://www.screencast.com/t/QmSXRbBR

  12. osupero • 05/06/2018 #

    https://www.screencast.com/t/2fCW8fkGsOeZ….solo posiciones largas por ahora

  13. osupero • 05/06/2018 #

    https://www.screencast.com/t/MIaSZ2PRg

  14. ALZ • 05/06/2018 #

    Hi JohnSher,
    Nice but not the same result
    Do you have the last itf of it ?
    Good result in production ? or it was just a test in demo account ?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
darbes Hi How does it go on live ? JC
antonio73 Balmora74, io vedo che funziona anche su timeframe ad 1 minuto con piccole ottimizzazioni, t...
Juananantoniorodriguez hola buenas, a este sistema automático, Cómo se le podría poner un stoploss de beneficio sim...
Exalaxe Hey, i just noticed you optimized this strategy. Could i see your new version, please?
Andrea.1981 sorry i add my code but it not enter why i dont know
Andrea.1981 this is code simply stop , and you can see another version for stop / Codice principale...
avatar
unkown ;-) sfido chiunque a riuscirci!
avatar
unkown infatti basta leggere i post degli altri....
nicola papangelo ciao Francesco vorrei contattarti su facebook o in privato. Grazie
hartgeld Hallo Atxeel, sehr interessanter Code, habe das installiert und funktioniert. Danke! Kannst ...
atxeel Hallo hartgeld, die Ziele sind schlicht, bspw. die Range beträgt 10 Punkte, dann ist das Zie...
Maik2404 wie kann ich den Code bekommen Paul?
jens_kittner Works with US Crude at 1h as well!
Jean-Claude REGIS Je préconise de regarder les graphiques H1 et M15 pour visualiser la tendance de fond et d'...
Paul the last update can be found in topic Strategy DayOpen Straddle for DAX on page 14.
bertrandpinoy l instruction GRAPH pose problème sur PRT... pas vous? cordialement
Nicolas Supprimer simplement les lignes avec GRAPH pour passer en ProOrder, trading live.
TraderFelix
6 years ago
Bebbo Thank you for your contribution. I have tested your system on some instruments and I like i...
bertrandpinoy bonjour j ai tente l installation mais PRT m indique que ce code ne peut etre utilisé qu en ...
Nicolas en effet, il faut utiliser l'éditeur de code ProBacktest, il ne s'agit pas d'un indicateur m...
odin i use it on daily Chart only. i use it on stock market for long only startegies. i´m no fan ...
noisette Hi Odin, Thank you for the code. I made sone test with M1 timeframe and results have to be ...
Onega Sorry, a quick question I cannot see on forum please ?...Using ProScreener, how can we get t...
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
Niklas johansson hägglund do you now if it's possible to use this strategy with this code in tradingview also?
Alexander9 This code for metastock ?, can for amibroker . Thanks
Petersson Kristian Hi when I do back test I get 0 results, what do I do wrong? Trade Well Chris
JohnScher Yes i did before, see library/strategys/repulse and dpo https://www.prorealcode.com/proreal...
JohnScher Don't know what you're doing wrong. Import ITF and observe time zone settings. This should...
Arnaud HALVICK Hello! Very nice screener. Thank you! I am using it to scan stocks (weekly). It is very good.
odin you welcome. i would be glad when the screener is nice for you
HeikinAshi what do you think about using the screener in smaller time units (H1, M30) on indexes? And w...
dertopen HI Wwhy you said avoiding bear market? Don't you think that we can use this code for short...
maurizio dove si trova lo screener?
macdopa Thanks...
Eric If you have a high percentage winners and the trades are closed with take profit the spread ...
Casenova I Agree with you JaunJ, and Yes Eric, what you say makes sense too. Optimizing the Stop Loss...
ET Thanks for the system Casenova. In determining the high of the past 4 bars, is there a reaso...
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
reb Hello have you used this strat since last year ? live or Back test ? What are the results ?
beeb Yes last Year. But only back test
drysheep Hi all, did anyone test this strategy recently? As i dont get a single trade in the backt...
Yannick TradingDayLong = dayofweek = 1 or dayofweek = 2 or dayofweek = 3 or dayofweek = 4 or dayof...
Marlon Hey JohnScher, your code works fine, but my results aren't as good as yours. Even if I use ...
DarioMazza Bha... this code dont work. gg
ALE
6 years ago
settival CIAO ALE CREDO DI AVER SETTATO PER BENINO LO SCALPING INDICATOR MA NON VISUALIZZO I SEGNALI ...
graff.laetitia Hello, I'm sorry to bother you, I'm new to trading, I managed to download the indicator but ...
Alby118 i can get it to work? dax 1 min. upload indicator on the4 chart. thank you

Top