• Get $30 off VIP with code SUMMER30. Ends July 27. Happy trading!

displaced TEMA

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
S Label displaced MA Questions 2
mbeig Volume profile displaced Questions 3
S TEMA CROSSOVER Questions 1
WbKiki TEMA Derivative Indicator for ThinkorSwim Indicators 1
A TEMA custom colored candles Questions 4

Similar threads

Top