TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1);
MAVOL2:MA(VOLUME,M2);
VAR1:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;
VAR2:=(C-LLV(L,10))/(HHV(H,10)-LLV(L,10))*100;
VAR3:=(C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100;
VAR4:=DMA(SMA((VAR1+VAR2+VAR3)/3,2,1),3);
K:SMA(VAR4,2,1),COLOR0000FF,LINETHICK2;
M:SMA(K,2,1),COLORFFFFFF;
DRAWICON(CROSS(K,M),K,23);
DRAWICON(CROSS(M,K),M,14);
红买青卖:30,COLOR0000FF,LINETHICK1;
红买: IF(K>M,30,DRAWNULL),COLORFF00FF,LINETHICK3;
青卖: IF(K {警示牌设置} 警示牌:=1; 高:=REFDATE(HHV(H,180),DATE)*1.05; 低:=REFDATE(LLV(L,180),DATE)*0.95; A11:=MA(C,18); A12:=MA(C,50); A13:=MA(C,89); A14:=IF((MA(C,180)<=高 AND MA(C,180)>=低) OR C>=MA(C,180),MA(C,180),DRAWNULL); {—————股性判断—————} 牛股:=ISLASTBAR AND A11>A12 AND A12>A13 AND A13>IF(A14=DRAWNULL,0,A14) AND C>A11 OR ISLASTBAR AND A11>A12 AND C>=A11; 猴股:=ISLASTBAR AND A11>A12 AND C
熊股:=ISLASTBAR AND IF(A14=DRAWNULL,A12
DRAWGBK(警示牌=1 AND 牛股,0,0,0,'牛股',0); DRAWGBK(警示牌=1 AND 猴股,0,0,0,'猴股',0); DRAWGBK(警示牌=1 AND 熊股,0,0,0,'熊股',0); ZLCM:=EMA(WINNER(CLOSE)*70,3); SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZSHTL:=SHCM/(ZLCM+SHCM)*100; ZZLKP:=ZLCM/(ZLCM+SHCM)*100; ZCMZL:=MA(ZLCM+SHCM,13); ZZLJJ:=EMA(ZZLKP,89); DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0); RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; K1:=SMA(RSV,10,1); D1:=SMA(K1,5,1); KK:=INTPART(K1); DD:=INTPART(D1); TFXXS:=KK+DD; T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1); T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0); T3:=CONST( ZCMZL=REF(ZCMZL,1)); T4:=CONST( ZCMZL
T5:=CONST( ZCMZL
T6:=CONST(TFXXS<=50 ); T7:=CONST(TFXXS>=160 ); T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 ); T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100); T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS100 );