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
BaderBader Good day davidelaferla, Thank you for making your strategy available to the community, I do...
JohnScher Short variant, see at https://www.prorealcode.com/topic/late-lunch-trade-dax40-strategy/
DANY Hi JohnScher, Thanks a lot for your contribution. Consider this release to avoid overfit...
JohnScher Thank you so much for exploring the Late Lunch Strategy. For discussion and in answer to yo...
BenJuice JohnScher, merci de partager ta stratégie. Je suis nouveau dans ce domaine, sur ton code q...
JohnScher As a percentage of the price, here 2%. StopLoss as well as TargetProfit. SL and TP come ...
Wilko I absolutely love the simplicity of this mean-reversion strategy. Well done!
Patrice210 bonjour STANKO, effectivement la première ligne apparait en anomalie et je ne comprend pas v...
KumoNoJuzza Hi guys, Thanks @Stanko and everyone for your contributions. I have been playing around ...
Stanko Hi KumoNoJuzza, thanks for the post. I also tried your code with Dax and the performance is ...
thomas2004ch Hi, Is this startegy suitable for daily SPY? Regards
ebous64 Je cherche à traiter des effets de bords avec un encadrement ajustable des variables. Vous a...
thomas2004ch What are the values for nbx, nby, pbx, pby, ptsup, stplos, stptg, tp, vsmax, vsmin?
JohnScher Postscript: It's running in the live right now. One position after the other is opened. ...
ullle73 nice!! how's it been since your last post on going live? :)
thomas2004ch Hi, Is this strategy suitable for daily SPY? Regards
Darren Nash I found this works well on the DOW
thomas2004ch Hi John, Is your strategy suitable for daily SPY? Regards
gatowman Hi, ich bin leider Anfänger, habe den Code zwar importiert, aber scheinbar läuft er nicht au...
cdc.andersson Hello, I´m trying to paste the code and start testing but can´t get it to work in PRT. Shoul...
Lupo32 Thank You Aaron
superfalcio I'm having no more issue on the new Prorealtime release 11.1
Vinks_o_7 Hi Bruno Could you tell me where I can find more info about Laguerre candlesick please ?
Vinks_o_7 oops sorry did not see that one had to untick the standard Price to see your candle...
avatar
Anonymous This is very useful, look forward to testing it out. Thank you very much
idunnomuch IS this working in the latest version of prorealtime? I get the indicator, but not over my c...
bernardmorel egalement apparait en dessous du graphique mais vide
bernardmorel Bonjour est t il possible de remettre en ligne the strat car il y a une indication qui d...
bibifricotin Je pense avoir compris dans la première colonne exemple 92 le 9 indique la période et le 2 ...
Leo_da_Pisa It seems to work very well. Good for confirmation. Thanks for sharing Vivien.
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
Ludwig Bonjour Merci pour le code, je souhaite intégrer un break even et mette en place un réinves...
superfalcio hello, this strategy is pretty interesting, anyway on index after diferent suggestion and im...
Fralex Hello everyone I optimized the original “LongOnly-DAX-4H-TMA-Channel” algorithm over a pe...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...

Top