当前位置:首页 > 通达信 > 正文

【通达信分享源码】精品指标公式-给力涨停30分指标源码

2022-10-25未知 编 辑:掌上指标


公式源码:
 
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),COLORFF3399;
 
MA4:=MA(CLOSE,4),COLOR0000FF;
 
MA5:MA(CLOSE,5),COLORFFFFFF;
 
MA6:=MA(CLOSE,6),COLORFFFF00;
 
MA10:MA(CLOSE,10),COLOR00FFFF;
 
MA20:MA(CLOSE,20),COLORFF00FF;
 
MA30:=MA(CLOSE,30),COLOR00FF00;
 
MA60:=MA(CLOSE,60),COLORFF0000;
 
 
 
JJ:= REF(J,1)<20 OR J<20;
 
CC1:=FINANCE(7)<500000000 ;
 
{QR3:= TT>=REF(TT,1)  AND REF(TT,1)<REF(TT,2) AND JJ AND TT<60  
 
       AND REF(TT,1)<=20;}
 
QR3:= TT>K1  AND REF(TT,1)<30  AND TT<50 {AND REF(J<20,1)} AND CC1;
 
{QR3:=TT>K  AND REF(TT,1)<30 ;}
 
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);
 
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) AND (EXIST(J>=100,4) )AND TT<90  AND TT<REF(TT,1);
 
短卖1:=REF(短卖,1);
 
短卖2:=EXIST(短卖,5);
 
短卖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) {OR REF(QR3,2) { OR REF(QR3,3)} {OR REF(QR3,4)};
 
{20100908}
 
 
 
QR9:=(C-REF(C,1))/REF(C,1)>=0.03;
 
QR10:=V/2<REF(V,1);
 
SS1:=9999999;
 
SS3:=DATE<SS1;
 
 
 
DRAWTEXT(CURRBARSCOUNT=35,L*0.98,'翔博软件工作室出品'),COLOR888888;
 
DRAWTEXT(CURRBARSCOUNT=35,L*0.97,'QQ280051251'),COLOR888888;
 
 
 
{STICKLINE( QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) 
 
 ,O,C,2,0),COLORFF00FF;}
 
 
 
{STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1
 
,O,C,1,0),COLOR00FFFF;}
 
 
 
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 
 
AND SS3,O,C,2,0),COLOR00FF00;
 
{DRAWTEXT( 底底 AND NOT(短卖2) AND NOT(底底1)AND CC1
 
   ,L*0.99,'注'),COLORFF00FF;}
 
DRAWTEXT( QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) {AND QR10}
 
AND SS3,L*0.99,'买'),COLOR00FFFF;
 
DRAWTEXT(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1
 
 AND SS3  ,H+0.02,'卖'),COLOR00FF00;
 
 
 
 
 
{STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1,HIGH,LOW,0,1 ),COLOR9B37FF;} 
 
{STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1 ,OPEN,CLOSE,3,0 ),COLOR00B0B0;
 
STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1,OPEN,CLOSE,2.7,0 ),COLOR00CACA; 
 
STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1,OPEN,CLOSE,2.1,0 ),COLOR00D9D9;
 
STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1 ,OPEN,CLOSE,1.5,0 ),COLOR00EAEA;
 
STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1 ,OPEN,CLOSE,0.9,0 ),COLOR00F9F9;
 
STICKLINE(底底 AND NOT(短卖2) AND NOT(底底1)AND CC1,OPEN,CLOSE,0.3,0 ),COLOR09FFFF;}
 
 
 
{STICKLINE(QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) ,HIGH,LOW,0,1 ),COLOR9B37FF; }
 
STICKLINE(QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) AND SS3 ,OPEN,CLOSE,3,0 ),COLOR6300C6;
 
STICKLINE(QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) AND SS3 ,OPEN,CLOSE,2.7,0 ),COLOR6D00DB; 
 
STICKLINE(QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) AND SS3 ,OPEN,CLOSE,2.1,0 ),COLOR7800F0;
 
STICKLINE(QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) AND SS3 ,OPEN,CLOSE,1.5,0 ),COLOR8000FF;
 
STICKLINE(QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) AND SS3 ,OPEN,CLOSE,0.9,0 ),COLOR8F20FF;
 
STICKLINE(QR3 AND NOT(短卖2) AND NOT(QR8) AND NOT(QR9) AND SS3 ,OPEN,CLOSE,0.3,0 ),COLOR9B37FF;
 
 
 
{STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1,H,L,0,1),COLOR00FF00; }
 
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,3,0),COLOR003300;
 
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,2.7,0),COLOR006600;
 
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,2.1,0),COLOR009900;
 
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,1.5,0),COLOR00CC00;
 
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,0.9,0),COLOR66FF00;
 
STICKLINE(短卖 AND NOT(短卖1) AND NOT(短卖3)AND CC1 AND SS3 ,O,C,0.3,0),COLOR00FF00;
 
 
 
DRAWICON( TT>K1  AND REF(TT,1)<30 AND NOT(短卖2) AND 
 
NOT(QR8)  AND SS3 ,L*0.99,1) ,COLOR0000FF;
 
{VOLUME:=VOL;
 
MAVOL1:=MA(VOLUME,66);
 
XXX1:= QR3 AND NOT(短卖2) AND NOT(QR8);
 
XXX2:=REF(XXX1,1) OR REF(XXX1,2) OR REF(XXX1,3) OR REF(XXX1,4) OR REF(XXX1,5)
 
 OR REF(XXX1,6) OR REF(XXX1,7) OR REF(XXX1,8) OR REF(XXX1,9)OR REF(XXX1,10)
 
OR REF(XXX1,11)OR REF(XXX1,12)OR REF(XXX1,13);
 
XXX3:=REF(V,1)/2>REF(V,2)AND (REF(V,1)>MAVOL1 OR V>MAVOL1) AND XXX2 AND J<REF(J,1);
 
XXX4:=REF(XXX3,1);
 
DRAWICON(XXX3 AND NOT(XXX4),H*1.01,2),COLOR0000FF;};

大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标