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?

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

  1. Glen Marquis • 103 days ago #

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

  2. JohnScher • 103 days ago #

    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 • 103 days ago #

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

  3. JanWd • 101 days ago #

    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 • 99 days ago #

      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 • 99 days ago #

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

    • JohnScher • 99 days ago #

      “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 • 98 days ago #

    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 • 98 days ago #

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

  6. Glen Marquis • 98 days ago #

    Sorry John I have no time.

  7. Geronima Ortiz • 95 days ago #

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

    • JohnScher • 68 days ago #

      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 • 95 days ago #

    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 • 68 days ago #

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

  9. JohnScher • 41 days ago #

    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 • 25 days ago #

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

  11. osupero • 25 days ago #

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

  12. osupero • 25 days ago #

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

  13. osupero • 25 days ago #

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

avatar
Register or

Likes

avatar avatar avatar avatar
Related users ' posts
TraderFelix
2 weeks ago
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...
Nicolas Thank you Xusto. Thank you a lot for your contribution :) Since your code is a Pathfinder'...
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
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...
odin look at the screener i upload a new rule based screener for this strategy to find long candi...
JanWd Very nice strategy, it does work indeed !! Very long time perspective. You can use this s...
Mary Hi Odin, thank you very much for the strategy. You said there is a screener you posted for t...
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...
Daniel da Costa Thanks Doc! Where can you find a service for Dax with a 1 point spread?
Doctrading Hello. I suggest you : ProRealTime CFD, or IG. Best regards,
JanWd Hey Doctrading, I tried your code, optimising the A and V and the RSI period, see below. ...
vlongobardo67 Ciao Fulvio, ho scaricato ed importato il file. m,a se lo faccio girare sul miniDax non ...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
Dominik // Stops und Targets SET STOP pLOSS 0 SET STOP PTRAILING 45 SET TARGET pPROFIT 55
beeb Hallo Dominik, das mit dem deutsch schreiben kommt mir sehr gelegen. Komme auch aus Deutschl...
vlongobardo67 hi Beeb, I imported the file in my platform but is does open any order. What is wrong , wha...
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
8 months ago
ALE P01 , it’s the first patner of the indicator, I hope to add others in future.
ALE We can discuss about the strategy here: https://www.prorealcode.com/topic/scalping-indicator/
settival CIAO ALE CREDO DI AVER SETTATO PER BENINO LO SCALPING INDICATOR MA NON VISUALIZZO I SEGNALI ...
Yannick Hello There is a mistake in trailing stop code, I think that this should fix the problem s...
Paul About the trailing-stop the way it's coded. That works for backtesting only, just look at th...
Jonny sorry paul, but system says that is not possible to put many stop order combined...what have...
BC
9 months ago
TempusFugit Thanks Bin, nice code, I can use several ideas of the way you build it
DarioMazza Thanks Bin, great concentration, i understand the first idea, but may u indicate me the asse...
Bin Hi Mazza This robot is optimized for DAX30.
TempusFugit Masala, thanks for your contribution. I don´t like the offmarket spreads neither ;) I unders...
Uveus Tempus, me da un error al validar el codigo, sobre la variable N. Al crear el indicador me ...
TempusFugit Hi Uveus, I am guessing you inserted the code of the indicator into the system code, is ...
tecknozic Bonjour Inertia, cette sais-tu si cette stratégie fonctionne sur un compte IG à "risque limi...
Inertia Bonjour tecknozic.... Je ne sais pas... Désolé. Bonne chance ;)
teddy58 This system is the only one running on my PC, which i didn´t developed my myself. My forcast...
stockdemon The problem is that the markup is assuming you're writing. markup :) Try the code tags, m...
stockdemon Well that didn't work. Next attempt: b3 = ma1[1]<ma1[0] https://www.freeformatter.co...
Nicolas Sorry for the problem. It should be fixed now. Post code and refresh the page, then codes sh...
simoneb ciao Gabri, potresti il modo più efficace per selezionare il paniere di 20-30 titoli su cui ...
gabri Simoneb, puoi creare uno screener che cerchi i titoli con un modified sharpe index inferiore...
gabri Dimenticavo, i titoli che performano meglio sono quelli che crossano la linea dello zero (o ...
JM David, Thanks a lot and next week I begin the test of this strategy in real... You have ot...
rejo007 hello david, i'll try it could you tell me wich strategy do you use in real? thanks
David Somogyi Hello, I have a couple of DAX strategies of breakout and mean reversion. I'll try to post...

Top