Variety N-Tuple Moving Averages [Loxx] 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
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.
> however due to Pine Script limitations and processing paradigm this is not possible ... yet.
Could you tell more about pine script limitations you met?
Ether2020
⋅
Thank you for the script. Unfortunately, I see a lot of errors when adding this script to a chart:
line 122: The function 'ta.ema' should be called on each calculation for consistency. It is recommended to extract the call from this scope line 124: The function 'ta.wma' should be called on each calculation for consistency. It is recommended to extract the call from this scope line 126: The function 'ta.sma' should be called on each calculation for consistency. It is recommended to extract the call from this scope line 128: The function 'ta.rma' should be called on each calculation for consistency. It is recommended to extract the call from this scope line 130: The function '#f1' should be called on each calculation for consistency. It is recommended to extract the call from this scope
There are more, but the post will get too long. If you add it, you can see it yourself.
Could you tell more about pine script limitations you met?