以下是通达信黄金底指标公式(无源码的请下载附件导入)
A:=(2*CLOSE+HIGH+LOW)/4;
B:=EXPMA(EXPMA(EXPMA(A,4),4),4);
J:=(B-REF(B,1))/REF(B,1)*100;
D:=MA(J,3);
A1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);
B2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
P1:=B2*(1+A1);
P2:=MA(P1,5);
RSV:= (HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;
R1:=SMA(RSV,3,1);
R2:=SMA(R1,3,1);
XG:CROSS(J,D) AND CROSS(P1,P2) AND J<0 AND P2<0 AND CROSS(R2,R1) COLORYELLOW LINETHICK2;
614200121.jpg
|