displaced TEMA

A

arod49

New member
I know there is a displaced EMA on thinkorswim but I can't find one for a TEMA?
 
horserider

horserider

Well-known member
VIP
@arod49 Is this what you want?

Code:
#
# TD Ameritrade IP Company, Inc. (c) 2009-2019
# Displaced TEMA by adding a displace length to standardDevChannel ToS TEMA
# Horserider 12/27/2019

input price = close;
input length = 10;
input DisplaceLength = -5;
def ema1 = ExpAverage(price[DisplaceLength], length);
def ema2 = ExpAverage(ema1, length);
def ema3 = ExpAverage(ema2, length);

plot DisplacedTEMA = 3 * ema1 - 3 * ema2 + ema3;
DisplacedTEMA.SetDefaultColor(GetColor(0));
 
Thread starter Similar threads Forum Replies Date
mbeig Volume profile displaced Questions 3
A TEMA custom colored candles Questions 4
A Paint candles if above or below TEMA? Questions 5

Similar threads

Top