🧾Summary:
1. Source code optimization to improve processing speed.
2. Default colors have been modified for better viewing.
3. Added the possibility to customize the horizontal position of the labels.
4. Added new indicator (band style): Parallel Channels.
5. Added new moving average (MA): 'Donchian Middle Channel High-Low Version'
🔎Details:
1. Parallel Channels:
The channels are obtained like this:
a) Capture the maximums and minimums
b) Calculate the respective averages
c) The final average is calculated, taking the amplitude between the top average and the bottom average, dividing by the parameterized divisor, and finally multiplying by the multiplier.
2. Donchian Channel
In the specific case of Donchian, it was decided to perform the calculation a little differently.
The average (base) is obtained in two ways.
In the standard way, the closing high is added to the closing low, and the result is divided by 2.
This is done using the 'Donchian Middle Channel' option.
The other way, which has just been added, is via the 'Donchian Middle Channel High-Low Version' option.
Here, the highs and lows are added (it's not the closing, it's the tip of the wick) and the result is divided by 2.
The two variants of Donchian Channel presented here differ from traditional Donchian.
In traditional Donchian, the chart is limited to just showing the base, plus an upper band (delimited by the high of the last N periods), plus the lower band (delimited by the low of the last N periods).
The improvement shown here in this indicator is that the Donchian is not limited to just an upper and lower band.
There are 3 possibilities: (1) standard deviation of Bollinger Bands, (2) Keltner channels, and the (3) newly added parallel channels.
What defines the location of the bands are the parameters in relation to the base, and not just the highs and lows.