i don't know about pine edit,but i see line24 "_hist = fun_macd(src,12,26,9)",it seems different from "Signal Length = 25 Fast Length = 50 Slow Length = 200 " you mention at first.
Noldo
⋅
@q328314167, Hey this is normal macd period using on training , and 25,50,200 are _output golden cross period macd my friend.