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 • 340 days ago #

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

    • ALE • 340 days ago #

      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 • 340 days ago #

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

  3. ALE • 340 days ago #

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

  4. Cosmic1 • 339 days ago #

    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 • 338 days ago #

      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 • 338 days ago #

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

  6. ALE • 338 days ago #


  7. ALE • 336 days ago #

    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 • 332 days ago #

    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 • 332 days ago #

      Thanks as always Nicolas

  9. Toto le Heros • 268 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 • 151 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

+9 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,
1 month ago
Alai-n Thanks...
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 ...
3 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...
4 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...
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: https://www.prorealcode.com/topic/scalping-indicator/
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.
juanj Definitely, need to code this into an automated strategy.
Marc Boliart dear nicolas, tyvm for your indicators and strategies, i have this following error when i ch...
Nicolas Your picture is too small, but for sure the problem is about the fact you are still using v1...
Jessar Hello, could you tell me how to use this indicator? I think the simplest things can still be...
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 ...