Nicolas

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
Britains 55 TMA shifted 21

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: 114
Nicolas
Nicolas Legend
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

GraHal
10 years ago
#

Hi Nicolas

Britains .itf file didn't work for me ... I had to change h to hh at line 13 and h to hh at line 16 as per your code above.

Thanks

Graham

Nicolas
10 years ago
#

Thank you GraHal for pointing this error, i have corrected the code in the file. The code in the post above remain correct.

ProRealCode ProRealCode
Loading...