通达信趋势力度副图指标,源码结合了MACD


MA2:=MA(CLOSE,10);
DEA:=EMA(DIF,9);
DIFF:=SUM(MA1-MA2,0);
W1:=BArslAST(crOSS(MA2,MA1))+1;
W3:=BARSLAST(CROSS(MACD,0))+1;
趋势力度:IF(1,SUMMACD-REF(SUMMACD,MIN(W3,W4)),DIFF-REF(DIFF,MIN(W1,W2)));
MAX趋势平均力度:HHV(趋势平均力度,34);