IDNR2 pattern strategy on DAX 1 h

IDNR2 pattern strategy on DAX 1 h

I just wrote this strategy

It works very well on dax 1 h

It is based on the IDNR pattern with 2 periods instead of 4

As filter It uses the following: the squeze of the bollinger band (band width < lowest[period]) , adx > min and atr[1] > atr[period]

As trailing stop I used a code that I found in this library

It does not seem over fitted because changing parameters the result remains good and also It seems to work quite well on FTSE MIB 1 h too

However It seem to me that It makes too few trades on the historic that I have available to be sure of its reliability

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?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Francesco78 • 316 days ago #

    Grazie! it is beautiful indeed

  2. Francesco78 • 309 days ago #

    Made good money today 🙂

  3. JR1976 • 309 days ago #

    IT’ s seems intersting Code 
    Could be more interesting if someone has a back test since before 2013  ?

  4. DarioMazza • 303 days ago #

     It work very well, thank u so much for share it

  5. Wilko • 301 days ago #

    I hate to potentially spoil the party, but the concept appeared so interesting that I decided tp test it on several other major developed market equity indices (without any spreads and/or commissions). Unfortunately I can report that it appears to be almost consistently negative, to such a degree that I am tempted to test it in reversal.

  6. Wilko • 301 days ago #

    First of all, many thanks for sharing! These shares are much appreciated.
    I hate to potentially spoil the party, but the concept appeared so interesting that I decided tp test it on several other major developed market equity indices (without any spreads and/or commissions). Unfortunately I can report that it appears to be almost consistently negative, to such a degree that I am tempted to test it in reversal.

  7. CKW • 299 days ago #

    Thanks Pier!
    Excellent! I add the SL capped at 0.8% for safety purpose. The Backtest performance is still very good .

  8. JR1976 • 294 days ago #

    Dear Pier , 
    your screenshot which rappresent the backtest , is since dec 2009 , but the equity curve in other picture is from 2013
    DO you have the equity line wich rappresente the algo code  before  2013  ?
    nice work

  9. CKW • 285 days ago #

    Dear Pier,
    Does it work on forex?

  10. bobrenard96 • 244 days ago #

    sorry, but your strategie doesn’t work.
    When i implement the file, i have the error : backtest.limit.optimisation.occurrence.teasing

    • Nicolas • 244 days ago #

      It’s a platform error, nothing to deal with the code. Did you tried to download the itf file and import it rather than copy paste it?

  11. gackeen • 220 days ago #

    Scusa Pier, scusate tutti, sono nuovo. Ho caricato il file e mi viene restituito il messaggio “Il suo Probacktest supera il limite di occorrenze per l’ottimizzazione Walf Forward” .

  12. JR1976 • 183 days ago #

    HI Nicolas ,
    I tried to copy paste but not import directly and the code works well
    I have a question about the code, because , did’t appears the equity line from 2009 .
    Do you have the possibility to show it ? ( the author doesn’r response)

  13. mcosta • 177 days ago #

    This code doesn’t work on 10.3 platform(IG), neither with copy/paste nor with itf import, any suggestion?

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+1 more likes

Related users ' posts
Daniel da Costa Thanks Doc! Where can you find a service for Dax with a 1 point spread?
Doctrading Hello. I suggest you : ProRealTime CFD, or IG. Best regards,
JanWd Mr Beep, nice strategy you have build ! I played around with your code, and made my own...
noisette Thank you for this code that seems to work well. But, if i'm not wrong, we can have buy and...
noisette sorry, I was wrong in my previous message: it's not possible to have both conditions at the ...
juanj This gets me thinking about creating a strategy on the 5min timeframe that only takes trades...
GraHal I noted above does okay on DAX 10 min with even a reduction to 30 of the Stop Loss. I've s...
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
lumarino Bom dia Ale. Obrigado pela partilha. Você tem alguma das suas estratégias operando em Modo R...
lumarino Qual é então a sua Estrategia de eleição ALE??
4 months ago
ALE P01 , it’s the first patner of the indicator, I hope to add others in future.
ALE We can discuss about the strategy here:
Alai-n Merci pour ce travail...
patmaba merci Alai-n. C'est ma première participation sur prorealcode, merci pour à toi pour ton co...
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...
5 months 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.
swapping Oups nicolas ! je pense que tu a oublié de mettre les variables "setting" accessible en exte...
Nicolas Je viens de vérifier, elles y sont pourtant?
swapping Mea culpa, j'ai fait un bête (copier/coller) et forcément cela ne pouvait pas y être puisqu'...
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 ...
thierryp Bonjour Nicolas, merci pour le travail que vous effectuez. Je ne suis vraiment pas bon dans ...
Wiezman74 any chance you can email me this indicator for MT4,, can't get the code to work.. limited kn...
Nicolas This website is dedicated to prorealtime programming. But you can ask for custom programming...
Vieux Marin //------------------------------------------------------------------------- // Code princip...
tecknozic Bonjour Inertia, cette sais-tu si cette stratégie fonctionne sur un compte IG à "risque limi...
Inertia Bonjour tecknozic.... Je ne sais pas... Désolé. Bonne chance ;)
flodefacebook Merci Nicolas pour cet indicateur. Très utile dans une technique de retournement.
danibo Hi Francesco, thank you for replying. I try to be crearer. My question is: - what is the...
JanWd Hi Francesco, nice algorithme, works with me on other markets as well !
Francesco78 thank you Janwd. Do you mind sharing where it works? happy new year!
JM David, Thanks a lot and next week I begin the test of this strategy in real... You have ot...
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...
Nicolas Good job, but I think there is something wrong in the description since trade direction is c...
verdi55 Running a single Renko strategy with a fixed box size is usually not a good idea, because th...
Fabrizio_T Hi, have you tested on the period 30 julay - 30 September 2015?
Stefan Arens Hi Vicormork, i´am sorry - but it still doesn´t work. I can´t correct the error. Prorealtim...
eltonio8 Hi everyone, can someone explain these lines literaly : if MyBoll >= 50 THEN upBo...
redz bonjour, comment changer les paramettre de la BB en 20 , 2.2 ? hello, how to change BB sett...