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
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Iván Hi! You should change $rbox, $gbox and $bbox variables. Also r,g,b for last box.
finplus Thanks Ivan.
roccafragius Ivan, I just want to say you.. very very great job!!!! Thank you so much for this indicator!...
Iván
2 weeks ago
groelandes Cuando te descargas el fichero itf, en su código no aparece toda la configuración de alertas...
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
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
2 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 ...
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Iván
2 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
2 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
sfl Removing the short side will help, I would like to know from the author where are the condit...
WE ARE SOCIETY DEFPARAM cumulateOrders = False rem CAC40 (france40) en 10 secondes rem à la ligne ci-dess...
David Daget Bonjour. A noter que cette stratégie fonctionne aussi sur le ftse. Ce qui n'est pas surprena...
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
elcortijoverde Muy buen trabajo.Intuitivo y claro.Gracias por tu dedicación y aportación.
Nicolas Simple strategy with this indicator is available here: https://www.prorealcode.com/topic/ut-...
FXtonio Nicolas.... MERCI 1 millions de fois, cet indicateur gagne dans 75% des cas en scalping m1 ...
davy42 bonjour, à quel moment apparait le fleche, à l'ouverture ou la fermeture de la bougie? merci

Top