Designed with a purpose, this script was intended for use by bots automating trading of XLM using a 6hr timeframe. However the script has turned out to be a fantastic indicator on its own, and much of the power behind it is derived from John Ehler's incredible CG oscillator.
John Ehler was an electrical engineer, a Raytheon employee who began trading in the 1970's. He is best known for his work creating super-smoothing algorithms and methods of analysing cycle length and behaviour in price action, and his work in the field of zero-lag indicators - indicators that don't follow the price action, but are in fact capable of leading it actionably, and responding with essentially zero lag. By approaching the price action as a sine wave with demonstrably a fractal nature, Ehler's makes a number of important advancements. His CG indicator is derived from calculations typically used to derive the centre of gravity in a physical object. It effectively works as a band-pass filter and is possibly one of the very best leading indicators avaliable.