The DCTI curve is calculated by comparing the differences between highs and lows over a major an minor period, and expressing them as a positive and negative percentage.
The curve is then smoothed with an to provide a signal line.
Custom bar colors included with two coloring methods to choose from.
Cleaned up the code. Condensed the operations into a function.
Bar color selection is now an easy to use dropdown menu.