Price action: candlestick trend painter 
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Drbondsbody

//@version=5
indicator("HH/HL",shorttitle='HH/HL', overlay=true)

CandleHH=high>high[1] and low>low[1]
CandleLL=low<low[1] and high<high[1]

barcolor(CandleHH? color.green : CandleLL? color.red : color.white)


