You can also set the color to be used for data output.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/8075
Trading strategy named Fx-chaos is the result of integration of Bill Williams' Chaos Theory, A. Elders' trading strategy (triple choice), and Ryan Jones' Fixed Ratio money management method.RelDownTrLen
The indicator displays the ratio between the length of the current down-trend (in bars) and the total length of the period barsToProcess (of course, in bars, as well) where the down-trend is searched for.