How to insert an output of a sma into math.sum function?

Viewed 21

I'm struggling with pine script and I haven't found a way to insert an output of a sma into a math.sum function

Any help would very appreciated, thanks in advance

1 Answers

Your question is vague - but this is the concept

   out_ = math.sum(sma_, length)
Related