Candle Count
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © hakum582

//@version=5
indicator("Price Action Vortex")

//Candle Count strength

g = close > open ? 1 : 0
r = close < open ? 1 : 0

lengthInput = input(5, "Length")


plot(ta.ema(g,lengthInput),color = color.blue)
plot(ta.ema(r,lengthInput),color = color.black)

