Brown's Exponential Smoothing (BES)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © peacefulLizard50262

//@version=5
indicator("Brown's Exponential Smoothing", "BES", overlay =  true)

bes(float source = close, float alpha = 0.7)=>
    var float smoothed = na
    smoothed := na(smoothed) ? source : alpha * source + (1 - alpha) * nz(smoothed[1])
source = input.source(close, "Source")
alpha = input.float(0.01, "Alpha", 0.001, 1, 0.001)
plot(bes(source, alpha), "BES", color.orange)
