Triangular Moving Average
is a variation on Simple Moving Average. Instead of giving equal weight to all days in the period, the TMA gives progressively more weight to days in the middle of the period.
First determine both Smoothing Period 1 and Smoothing Period 2 as (Period + 1) / 2.
So for a 5 day period the smoothing periods are 3.
Then multiply each price in the period by the triangular weighting which in this case is 1 2 3 2 1.
5 day Accumulation = (Price1 * 1) + (Price2 * 2) + (Price3 * 3) + (Price4 * 2) + (Price5 * 1).
Then calculation the TMA as (Accumulation / Smoothing Period 1) / Smoothing Period 2.
Assuming a Period of 4, Smoothing Period 1 would be be calculated as Period / 2 = 2, and Smoothing Period 2 would be calculated as (Period / 2) + 1 = 3.
And the triangular weightings would be 1 2 2 1.
Average Other Values
Although the default input is Close Price, you can vary this to any other item. For example, you could specify Volume as the Custom Input to create Triangular Moving Average Volume.