Buonasera, chiedo se possibile, la traduzione del codice di questo indicatore, che mi pare interessante. Grazie!
// Two-pole smooth filter function
f_two_pole_filter(source, length) =>
var float smooth1 = na
var float smooth2 = na
alpha = 2.0 / (length + 1)
if na(smooth1)
smooth1 := source
else
smooth1 := (1 – alpha) * smooth1 + alpha * source
if na(smooth2)
smooth2 := smooth1
else
smooth2 := (1 – alpha) * smooth2 + alpha * smooth1