CSR strategy DAX 1 D

CSR strategy DAX 1 D

This automated trading strategy was posted by Nicolas 1 year ago for long side trade as example, starting from this example I’ve added short side, Trailing stop, and Donchian stop.

Below you will find link of the original version: “Cumulative RSI 2 periods strategy”.

The following variables can be optimized and  adapted to volatily and time frame

Trailing Stop : TGL and TGS

Stop loss by Donchian channel: DC

Moving Average: AVG to open position above or below it

Period of cumulative summ of the RSI indicator value “CUMRSI”

Positions are opens at indicator value set, called “CUMRSI” , this could be optimized and  adapted to volatily and time frame (Ex:IF Close>AVG AND CUMRSI<35  THEN BUY…)

The concept of the strategy it’s universal, and It could work for equity/indices/currencies.

This strategy could be used with cumulative order for long side. Below the result in the red graphic equity.



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 • 05/19/2017 #

    Thank you Ale, did you try it with othere indices other than the DAX? 

    • ALE • 05/19/2017 #

      Hi francesco
       not yet, I have given a look..it seems that there are good possibilities with different markets I would open a topic so that we post our tests

  2. Francesco78 • 05/19/2017 #

    Sounds good! pls indicate the  variables to be optimized so that we can speed it up 🙂

  3. ALE • 05/19/2017 #

    You can start with round value of the variables mentioned above… value as you know for each market

  4. Cosmic1 • 05/19/2017 #

    Hi Ale, good work. The RSI 2 periods is one of my favourites and I too modified and added some variables to my liking from the original. I run it on the S+P and it works well. I notice that you ran multiple passes for WF. With such limited trades, I’d be interested in the results from a standard one pass 70/30. What do you think?

    • ALE • 05/19/2017 #

      Hi cosmic
      I’m study this indicator just in these days.. I hope to discover some of interesting !! I’ve starting a topic for further discussion, if you know well please suggest!!

  5. ALE • 05/19/2017 #

    Hello Guys,I’ve starting new topic
    Thanks for your attention,  we can help each other  always

  6. ALE • 05/19/2017 #


  7. ALE • 05/19/2017 #

    Hello GuysI’m trying to fix a problem that I missed during the probacktest, I update you as soon as possible on the topic

  8. Nicolas • 05/19/2017 #

    The code has been updated in the attachment of the post with the last version which contain the fix. So you can download it here to get the good version too.

    • ALE • 05/19/2017 #

      Thanks as always Nicolas

  9. Toto le Heros • 357 days ago #

    It looks very interresting. I have one question related to the following result in ProbackTest with Spread=5 on DAXmini 1 EUR CFD (tick bt tick “on”) :
    – if the period of the test is from 01/01/2013 00:00 to 01/03/2013 00:00, the Long trade taken on 6/02/2013 01:00 ends on 10/02/2013 21:00 with -13.30€ (loss)
    – if the period of the test is from 01/02/2013 00:00 to 01/03/2013 00:00, the Long trade taken on 6/02/2013 01:00 ends on 07/02/2013 01:00 with -73.80€ (loss)

    Does that mean that in that code, the previous trade taken in January 2013 (on the 17th) affects the behaviour of the code in February 2013 ?
    Or what ?…

    I am actually asking the question as in general I am wondering if it is better to :
    – let the code run by prolongating the period of activity of the strategy in PRT (but isn’t there a risk here that after a certain number of executions, the code automatically stops ?)
    – or to stop and start again the code from time to time (for example, each month)

    Many thanks in advance for your comments/answers.

  10. StefanStrand • 240 days ago #

    I tried running this on IG ProRealTime and get the following error message, why could this be? Total beginner, sorry 🙂
    “Your ProBacktest exceeds the limit of repetitions for walk forward optimization.”
    Any idea how I can fix this?

Register or


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

+10 more likes

Related users ' posts
supertiti Hola Ale Can we have this same code from Nicolas's code in smoothed heikin Ashi? Sorry...
ALE Ok, We can discuss in the topic "3D Candlesticks TOPIC" Write me more details
Nicolas Thank you Xusto. Thank you a lot for your contribution :) Since your code is a Pathfinder'...
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
2 months ago
enricot Ciao Nicolas scusa se ti scrivo qui, ma sono nuovo e nn riesco a creare un nuovo post, cio...
enricot Scusa nn riesco.
SoloContado If you smooth the signal using a "summation" function, you get a nice "crossing of 0" graph....
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...
JohnScher Yes, the strategy works overnight. Open and Closes are at 09.00/13.00/17.00 and 21.00 o´clo...
JohnScher Oh, I did not optimize the strategy. You are welcome to put a modified code according to ...
JohnScher Hello. I have updated the code littel bit. On the one hand I switched to GMT+1. On t...
criscolci Thanks a lot!
Bard Cheers for doing Ehler's latest indicator Despair, much appreciated.
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 Hey Doctrading, I tried your code, optimising the A and V and the RSI period, see below. ...
4 months ago
Alai-n Thanks...
vlongobardo67 Ciao Fulvio, ho scaricato ed importato il file. m,a se lo faccio girare sul miniDax non ...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
beeb Hallo Dominik, das mit dem deutsch schreiben kommt mir sehr gelegen. Komme auch aus Deutschl...
vlongobardo67 hi Beeb, I imported the file in my platform but is does open any order. What is wrong , wha...
5 months ago
hartgeld Hallo Nicolas, ein sehr guter Indikator, vielen Dank! Leider rechnet er bei mir nicht die Pe...
Nicolas Changer la base de périodes du RSI original ? Le RSI a du "retard" puisqu'il est toujours né...
macbartin merci, je voulais savoir quel paramètre il faut modifier sur votre indicateur pour le modifi...
Nicolas Cet indicateur est dynamique, il n'utilise pas de période fixe
styrke Hello Nicolas, Nice screener, I appreciate the way you always try to condense at maximum th...
Nicolas There's no particular reason. RSI is widely use with its default period and results seems re...
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
MaoRai54 Hi, first of all Happy New Year. Well, I've inserted your indicator in DAX 1h but I cann...
Vinks_o_7 Hi Mao Happy New Year ! This is just an improved RSI where you plot a standard price momen...
Angel Perez Ciao Francesco. First of all thanks for the indicator and also fro the screener. I do have a...
fabioerliam Grazie! Buona giornata
fabioerliam Ciao Francesco! Ti disturbo ancora per chiederti se conosci o se eventualmente pensi si poss...
fabioerliam P.s. ho provato a togliere le divergenze nascoste (hd) dall'indicatore, ma nonostante inseri...
7 months ago
TradeNavigator RSI
TradeNavigator RSI
Nicolas Tutte le impostazioni che hanno la parola "period" sono quelle dedicate ai periodi di cambio...
GianfrancoCeck Le chiedo una ultima cosa, ossia se è possibile personalizzare l'indicatore con una scritta ...
Nicolas Spiacente che non sia possibile, le coordinate grafiche non sono in pixel ma nel prezzo e ne...