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
Andres Uffff, I didn't adjust the different index spreads. With the heavy spread of Italy It's nega...
davidp13 Good day. I know this was posted such a long time ago, but I though rebuilding the system on...
davidp13 Also to note that the one position in my code does not close the other, which as far as I kn...
Dave Hi, I'm new to coding and have been trying to modify the code a little to backtest an idea I...
Nicolas Better use the forums for coding assistance please. You'll get more results there for sure.
Dave Apologies - only just learning the site layout. Maybe you could delete the post?
Nicolas FR/Bonjour Steftonio, non pas de frais overnight calculé sur la durée du backtest, c'est une...
avatar
Anonymous Any reason why in 2016 this system is doing very bad respect the previous years?
Nicolas "very bad" is relative to the account equity. I do not forward test this strategy since I po...

Top