Return value fo the Triangular Moving Average indicator over the last N periods for the selected price.
Syntax:
1 |
TriangularAverage[N](price) |
Example:
1 2 3 4 5 6 7 8 9 10 11 12 |
once ssMA = close MA = TriangularAverage[50](close) if(MA > ssMA + (MA/100)*1) THEN ssMA = MA ELSIF (MA < ssMA - (MA/100)*1) THEN ssMA = MA ELSE ssMA = ssMA ENDIF RETURN ssMA |