通达信一曲向天歌副图指标公式源码

以下是通达信一曲向天歌副图指标公式源码:

ZT:=CLOSE/REF(CLOSE,1)>1.095;
BOLL:=MA(CLOSE,20);
VAR1:=REF(CLOSE,2);
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
TT:=3*Q3-2*Q4,COLORWHITE,LINETHICK2;
YY:=EMA(Q3, 3),COLORRED; AA:=MA(YY,10);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9); MAC:=DIF>DEA;
VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
JJ:= SMA(VAR12,3,1),COLORGREEN,LINETHICK2;
KK:=CROSS(TT,JJ) AND MAC AND C<MA(C,60);
SS:=STD(CLOSE,20); UB:=BOLL+2*STD(CLOSE,20);
LB:=BOLL-2*STD(CLOSE,20);
A2:=COUNT(C/REF(C,1)>1.095,25)>1;
K1:=CLOSE/REF(CLOSE,1)>1.05 AND CLOSE/REF(CLOSE,1)<1.095 AND BOLL<REF(BOLL,1);
GGG:CROSS(MA(C,10),MIN(C,O)) AND COUNT(ZT,7)>=1 AND V<0.9*REF(V,1) AND CLOSE/REF(CLOSE,1)<1.055,COLORRED;