Variety N-Tuple Moving Averages is a moving average indicator that allows you to create 1- 30 tuple moving average types; i.e., Double-MA, Triple-MA, Quadruple-MA, Quintuple-MA, ... N-tuple-MA. This version contains 5 different moving average types including T3. A list of tuples can be found here if you'd like to name the order of the moving average by depth: Tuples extrapolated
STD-Stepped, You'll notice that this is a lot of code and could normally be packed into a single loop in order to extract the N-tuple MA, however due to Pine Script limitations and processing paradigm this is not possible ... yet.
If you choose the EMA option and select a depth of 2, this is the classic DEMA ; EMA with a depth of 3 is the classic TEMA , and so on and so forth this is to help you understand how this indicator works. This version of NTMA is restricted to a maximum depth of 30 or less. Normally this indicator would include 50 depths but I've cut this down to 30 to reduce indicator load time. In the future, I'll create an updated NTMA that allows for more depth levels.
I see you finally found tghe solution. Nice work mate
loxx
⋅
@theheirophant, lol, its one solution, not the most elegant but it gets the job done
slowcoconut
⋅
@loxx, instant fan of these stepped methods you've put out... they're perfect for cutting out noise... and the tuple variety offers many variations to dig thru.. thanks
rlone9440
⋅
Hi Loxx, sorry, not sure I understand your last update. You mentioned something new after this update. Would you elaborate a little? Thanks!
kastis
⋅
i'm getting compile error then applying indicator
secretcode
⋅
Nice, Thank you
Mosatrader2022
⋅
Absolute genius, thanks for all the effort. You are a kind of gift that keeps on giving lol.