TEMA
Tema(Close, 10, Exponential)
Or a more general method:
3*Mov(C,10,E)-3*Mov(Mov(C,10,E),10,E)+Mov(Mov(Mov(C,10,E),10,E), 10,E)
where Mov = moving average, C = Closing price,
E = Exponential average
TEMA
Tema(Close, 10, Exponential)
Or a more general method:
3*Mov(C,10,E)-3*Mov(Mov(C,10,E),10,E)+Mov(Mov(Mov(C,10,E),10,E), 10,E)
where Mov = moving average, C = Closing price,
E = Exponential average
HEIKIN-ASHI
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;
ZERO-LAGGING EMA AND TEMA
EMA
Period:= Input("What Period",1,250,10);
EMA1:= Mov(CLOSE,Period,E);
EMA2:= Mov(EMA1,Period,E);
Difference:= EMA1 - EMA2;
ZeroLagEMA:= EMA1 + Difference;
ZeroLagEMA
TEMA
Period := Input("What TEMA period? ",1,250,10);
TMA1:= Tema(CLOSE,period);
TMA2:= Tema(TMA1,period);
Difference:= TMA1 - TMA2;
ZeroLagTMA:= TMA1 + Difference;
ZeroLagTMA
MOVING AVERAGES USED
Typical price zero-lagging TEMA
MetaStock formula:
period := Input("Average TEMA period? ",1,100,55);
TMA1:= Tema(Typ(),period);
TMA2:= Tema(TMA1,period);
Difference:= TMA1 - TMA2;
ZeroLagTMA:= TMA1 + Difference;
ZeroLagTMA
Heikin-ashi zero-lagging TEMA
MetaStock formula:
avg := Input("Average TEMA period? ",1,100,55);
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+
Min(L,haOpen))/4;
TMA1:= Tema(haC,avg);
TMA2:= Tema(TMA1,avg);
Diff:= TMA1 - TMA2;
ZeroLagHA:= TMA1 + Diff;
ZeroLagHA
Buying formula (MetaStock)
Avg:=55; {a 55 fixed day average}
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min
(L,haOpen))/4;
TMA1:= Tema(haC,avg);
TMA2:= Tema(TMA1,avg);
Diff:= TMA1 - TMA2;
ZlHa:= TMA1 + Diff;
TMA1:= Tema(typ(),avg);
TMA2:= Tema(TMA1,avg);
Diff:= TMA1 - TMA2;
ZlCl:= TMA1 + Diff;
cross(ZlCl,ZlHa) {crossover of the zero-lagging TEMA on the typical price
and the zero-lagging TEMA of the heikin-ashi closing price}
Selling formula (MetaStock)
Similar to the buying formula except the last line, which makes the crossover
the other way around - that is, cross(ZlHa,ZlCl)
20-BAR ZERO-LAGGING EMA for MetaStock
Period:= Input("What Period?",1,100,20);
EMA1:= Mov(CLOSE,Period,E);
EMA2:= Mov(EMA1,Period,E);
Difference:= EMA1 - EMA2;
ZeroLagEMA:= EMA1 + Difference;
ZeroLagEMA
TRAILING-STOP REVERSAL for MetaStock
stop:= Input("Trailing Stop",0,20,7);
trail:= If(C=PREV,PREV,
If(((Ref(C,-1)< PREV) AND (C< PREV)),
Min(PREV,C*(1+stop/100)),
If((Ref(C,-1)>PREV) AND (C>PREV),
Max(PREV,C*(1-stop/100)),
If(C>PREV,C*(1-stop/100),C*(1+stop/100)))));
trail
Şu anda 1 kullanıcı bu konuyu görüntülüyor. (0 kayıtlı ve 1 misafir)