中间黄线为长期趋势线,var3上穿var4为短期买入,反之为短期卖出。
中轨:MA(CLOSE,30);
上轨:中轨+2*STD(CLOSE,60);
下轨:中轨-2*STD(CLOSE,60);
VAR2:=MA(CLOSE,3);
VAR3:(MA(VAR2,1)*1);
VAR4:(MA(VAR2,3)*1);
STICKLINE((VAR3>VAR4),VAR3,(VAR4*1),2,1),LINETHICK1,colormagenta;
STICKLINE((VAR3<VAR4),VAR3,(VAR4*1),2,1),LINETHICK1,colorgreen;
AMV0:=VOL*(O+C)/2;
生命线:SUM(AMV0,88)/SUM(VOL,88),colorred;
CG:MA(C,17),COLORFFCC66;
FL:=HHV(CG,2);
持股线:HHV(CG,2),COLOR00FF00;
FS:CG-(FL-CG),coloryellow,LINETHICK2;
VAR13:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K13:=SMA(VAR13,3,1),COLORFFFFFF;
D13:=SMA(K13,3,1),COLORFFFFFF,LINETHICK2;
DRAWICON(CROSS(K13,D13) AND K13<20 ,LOW*0.96,1);
DRAWICON(CROSS(D13,K13) AND K13>80,HIGH*1.035,6);
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),coloryellow;