通達(dá)信震蕩穩(wěn)騎牛指標(biāo)公式
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:(BIAS1+2*BIAS2+3*BIAS3)/6,COLORRED;
乖離:MA(BIAS,3),COLORGREEN;
乖離1:MA(乖離,5),COLORGREEN;
DRAWBAND(BIAS,RGB(100,10,5),乖離,RGB(5,100,50));
DRAWBAND(BIAS,RGB(100,10,5),乖離1,RGB(5,100,50));
DRAWBAND(BIAS,RGB(250,0,0),0,RGB(0,250,250));
IF(C,BIAS,DRAWNULL),COLORFF00FF,LINETHICK2;
IF(BIAS<=REF(BIAS,1) OR BIAS<乖離1 ,BIAS,DRAWNULL),COLORBLUE,LINETHICK2;
IF(C,乖離1,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(乖離1<=REF(乖離1,1),乖離1,DRAWNULL),COLOR33FF33,LINETHICK2;
STICKLINE(CROSS(BIAS,乖離) AND 乖離<-9,0,10,3,1),COLORGREEN;
STICKLINE(CROSS(BIAS,乖離) AND 乖離<-9,10,20,3,0),COLORGREEN;
0;
A4:=MA(CLOSE,20);
A5:=(CLOSE > MA(CLOSE,5));
A6:=(MA(CLOSE,5) > MA(CLOSE,10));
A7:=(CLOSE > MA(CLOSE,10));
A8:=(MA(CLOSE,5) > MA(CLOSE,20));
A9:=(CLOSE > MA(CLOSE,20));
A10:=REF(A4,1);
A11:=(A4 > A10);
AVX:((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10));
DRAWBAND(AVX,RGB(250,250,0),0,RGB(0,100,250));
AVX2:MA((((((IF(A5,100,0) + IF(A6,100,0)) + IF(A7,100,0)) + IF(A8,100,0)) + IF(A9,100,0)) + IF(A11,100,0))/6,3.5);
DRAWBAND(AVX2,RGB(100,10,0),60,RGB(0,100,0));
VARR:=REF(CLOSE,1);
AVX3:SMA(MAX(CLOSE-VARR,0),5,1)/SMA(ABS(CLOSE-VARR),5,1)*100,COLORMAGENTA;
DRAWBAND(AVX3,RGB(200,0,250),60,RGB(0,200,0));
80,POINTDOT,COLORBLUE,LINETHICK2;
70,POINTDOT,COLORWHITE,LINETHICK2;
20,POINTDOT,COLORGREEN,LINETHICK2;
10,POINTDOT,COLORBLUE,LINETHICK2;
STICKLINE(AVX<=-20 AND AVX>=REF(AVX,1) AND REF(AVX,1)<=REF(AVX,2)AND AVX2<=40
AND REF(AVX3,1)<=40 AND AVX3>=REF(AVX3,1) AND REF(AVX3,1)=LLV(AVX3,8),0,20,2,0),COLORRED;
KB1:=EMA(C,3)-EMA(C,18);
DB1:=EMA(KB1,3);
KB:KB1*60;
DB:DB1*60;
DRAWBAND(KB,RGB(250,50,5),DB,RGB(0,200,200));
IF(C,KB,DRAWNULL),COLORRED,LINETHICK2;
IF(KB<=REF(KB,1),KB,DRAWNULL),COLORCYAN,LINETHICK2;
IF((AVX3<REF(AVX3,1)OR AVX3<REF(AVX3,2)) AND (REF(AVX3,1)=HHV(AVX3,5) OR REF(AVX3,2)=HHV(AVX3,5)) AND KB<REF(KB,1) AND REF(KB,1)=HHV(KB,5) AND REF(KB,1)>=20,100,110);
趨勢(shì)線:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
IF((趨勢(shì)線>REF(趨勢(shì)線,1) AND REF(趨勢(shì)線,1)=LLV(趨勢(shì)線,13) AND REF(趨勢(shì)線,1)<=35)OR CROSS(趨勢(shì)線,10),-50,-70),COLORRED;
VAR1:=AMOUNT/VOL/7;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,10)/VAR1/7;
VAR4:=DMA(VAR2,VOL/VAR3);
抄底:=(CLOSE-VAR4)/VAR4*500,COLORLIMAGENTA;
抄底1:=MA(抄底,3);
準(zhǔn)備抄底:IF(REF(抄底,1)<-50 AND CROSS(抄底,抄底1),-50,-70),COLORYELLOW;
|