Double ATR trend indicator

v10.3
Double ATR trend indicator

Sharing a trend indicator, based upon the ATR of the ATR:  the double ATR trend indicator.

(not knowing if this indicator already exists)

The indicator is smoother then regular averages with the same period setting.

The double ATR trend indicator is calculated as follows:

DATR = Averagetruerange[Period](Averagetruerange[Period](Close))

For detecting the more general trend, the DATR is also calculated on a double period:

DATR2 = Averagetruerange[Period*2](Averagetruerange[Period*2](Close))

The default period setting is 15, the indicator should be added to the graph (like moving averages).  For comparison a 15 bars moving average is added.

Possibly the double ATR trend indicator on a double period could be used as a moving stop loss

As with most trend indicators, this indicator works well in a trending market, but not so well in a non trending, zigzagging market.

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. Screw27 • 305 days ago #

    Hi man, I installed the indicator and i don’t know why but my graph it is so big

  2. HelixKing • 283 days ago #

    sounds interesting I’ll take a look

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
Nicolas Le plus simple est de télécharger le fichier itf présent sur cette page et de l'importer dan...
Daniele Maddaluno Le closedbar est simplement une variable de type boolean, et = t signifie qu'il est égal à t...
yanntorp merci pour vos réponses et le partage de ce code. Cela fonctionne très bien.
Nicolas c'est plus une méthode de contournement que l'utilisation réelle du timeframe monthly.
Manu L. Mais est-il possible de programmer en TF monthly alors que PRT propose max weekly ?
Nicolas c'est très complexe dans ProScreener et différent pour chaque code, peut être dans sa procha...
IV Mcm The use of this indicator is however logical, it gives you potential movement departures dep...
Nicolas The updated version (v2) is available to download and discuss in this forum thread: https://...
IV Mcm Thanks Nicolas
Juan Gonzalez Que buen contenido! No tienes alguno que me permita operar Order Flow? Gracias
jissey Bjr Nicolas, merci pour cet indicateur interessant, mais en le recopiant pour creer un progr...
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
XXXXVII Fixed ITF Trend Background //Indicateur CCI ID2 = CCI[50] => 60 ID3 = CCI[100] => 60...
Sanglier thanks ! i have been looking forward to find something like this
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...
Screw27 Salut nicolas j'aimerais savoir tes résulats grace a cettte methode
eva.g.forsgren It dose not work, I get a strap instead of candels???????????????????????????????????????????
Nicolas That indicator is the one below the chart. The indicator to put on the price chart is this o...
pyhrus Pourriez-vous nous proposer une version adaptée pour PRT V13.0 , ou nous préciser les instr...
pyhrus Erratum : je veux parler de la version V10.3 , bien sur ...
pyhrus P.S : IG , que j'ai contacté ,m'indique que la version V11 , ne sera pas disponible avant un...
Nicolas Bien sûr, pourquoi pas ?
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
Nicolas Poni qui la tua domanda se è correlata a questo indicatore, altrimenti apri un nuovo argomen...
PhilipSchultz Hi Nicolas, can i backtest this indicator? And if so, how do i do it? I have tried, but don´...
Nicolas Sure, use the forums to create a new topic to ask for it Please respect the posting rules ...
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
Filoutube Dear Jan, Thanks for your great work. I just tested the code and manage to follow the whol...
Filoutube https://postimg.cc/1fcBLjJj
Filoutube Found the needed correction, just send the 2 Defparam lines at the very begining of the code...
Stockastiss Can this code be simply transferred into Backtestingcode so one doesnt need to use call ? (i...
Vonasi Sorry for the late reply. Add the code to your strategy and remove line 5 and line 39. Chang...
leofi https://www.prorealcode.com/topic/simple-average-with-visual-color/
leofi Go visit www.prorealcode.com/topic/simple-average-with-visual-color/ and watch 2em post
Dritan Hi,I am new on Prorealtime and coding.I downloaded the indi but I have it on a separate wind...
Nicolas You should open a new topic to discuss about the strategy and its coding.
dvlukic Hello Nicolas, How could plot this indicator over the price series? Thanks Dave
Nicolas Just add it on the price series.
Byggtrader Hi Nicolas! How do I get the indicator in the price chart? It only stays under i new chart.
Nicolas Just add it on the price chart by using the wrench on the left upper side of the chart (pric...

Top