Reverse Donchian

Category: Indicators By: davidelaferla Created: December 18, 2023, 10:36 AM
December 18, 2023, 10:36 AM
Indicators
1 Comment

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.

period=10

if (low)>(maximum) then
maximum=low
minimum=lowest[period](high)
endif
if (high)<(minimum) then
maximum=highest[period](low)
minimum=(high)
endif
media=(maximum+minimum)/2

return (maximum) as "maximum", (minimum) as "minimum", media as "media"

Download
Filename: Reverse-Donchian-1.itf
Downloads: 94
davidelaferla Average
This author is like an anonymous function, present but not directly identifiable. More details on this code architect as soon as they exit 'incognito' mode.
Author’s Profile

Comments

Logo Logo
Loading...