Using latest pinescript Array support!
Plotting Highest highs and Lowest lows for specific length (can be defined in settings).
The blue line is whom determinate the direction.
Blue line is the average of the highest highs and lowest lows smoothed by .
Green - Up Trending.
Red - Down Trending.
Yellow - Squeeze, a reversal might be coming.
Any suggestions/comments are welcome as this is an experiment.
* Changed ATR default value from 17 to 14
Added additional (optional) Arnaud Legoux Moving Average (ALMA) besides EMA.