Britains 55 TMA shifted 21

Category: Indicators By: Nicolas Created: March 3, 2016, 2:02 PM
March 3, 2016, 2:02 PM
Indicators
2 Comments

Trend identification, as bullish and bearish territories with this indicator, made of a 55 periods Triangular Moving Average shifted with its 21 previous value.

A small band is made of 2 over TMA plus and minus factorized ATR value.

//parameters
// fact = 0.13
// p = 55
// s = 21

a = TriangularAverage[p](close)
b = a[s]

atx = AverageTrueRange[13](close)

factor = atx * fact

hh = b + factor
l = b - factor

Return b AS "55 TMA MID", hh AS "55 TMA HIGH", l AS "55 TMA LOW"

 

Download
Filename: britains-55-tma-shift-21.itf
Downloads: 113
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...