• The price of VIP membership is increasing to $199 beginning June 1. Click here to lock in the current rate of $149.

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));
 

Similar threads

Top