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
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
6 years 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 ...
teddy58 This system is the only one running on my PC, which i didn´t developed my myself. My forcast...
xpiga Hi! Is this system still working good? Anyone has it in the live account? It looks great. T...
Paul_Going Dutch Proformence will be beter with other starting hours and closing hours @Inertia
jens_kittner Since 2018 this strategy leads to bankruptcy)))))))
Jan Wind You do not HAVE to run it
Brisvegas As an exersize in writing code its fine but as a tool to make money not so much . If you hap...
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 ...
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...
Roberto Blázquez Hi David, I just saw your strategy and it's good!!! I'm going to try it from today in real a...
stratobast Good afternoon everyone. Thanks Doctrading for your work. I have an issue while using this ...
stratobast My bad guys. I understood what was the problem. The indicator uses highs and lows for the Re...
samwarduk Has anyone tried this on Bitcoin GBP1? The results look amazing but every time mine trie...
gackeen Scusa Pier, scusate tutti, sono nuovo. Ho caricato il file e mi viene restituito il messaggi...
JR1976 HI Nicolas , I tried to copy paste but not import directly and the code works well I hav...
mcosta This code doesn't work on 10.3 platform(IG), neither with copy/paste nor with itf import, an...
Wing There's a few threads on the forum about backtest and live trades being different at times. ...
ET I agree with verdi55. As it is now, the code will only test for a breakout on the upside (li...
Philipjonasson are u still active Wing?
Nicolas Thanks for sharing your automated trading strategy idea. Even if you accumulate loosing orde...
Maz Ok. Potential here to build onto this. Have opened a forum thread for further discussion: h...
ALE
7 years ago
CSR strategy DAX 1 D
CSR strategy DAX 1 D
17
Strategies
Jesper I tried it on dax 1D and I did not get any trades. Shifted to 10H and it started working. Wo...
rgrgrgr I have the same problem
avatar
crazytrader Is this working?
Francesco78 I did a little bit of work on that and now the results looks better and more stable. Please...
Francesco78 I did a little bit of work on that and now the results looks better and more stable. Please...
Khaled Hi Francesco , thank you for sharing your hard work. Any idea why all orders are executed at...
JanWd Thank you for the coding, it seems promising. FTSE gives for the short term (5 min) promis...
Jan Wind 21.04.2019: I retested the strategy for the DAX 5 minutes , it works fine for 10.000 bars, b...
bertrandpinoy hello Francesco, are you still working on this strategy?
avatar
bjoern With the same parameters? For me the results are negative
avatar
bjoern Oh ok, with the initial posted parameters it is positive
victormork yes! It's not like you want to put it on live but when I for example take the version I have...
otty82  all right. thanks
mmichael Hello, I noticed that the indicator shows the initial balance of today but also for all the ...
leyoy Bonjour, comment l'adapter sur 15 minutes au lieu de 1 heures ... j'ai changé 090000 par 081...
Derek Nice strategy. Have you tried adding a stop loss since there are a few sharp drawdowns? I ...
Piston_Broke Non so .... da qui la mia domanda iniziale :-)
Piston_Broke Hi Derek. I have tried many different ways to apply SL's to this and similar versions of th...
Nicolas Indeed, if you are not willing to loose, you will always win. Averaging down losers can carr...
David You're always safer going Long especially with averaging down on an index as the probability...
Oskar Bergvall  I noted Davids and Nicolas remarks. Could it be possible to make an indicator for contraria...
Lotar
7 years ago
Nicolas You can send it to contact@prorealcode.com and I'll attach it here. Thanks for your sharing!
Francesco78 Hi Lotar, which variables would you choose to recalibrate it to the present market condition...
Degardin Arnaud unfortunatly in today's market it's not working at all...
Nicolas it is based on seasonality of DAX.
Luciano Santiago Juárez Hello I am new here I am trying to understand this code IF monthlyMultiplierLong > 0 ...
Luciano Santiago Juárez Sorry the code copied bad the line I dont understand is: ELSIF monthlyMultiplierLong 0 THEN

Top