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
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...
osupero https://www.screencast.com/t/2fCW8fkGsOeZ....solo posiciones largas por ahora
osupero https://www.screencast.com/t/MIaSZ2PRg
ALZ Hi JohnSher, Nice but not the same result Do you have the last itf of it ? Good result i...
GraHal Wow! Thank you Vonasi, great idea!
Vonasi No Problem GraHal. Please share anything interesting that you find using it.
Vonasi I've made a small improvement by adding a Buy and Hold line for comparison. This line can be...
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
reb Hello have you used this strat since last year ? live or Back test ? What are the results ?
beeb Yes last Year. But only back test
drysheep Hi all, did anyone test this strategy recently? As i dont get a single trade in the backt...
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
6 years ago
settival CIAO ALE CREDO DI AVER SETTATO PER BENINO LO SCALPING INDICATOR MA NON VISUALIZZO I SEGNALI ...
graff.laetitia Hello, I'm sorry to bother you, I'm new to trading, I managed to download the indicator but ...
Alby118 i can get it to work? dax 1 min. upload indicator on the4 chart. thank you
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
7 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 ...
JohnScher indicators i did fond, no problem, but a basic code to trade maybe RSI divergence didn´t fou...
Daniel3987 Please how do I add the prc candle strength to my mt5 on an iPhone
Nicolas You can't, this indicator is made to be used with prorealtime trading platform.
777dks hi this doesnot seem to work on forex, any ideas? thanks.
4example excellent, thank you
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
avatar
Anonymous Thanks for sharing! On the other hand can we remove the vertical gray lines?
ShaunG Appreciated! Thanks 100%
tonbijl good afternoon when i enter the code i get an error message Syntax error
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...

Top