通达信芳香大炼钢铁副图指标
源码
N:=12;
A1:=SMA(AMOUNT,10,1)/10000000;
{C5:DMA(SMA(VAR1,3,1),VOL/0.02/CAPITAL);
C13: DMA(SMA(VAR1,5,1),VOL/0.1/CAPITAL);
C34: DMA(SMA(VAR1,8,1),VOL/0.18/CAPITAL);
突破:CROSS(VAR1,C5) AND CROSS(VAR1,C13) AND CROSS(VAR1,C34);}
B1:=C>REF(C,1);B2:=C<=REF(C,1);
ZF:=(C-REF(C,1))/REF(C,1)*100;
DD:=SUM(IF (B1,A1*ZF,0),N);
KK:=SUM(IF (B2,A1*ZF,0),N);
DF:=SMA(DD,3,1);
KF:=-1*SMA(KK,3,1);
DLGT:DF-KF;
DLMA:SMA(DLGT,3,1);
0;