通达信指标公式源码黄金底指标
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;
{VAR2V:=REF(LOW,1);
VAR3V:=SMA(ABS(LOW-VAR2V),3,1)/SMA(MAX(LOW-VAR2V,0),3,1)*100;
VAR4V:=EMA(VAR3V*10,3);
VAR5V:=LLV(LOW,13);
VAR6V:=HHV(VAR4V,13);
VAR7V:=IF(BARSCOUNT(CLOSE) >34,1,0);
VAR8V:=EMA(IF(LOW<=VAR5V,(VAR4V+VAR6V*2)/2,0),3)/618*VAR7V;
VAR9V:=IF(VAR8V>100,100,VAR8V);
STICKLINE(VAR9V>-120,0,VAR9V,6,1),COLORYELLOW;
STICKLINE(VAR9V>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)
DRAWTEXT_FIX(1,0,0.01,0,'平底翻红买入,平顶翻绿卖出!'),COLORRED;
VAR101:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
S:=SMA(VAR101,5,1),COLORRED;
VAR201:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
趋势1:=SMA(VAR201,2,1),COLORFF00FF ;
VR4:=SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1);}
风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。
=====================