通达信主力拉升突破抓妖主升浪指标公式源码:
MA60:MA(CLOSE,60) DOTLINE COLORGREEN;
TY:=H;
AA1:=REF(TY,1)=HHV(TY,2*1+1);
BA1:=FILTER(AA1,1);
CA1:=BACKSET(BA1,1+1);
HHD:=FILTER(CA1,1);
前期高位:=REF(H,BARSLAST(HHD));
平台:STICKLINE(C,前期高位,前期高位,8,0),COLORBROWN LINETHICK2;
DRAWICON(C>平台,L,5);
DRAWICON((C-MA(C,5))/MA(C,5)>0.1,L,1);
DRAWICON(CROSS(C,平台),平台*1.002,26);
MID:=MA(C,15)*1.005;
龙飞凤舞1:=POW((C-MID),2);
龙飞凤舞2:=MA(龙飞凤舞1,15);
龙飞凤舞3:=SQRT(龙飞凤舞2);
UPPER1:=MID+2*龙飞凤舞3;
牛牛起飞1:=REF(UPPER1,1),COLOR00FFFF;
DRAWICON(CLOSE>牛牛起飞1,LOW*0.99,9);
DIFF9:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA9:=EMA(DIFF9,5);
RSV19:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV19,3,1);
D:=SMA(K,3,1);
LC:=REF(CLOSE,1);
追风起涨19:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
追风起涨29:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV9:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR19:=SMA(RSV9,3,1);
LWR29:=SMA(LWR19,3,1);
BBI9:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM9:=CLOSE-REF(CLOSE,1);
MMS9:=100*EMA(EMA(MTM9,5),3)/EMA(EMA(ABS(MTM9),5),3);
MMM:=100*EMA(EMA(MTM9,13),8)/EMA(EMA(ABS(MTM9),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD:=EMA(SK,5);
空方主力:=(-2*(SK-SD))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
龙龙抓牛2:=IF(MONTH<12,1,1);
龙龙抓牛3:=(2*CLOSE+HIGH+LOW)/4;
龙龙抓牛4:=LLV(LOW,34);
龙龙抓牛5:=HHV(HIGH,34);
主力:=EMA((龙龙抓牛3-龙龙抓牛4)/(龙龙抓牛5-龙龙抓牛4)*100,13)*龙龙抓牛2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
飞龙在天1:=MA(CLOSE,10);
飞龙在天2:=MA(CLOSE,55);
飞龙在天3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
飞龙在天4:=FILTER(飞龙在天3,10);
飞龙在天5:=BARSLAST(飞龙在天4);
飞龙在天6:=REF(HIGH,飞龙在天5+2);
飞龙在天7:=REF(HIGH,飞龙在天5+1);
飞龙在天8:=REF(HIGH,飞龙在天5);
飞龙在天9:=MAX(飞龙在天6,飞龙在天7);
飞龙在天10:=MAX(飞龙在天9,飞龙在天8);
飞龙在天11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
飞龙在天12:=飞龙在天5<150;
飞龙在天13:=(OPEN-飞龙在天10)/飞龙在天10*100<30;
飞龙在天14:=(CLOSE-LLV(LOW,飞龙在天5))/LLV(LOW,飞龙在天5)*100<50;
飞龙在天15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
飞龙在天16:=VOL/MA(VOL,5)<3.5;
飞龙在天17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
飞龙在天18:=飞龙在天11 AND 飞龙在天12 AND 飞龙在天13 AND 飞龙在天14 AND 飞龙在天15 AND 飞龙在天16 AND 飞龙在天17;
飞龙在天19:=FILTER(飞龙在天18,15);
飞龙在天20:=(CLOSE-飞龙在天2)/飞龙在天2<0.1;
飞龙在天21:=(CLOSE-飞龙在天1)/飞龙在天1<0.3;
飞龙在天22:=(飞龙在天20=1 AND 飞龙在天21=1)*0.2;
飞龙在天23:=(飞龙在天22=0 AND REF(飞龙在天22,1)=0.2 AND REF(COUNT(飞龙在天22=0.2,10)=10,1)=1)*(-0.1);
飞龙在天24:=飞龙在天23=(-0.1);
飞龙在天25:=飞龙在天19 OR 飞龙在天24;
飞龙在天27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
飞龙在天28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
飞龙在天29:=飞龙在天25 AND 飞龙在天27 AND 飞龙在天28 AND REF(NOT(飞龙在天28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户)
AND (DIFF9>=DEA9) AND (K>=D) AND (追风起涨19>=追风起涨29) AND (LWR19>=LWR29) AND (CLOSE>=BBI9) AND (MMS9>=MMM) AND DIFF9>=0 ;
MID9:=MA(C,15)*1.005;
龙飞凤舞19:=POW((C-MID9),2);
龙飞凤舞29:=MA(龙飞凤舞19,15);
龙飞凤舞39:=SQRT(龙飞凤舞29);
UPPER9:=MID9+2*龙飞凤舞39;
LOWER:=MID9-2*龙飞凤舞39;
牛牛起飞9:=REF(UPPER9,1),COLOR00FFFF;
AA9:=CLOSE-牛牛起飞9;
飞龙在天30:=(AA9>0) AND (REF(AA9,1)<0) AND (REF(AA9,2)<0) AND (REF(AA9,3)<0) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散户) AND (DIFF9>=DEA9)
AND (K>=D) AND (追风起涨19>=追风起涨29) AND (LWR19>=LWR29) AND (CLOSE>=BBI9) AND (MMS9>=MMM) AND (DIFF9>=0);
DRAWICON(飞龙在天29 OR 飞龙在天30,L,25);
STICKLINE(CLOSE>牛牛起飞1 AND 飞龙在天29 OR 飞龙在天30,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(CLOSE>牛牛起飞1 AND 飞龙在天29 OR 飞龙在天30,OPEN,CLOSE,0.6,0),COLORYELLOW;