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?

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

  1. zilliq • 04/10/2018 #

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

  2. Maik2404 • 04/10/2018 #

    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 • 04/10/2018 #

    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 • 04/10/2018 #

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

  4. bezieh • 04/10/2018 #

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

    • Nicolas • 04/10/2018 #

      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 • 04/10/2018 #

    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 • 04/10/2018 #

      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 • 04/10/2018 #

    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 • 04/10/2018 #

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

  7. bezieh • 04/10/2018 #

    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 • 04/10/2018 #

      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 • 04/10/2018 #

    Thank you Nicolas. Nice one 😉

  9. Matt B • 04/10/2018 #

    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 • 04/10/2018 #

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

  11. Caribeengeek • 04/10/2018 #

    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 • 04/10/2018 #

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

  12. Caribeengeek • 04/10/2018 #

    Les devises unité

avatar
Register or

Likes

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

+15 more likes

Related users ' posts
Iván
2 weeks ago
Madrosat Bonjour ivan Quelle différence il y a t il entre Extra trend et ultra trend lequel est le p...
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, very good job! May I ask you to translate teh script from TradingView named Tre...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
Regisnew très bel indicateur merci
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
Faisalx ChatGPT Hola Iván. Gracias por tu excelente trabajo. Te agradecería si pudieras echarle un...
Iván ok, perfecto! me pongo con ello
kats Bonjour, J'ai une question etes vous trader? Je m'explique , j'ai téléchargé tous les indi...
Faisalx Hola Ivan. Thanks for your great job. I would appreciate if you have look at my request http...
roccafragius Thank you for all these useful information!! Very great job Ivan! THank you so much
geroniman Merci Ivan, super travail. On peut toujours compter sur toi pour apporter des innovations su...
Stenozar Ciao mi restituisce errore line 1; forse è perchè utilizzo la versione 11 ? in questo caso d...
Stenozar Ciao IVAN , mi da errore per la riga 49 "print tema low"; puoi suggerirmi la modifica da met...
Iván Avete provato a scaricare il file .itf?
Iván Allora crei un nuovo post. Lo aspetterò.
Stenozar Ciao Ivan, ho inserito il post con la richiesta di traduzione. Se puoi vedere, grazie!
Iván perfect!
kats BONSOIR c bon merci j ai trouve ce weekend merci de votre reponse cdlt
the_giorgio Hi, nice work I would like to understand something about prorealtime code. With your ...
Iván Hello. When you use the drawcandle() instruction then in the configuration window you add ...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
larouedegann TIMEFRAME(15minutes) apparemment ne fonctionne pas
Iván Bonjour Je ne comprends pas bien le problème. L'indicateur fonctionne dans n'importe quelle...
larouedegann OUI je le sais, il fonctionne dans toutes les unités de temps. Mais je souhaite utiliser l'i...
Iván
7 months ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
Lean Me parece muy buen indicador, y se complementa muy bien en mi sistema, ¿podrías crear un scr...
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
Iván
9 months ago
Iván I personally like it in daily timeframe
oliTR Many thanks Ivan, I copy/paste your code to try it but could only get a constant stable unif...
Iván Hi, I've copied the code above and it works... what asset are you trying? $indices array ...

Top