RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
TJ:= IF(RSV1<5,0,RSV1);
TT:= IF(TJ>95,100,TJ);
K1:=SMA(RSV,2,1);
D1:=SMA(K,2,1);
MA3:=MA(CLOSE,3);
MA4:=MA(CLOSE,4);
MA5:MA(CLOSE,5);
MA6:=MA(CLOSE,6);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
JJ:= REF(J,1)<20 OR J<20;
CC1:=FINANCE2(7)<1000000000 ;
QR3:= TT>K1 AND REF(TT,1)<30 AND TT<50 AND CC1;
MA55:=EMA(C,5);
MA55角度:=ATAN((MA55/REF(MA55,1)-1)*100)*180/3.1416;
AA:=MA55角度>45 ;
BB1:=REF(C,1)>REF(MA5,1) AND REF(C,2)>REF(MA5,2) ;
BB3:=REF(AA,1) OR REF(AA,2) OR AA;
KK1:= CROSS(K,J);
预备:=BB1 AND BB3 AND C>MA30 AND NOT(KK1) AND C>=MA4 AND C>=REF(C,1);
QR6:=REF(预备,2) OR REF(预备,1) OR 预备;
QR7:=REF(O,1)>REF(C,1) AND REF(O,2)>REF(C,2);
macd:="macd.macd";
QR5:=TT>50 AND TT>REF(TT,1)AND REF(TT,1)<REF(TT,2)AND C/REF(C,1)<1.06 AND MACD>0 AND QR6 AND REF(C/REF(C,2),1)<1.05 AND NOT(QR7);
{EXIST(TT>=100,4)}
EXIST1:=count(tt>100,4)>0;
EXIST2:=count(J>=100,4)>0;
短卖:=count(TT>=100,4)>0 AND count(J>=100,4)>0 AND TT<90 AND TT<REF(TT,1); {---37--------}
短卖1:=REF(短卖,1);
短卖2:=count(短卖,5)>0;
短卖3:=REF(短卖,1) OR REF(短卖,2) ;
底底:=TT<10 AND J<10;
底底1:=REF(底底,1) OR REF(底底,2) OR REF(底底,3) OR REF(底底,4);
QR8:=REF(QR3,1) ;
QR9:=(C-REF(C,1))/REF(C,1)>=0.02;
WW1:=((C-O)/O)>=0.015;
QR10:=V/2<REF(V,1);
SS1:=1120818;
SS3:=DATE<SS1;
WW2:=QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) AND NOT(WW1) AND SS3;
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1
AND SS3,O,C,2,0),COLOR00FF00;
DRAWTEXT(WW2,L*0.99,'买'),COLOR00FFFF;
卖:短卖 AND NOT(短卖1) AND NOT(短卖3) AND CC1 AND SS3,linethick0;
DRAWTEXT(卖,H+0.02,'卖'),COLOR00FF00;
{}
STICKLINE(WW2 ,OPEN,CLOSE,8,0 ),COLOR6300C6;
STICKLINE(WW2 ,OPEN,CLOSE,6,0 ),COLOR6D00DB;
STICKLINE(WW2 ,OPEN,CLOSE,5,0 ),COLOR7800F0;
STICKLINE(WW2 ,OPEN,CLOSE,4,0 ),COLOR8000FF;
STICKLINE(WW2 ,OPEN,CLOSE,2,0 ),COLOR8F20FF;
STICKLINE(WW2 ,OPEN,CLOSE,1,0 ),COLOR9B37FF;
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,8,0),COLOR003300;
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,6,0),COLOR006600;
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,5,0),COLOR009900;
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,4,0),COLOR00CC00;
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,2,0),COLOR66FF00;
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,1,0),COLOR00FF00;
DRAWICON( TT>K1 AND REF(TT,1)<30 AND NOT(短卖2) AND
NOT(QR8) AND SS3 ,L*0.99,7) ,COLOR0000FF; |