Based on the swing hi/lo and TRO SR examples, how would I start coding a dynamic S&R based on a hull moving average. Using the example from SampleMulticolorPlot, I'm trying to draw horizontal lines to determine the swing highs and lows based on the color change conditions of a moving average of Hull moving average with a period of 21. I can change the sensitivity of the swing highs/lows by increasing or decreasing the period of the HMA.
Example for upper line. When a HMA line turns RED, look for the highest swing high and start drawing the horizontal line until it reaches the next pivot swing.
For lower line, when HMA turns green, then look for the lowest swing low and start drawing horizontal line until it reaches the next pivot swing.
The horizontal line ends right before the HMA changes color.
See my manually drawn screenshot below.
Thanks
Comment