3 bars patterns – DAX intraday trading 1 hour

3 bars patterns – DAX intraday trading 1 hour

Simple 1H strategy on DAX (1EUR)
The aim of this strategy is to take a position after a succession of 3 consecutive candles of the same color. Strict hourly conditions allow the strategy to enter into position only at predetermined fixed times:

  • buy orders only at 12:00
  • sell orders only at 16:00

Trades are automatically closed at the end of the day.
 

 

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. victormork • 04/18/2017 #

    Hi! I don’t have as much history as you do but what about adding a moving average to the code? Improves the return the last 4 years.
    // LONG
    IF (time = 120000 and close > open and close[1] > open[1] and close[2] > open[2]and close > average[100]) THEN
    BUY 1 CONTRACTS AT MARKET
    SET STOP pLoss 40
    SET TARGET pPROFIT 50
    ENDIF

    // SHORT
    IF (time = 160000 and close < open and close[1] < open[1] and close[2] < open[2] and close < average[100]) THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    SET STOP pLoss 40
    SET TARGET pPROFIT 50
    ENDIF
     

    • avatar
      bjoern • 04/18/2017 #

      Thanks for commenting! In general I try to avoid using moving averages, but yes, performance is slightly better!

  2. victormork • 04/18/2017 #

    Alright. Anyway I like the simplicity of your code!

    • avatar
      bjoern • 04/18/2017 #

      Thanks!!!
       

  3. manel • 04/18/2017 #

    Hi bjoern. Many thanks for posting the attached strategy. I would however point out that the results shown include “zero bar” trades so will not be as reliable. Upon using tick by tick backtesting the overall profit is reduced by around 20%. This means that the strategy is still positive so looks promising and is probably worthy of more work and refinement.
    Kind Regards 

    • avatar
      bjoern • 04/18/2017 #

      You are absolutely right, thank for your comment. Already working on an optimization while using tick-by-tick data

  4. avatar
    bjoern • 04/18/2017 #

    Added a range filter for entering positions. Performance seems to be much better, even with tick-by-tick data.
    // DAX (1E) - IG MARKETS
    // TIME FRAME 1H
    // SPREAD 2.0 PIPS

    DEFPARAM CumulateOrders = False
    DEFPARAM FLATBEFORE = 100000
    DEFPARAM FLATAFTER = 210000

    sum = abs(open-close)+abs(open[1]-close[1])+abs(open[2]-close[2])

    // LONG
    IF (time = 120000 and close > open and close[1] > open[1] and close[2] > open[2] and sum > 40 and sum < 220) THEN
    BUY 1 CONTRACTS AT MARKET
    SET STOP pLOSS 100
    SET TARGET pPROFIT 200
    ENDIF

    // SHORT
    IF (time = 130000 and close < open and close[1] < open[1] and close[2] < open[2] and sum > 40 and sum < 220) THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    SET STOP pLOSS 100
    SET TARGET pPROFIT 200
    ENDIF
     

  5. victormork • 04/18/2017 #

    btw this strategy has an edge on Bund 1h as well

    • avatar
      bjoern • 04/18/2017 #

      With the same parameters? For me the results are negative

    • victormork • 04/18/2017 #

      yes! It’s not like you want to put it on live but when I for example take the version I have for DAX and put it on Bund without changing any values it’s still holding up pretty good which is always nice to see 🙂

  6. avatar
    bjoern • 04/18/2017 #

    Oh ok, with the initial posted parameters it is positive

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
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...
dzim0032 J'avais oublié de mettre un commentaire pour la vente du scalper dont les règles sont justes...
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
8 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?
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...
Nicolas Restart your platform in order to be sure to use the last version, there was a version rollb...
bertrandpinoy bonjour voud pouvez m envoyer le code modifier par vous?
Nicolas Désolé , je ne comprends pas votre question.
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...
Jessar Hi friends, is there any way to program the system to close the position when you have a lon...
Pring00 Hello @Nicolas, thanks for this code! Just what i was looking for. I'm fairly new to this...
Nicolas Needs custom coding, ask for a mod in a dedicated topic, in the appropriate forum please.
jelogui merci beaucoup Nicolas, je m'en occupe.
zeD22 Hello There Nicolas, When i try to copy the code i get an Error says: the following varia...
Nicolas Download the itf file and import it.
Lotar
8 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 Sorry but we do not provide any help for mt4 users. Our website is dedicated to ProRealTime ...
rginvest44 Bonjour Messieurs et félicitations pour votre travail. De mon coté, lorsque je souhaite e...
Nicolas Bonjour, il s'agit d'un code d'indicateur et non d'un screener. Cet autre code par exemple e...
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