TREND DIRECTION & FORCE INDEX BY PIOTR WOJDYO
这是我找到的通达信强力指标的源码,希望对你有用。
PER1:=17;
MMA:=EMA(C,PER1);
SMMA:=EMA(MMA,PER1);
IMPETMMA:=MMA - REF(MMA,1);
IMPETSMMA:=SMMA - REF(SMMA,1);
DIVMA:= ABS(MMA - SMMA);
AVERIMPET:= (IMPETMMA+IMPETSMMA)/2;
TDF:= POW(DIVMA,1)*POW(AVERIMPET,3);
NTDF:=TDF/HHV(ABS(TDF),PER1*3);
-0.05;0.05;NTDF,COLORRED,LINETHICK2;
这是方大碳素周线上公式表现的形态