HL-Average
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Shinichi-Kagami

//@version=5
indicator("HL-Average",overlay=true,shorttitle="HLA")
LLngth=input(70,title="Period")
plot(ta.highest(LLngth),title="High",color=color.orange,style=plot.style_circles)
plot(ta.lowest(LLngth),title="Low",color=color.orange,style=plot.style_circles)
plot((ta.highest(LLngth)+ta.lowest(LLngth))/2,title="Average",color=color.green,style=plot.style_circles)