LLHC/HHLC - Simple Arrows
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © sateriok

//@version=5

//We have two strategies
//HHLC and LLHC
//Higher High and Lower Close is a reversal candle for an uptrend (Puts)
//Lower Low and Higher Close is a reversal candle for a downtrend (Calls)

indicator('LLHC/HHLC', overlay = true)
LLHC = low < low[1] and close > close[1]
HHLC = high > high[1] and close < close[1]
plotshape(LLHC, color = color.green, style = shape.triangleup, size = size.small)
plotshape(HHLC, color = color.red, style = shape.triangledown, size = size.small)