Reverse Donchian

Reverse Donchian

The reverse Donchian indicator is a modified version of the classic Donchian channel, in which the values ​​are reversed: higher high and lower low, with higher low and lower high. And calculated upon the occurrence of conditions interdependent on these values, which further strengthen the validity of trend following signals. You enter long and exit short when the current low is greater than the maximum value and you enter short and exit long when the current high is less than the minimum value. There is only one period parameter to adapt based on the trader’s different needs such as: size of the trend to intercept, volatility to filter and chosen timeframe.

Here is the code.

If you have in mind to improve the optimization of period, perhaps by finding solutions to optimize it automatically, or you intend to create an ad hoc strategy, do not hesitate to create a new topic. I will be happy to cowork with you.

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. luxrun • 152 days ago #

    A question: what are the initial (or default) values ​​of maximum and minimum in the execution of the two conditions of the code PRT?

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
albertocampagna Sei grande Nicolas :-)
SAcht Dear Nicolas, Great work, thank you very much!I would love to use the indicator in ProScree...
SAcht btw: The above-posted ProScreener is supposed to show stocks for which the center line has i...
wtangsiri Bonjour J'ai importé le fichier ITF en question, mais cela me donne, en bas de l'écran, un...
Nicolas Il faut ajouter l'indicateur sur le graphique du prix.
skuggan89 This is a great indicator, works very well!! Is there any algo based on this indicator that ...
mamio Very nice indicator. Why doesn't it refresh as time passes?
Nicolas It should refresh on each bar.
mamio On my PC it doesn't refresh. I am using intraday tick bars (not minutes). Unfortunately I do...
Nicolas I would not recommend using this version of the linear regression channel, but this one inst...
Aragorna Hello, Is it possible to updated the indicator to the more updated versione of ProrealTime? ...
Nicolas Use that code instead: https://www.prorealcode.com/prorealtime-indicators/standard-deviation...
Nicolas You can try this code for buy and hold curve line: capital = 10000 mylot = 2 i1 = capi...
soukenson Bonjour Nicolas, Je ne comprends pas où ajouter le code que tu as a donné dans le code initi...
Nicolas Tu veux parler du code pour comparer avec le "buy and hold" ? Si oui, tu as tout ce qu'il fa...
Nicolas
8 years ago
dave
8 years ago
Wolf Just for information: This calculate code is interesting, but it is not a Triangular Moving...
Dron Hola Lobo, soy nuevo en programación, pero me interesa ese indicador, en tu mensaje estas ha...
supertiti // TMA CENTER Channel by Dave modifié // parameters // HalfLength = 50 // AtrLength = 10...
211 Really nice indicator Nicolas! Well done!
supertiti Bonjour Nicolas comme j'avais l'impression qu'il en manque un bout j'ai fais ça : Peux...
Nicolas Merci supertiti ! C'est juste, encore un ptit bug quelquepart ! :|

Top