CDC ATR Trailing Stop v2.1

v10.3
CDC ATR Trailing Stop v2.1

Contains two ATR trailing stop lines, fast and slow.
The slow ATR SL line is the same as the one in a normal ATR trailing stop loss indicator.
The fast one is created to generate buy/sell signals (plot arrows on the chart).

The system works well in high volatility market.

(translated from tradingview code, following a request in the Spanish forum).

 

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. zilliq • 188 days ago #

    All works in High Volatility Market 😉 Thanks Nicolas and have a nice day

  2. Maik2404 • 187 days ago #

    Ich hab mal eine Frage zu deinem Indikator:
    Der Einstieg ist ja über die Pfeile geregelt.Ab wann steige ich aus? Bei Short am Ende der roten Linie?

  3. bezieh • 187 days ago #

    Looking good nicolas, although, after i download it and have it as a indicator, what settings should i put in the wizard so it buys and sells as the indicator shows?
    Doesn’t seem to figure out how to do that, thanks 🙂

    • Nicolas • 185 days ago #

      Add sSell and sBuy in the RETURN instruction and you should be able to use the indicator in automatic trading.

  4. bezieh • 185 days ago #

    I dont understand what you mean.. the code already has “ssell” and “sbuy”..?

    • Nicolas • 185 days ago #

      change the RETURN instruction line with this one:
      return ts1 style(point,1) as “Fast Trail”, ts2 coloured(rtrail,gtrail,0) style(line,2) as “Slow Trail”, ssell,sbuy
      Then you’ll be able to use these last variables in any trading strategies, by looking for their values, 1 means a new signal, 0 means no signal.

  5. bezieh • 185 days ago #

    Ok, i pressed modify in the indicator, and changed the last return line with that line you sent me. But it’s still an indicator? When i press the wizard to create bot i still have to put in the buy and sell signals, so it still doesn’t work mate

    • Nicolas • 185 days ago #

      yes it is still an indicator obviously 🙂 But now you can get the signals (ones with arrows) with the “wizard”, mate. Learn to code and no need of wizard things anymore 😉
      Start with the first course: https://www.prorealcode.com/courses/training-program-introduction-programming-prorealtime/
      the advanced one should come this month.

  6. bezieh • 185 days ago #

    Oh okay, and how do i tell the wizard to buy and sell accoring to the arrows, because i only see the option to buy and sell when the indicator is under or over the price, thats the problem :p

    • Nicolas • 185 days ago #

      You can also test values of indicator. Equal or not to 1 for example.

  7. bezieh • 185 days ago #

    Another question.. is it even needed to learn how to code, even if you seem to have found a good strategy with the wizard? Just because the wizard is simple, doesn’t mean it’s bad.. It’s usually the simple strategies that last good in the long run, just like trading manually, doing over complex shit will not do any good

    • Nicolas • 185 days ago #

      No, but if you are able to code, you can use any of the codes around here and improve them for your own needs like this is the case for this indicator.

  8. Inertia • 182 days ago #

    Thank you Nicolas. Nice one 😉

  9. Matt B • 173 days ago #

    Bonjour Nicolas, je débute et suis intéressé par cet indicateur mais quand je copie/colle le code dans le mode “création d’indicateur” j’ai un message d’erreur : “erreur de syntaxe dans l’assignation” et la dernière ligne est grisée. Merci pour votre aide.

  10. Matt B • 173 days ago #

    c’est bon çà marche ! j’ai supprimé toutes les lignes vides du dessus

  11. Caribeengeek • 172 days ago #

    Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Maison je me rappel plus a quel e-mail vous envoyer svp c’est pour un screemer pour les devises time frame 1H merci d’avance

    • Nicolas • 172 days ago #

      Merci d’utiliser le forum pour les demandes de programmation personnalisée

  12. Caribeengeek • 172 days ago #

    Les devises unité

avatar
Register or

Likes

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

+9 more likes

Related users ' posts
FULVIO09 Con il file notrendstrategy.itf che hai scaricato puoi eseguire un probacktest sullo strumen...
FULVIO09 Avec le file notrendstrategy.itf, vous pouvez exécuter un probacktest sur l'instrument fina...
kuroobi Parfait , merci beaucoup .
FULVIO09 I try to answer even if, not being a statistic, it is not easy for me to do it, and even mor...
cfta Hi Fulvio, many thanks for sharing this clever indicator, much appreciated. As Pepsmile ment...
cfta Sorry adding the PRT to code didn't work in the above comment so I guess we will have to set...
Nicolas
2 months ago
Maxime Baudin Interesting, Thank you! :)
franck-david Bonjour Nicolas , actuellement je me forme grace a vos videos tres tres bien expliques mer...
Nicolas Merci. ça n'est pas le lieu pour poser ce genre de question :) Merci d'utiliser le forum Pro...
joobeng I get area of shading above and below a horizontal line. How can I post a picture here ? Thanks
joobeng Sorry, I solved the problem. I have add the CBL indicator using the spanner icon on the pric...
Nicolas Adjust the price settings for the Y Axis to use the price only.
stefou102 Thx Nicolas! trying to test this indicator in an automated strategy but I'm becoming crazy b...
stefou102 mystoploss=call "Adaptative ATR-ADX"(MedianPrice) GRAPH mystoploss as "Adapt"
Nicolas In this case, I suggest to add the indicator's code directly into your strategy.
Nicolas Thanks for the studies. What about the switch of the trend triggered by the slow and fast pe...
juanj Hi Nicolas, yes I did also change that. Found an EMA of 5 in conjunction with an EMA of 9 to...
Bard Hi Nicolas and Juanj I hope this is alright but I've moved the discussion here: https://ww...
Vonasi Discussion on this indicator/filter can be found here: https://www.prorealcode.com/topic/121...
Vonasi Forum discussion on these indicators can be found here: https://www.prorealcode.com/topic/av...
jennr29 Hi. Is it possible to convert this code to an mq4 file?
Nicolas Sorry but our website is dedicated to prorealtime programming. However, you can ask for priv...
pableitor Hola Domenec, un indicador muy original y util que ciertamente añade mucha informacion a la ...
Domenec Hola Pableitor porque aqui lo que pretendo es programar un nuevo codigao mas ajustado para q...
Juanjo Hola Domenec. He visto en los videos que hablas continuamente de mercado de futuros con grá...
AGTrader Interesante, muy visual Doc. Felicidades!!!
Leo Does it opens pending orders?... maybe they were not trigger.
Mattzi Dont know, all i can see is that it opened an order yesterday in backtest but not live. Th...
Jean-Christophe Hello Leo, when running the strategy from 29/12/2015 to 31/08/2018 on ProRealTime Premium, I...
odin here is my code c1 = ExponentialAverage[3](close) c2 = ExponentialAverage[5](close) c3 ...
juanj HI Odin Can you also kindly provide the code for the 'Short Term Trader Squezze' indicato...
odin this is the short term Trader squezze indicator. short term Trader in Trouble and squezze is...
Geronima Ortiz I watched the video three times, but I can not put the npips parameter as a variable. I do...
Geronima Ortiz I think the video is for an old version of prorealtime, the images do not correspond at all ...
Nicolas indicator1 = CALL “PRC_StopReversal”[npips, 1] and define npips in the optimization window ...
odin look at the screener i upload a new rule based screener for this strategy to find long candi...
JanWd Very nice strategy, it does work indeed !! Very long time perspective. You can use this s...
Mary Hi Odin, thank you very much for the strategy. You said there is a screener you posted for t...
winnie37 Merci Nicolas. J'ai un bug d'affichage quand j'utilise ton indicateur. La bougie en cours ...

Top