{主升起爆点副图源码如下}
X_1:=6;
X_2:=REF(CLOSE,1);
X_3:=SMA(MAX(CLOSE-X_2,0),X_1,1)/SMA(ABS(CLOSE-X_2),X_1,1)*100;
X_4:=COST(0.01);
X_5:=LOW<X_4 AND X_3<20;
STICKLINE(X_5,0,38,2,0),COLOR8977FF;
X_6:=REF(X_5,1)=1 AND X_5=0;
STICKLINE(X_6,0,50,2,0),COLORRED;
X_7:=COST(0.05);
X_8:=LOW<X_7 AND X_3<25;
STICKLINE(X_8,0,20,2,0),COLORYELLOW;
X_9:=REF(X_8,1)=1 AND X_8=0;
STICKLINE(X_9,0,30,2,0),COLORMAGENTA;
X_10:=COST(0.7);
X_11:=HIGH>X_10 AND X_3>83;
STICKLINE(X_11,0,38,2,0),COLORWHITE;
X_12:=REF(X_11,1)=1 AND X_11=0;
STICKLINE(X_12,0,50,2,0),COLORCYAN;
DRAWTEXT(X_12,50,'洗盘'),COLOR0066FF;
X_13:=COST(0.5);
X_14:=HIGH>X_13 AND X_3>80;
STICKLINE(X_14,0,20,2,0),COLORGREEN;
X_15:=REF(X_14,1)=1 AND X_14=0;
STICKLINE(X_15,0,30,2,0),COLORBLUE;
DRAWTEXT(X_15,30,'小心'),COLORRED;
DRAWTEXT(X_11,40,'主升'),COLORYELLOW;
DRAWTEXT(X_6,50,'抄底'),COLORYELLOW;
DRAWTEXT(X_9,30,'准备'),COLORYELLOW;
X_16:=DYNAINFO(4)=0;
X_17:=REF(CLOSE,17)<REF(HHV(HIGH,250),18);
X_18:=REF(CLOSE,18)<REF(HHV(HIGH,250),19);
X_19:=REF(CLOSE,19)<REF(HHV(HIGH,250),20);
X_20:=REF(CLOSE,20)<REF(HHV(HIGH,250),21);
X_21:=CLOSE>=REF(HHV(HIGH,250),1);
X_22:=X_21 AND REF(CLOSE,1)<REF(HHV(HIGH,250),2);
X_23:=X_22 AND REF(CLOSE,2)<REF(HHV(HIGH,250),3);
X_24:=X_23 AND REF(CLOSE,3)<REF(HHV(HIGH,250),4);
X_25:=X_24 AND REF(CLOSE,4)<REF(HHV(HIGH,250),5);
X_26:=X_25 AND REF(CLOSE,5)<REF(HHV(HIGH,250),6);
X_27:=X_26 AND REF(CLOSE,6)<REF(HHV(HIGH,250),7);
X_28:=X_27 AND REF(CLOSE,7)<REF(HHV(HIGH,250),8);
X_29:=X_28 AND REF(CLOSE,8)<REF(HHV(HIGH,250),9);
X_30:=X_29 AND REF(CLOSE,9)<REF(HHV(HIGH,250),10);
X_31:=X_30 AND REF(CLOSE,10)<REF(HHV(HIGH,250),11);
X_32:=X_31 AND REF(CLOSE,12)<REF(HHV(HIGH,250),13);
X_33:=X_32 AND REF(CLOSE,13)<REF(HHV(HIGH,250),14);
X_34:=X_33 AND REF(CLOSE,14)<REF(HHV(HIGH,250),15);
X_35:=X_34 AND REF(CLOSE,16)<REF(HHV(HIGH,250),17);
主升浪:X_35 AND X_17 AND X_18 AND X_19 AND X_20 AND NOT(X_16),NODRAW,COLORYELLOW;
DRAWTEXT(主升浪,0.95,'主升浪'),COLORYELLOW;
STICKLINE(主升浪,0,100,3,0),COLORCYAN;
X_36:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*4,5)*100;
X_37:=REF(X_36,1)>50 AND X_36-REF(X_36,1)>40;
X_38:=DVOL/CLOSE/2;
X_39:=SUM(IF(X_38>100 AND CLOSE>REF(CLOSE,1),X_38,0),0);
X_40:=SUM(IF(X_38>100 AND CLOSE<REF(CLOSE,1),X_38,0),0);
X_41:=SUM(IF(X_38<100 AND CLOSE>REF(CLOSE,1),X_38,0),0);
X_42:=SUM(IF(X_38<100 AND CLOSE<REF(CLOSE,1),X_38,0),0);
X_43:=X_39+X_40+X_41+X_42;
X_44:=X_39/X_43*100;
X_45:=X_40/X_43*100;
X_46:=X_44-X_45;
X_47:=(X_46>=REF(X_46,1)+1.5)*50 AND X_44>X_45;
主力追买:X_47 AND X_37;
STICKLINE(主力追买,0,100,3,0),COLORRED;
X_48:=(COST(97)-COST(3))/10;
X_49:=COST(3)+X_48*1-(COST(3)+X_48*0);
X_50:=COST(3)+X_48*2-(COST(3)+X_48*1);
X_51:=COST(3)+X_48*3-(COST(3)+X_48*2);
X_52:=COST(3)+X_48*4-(COST(3)+X_48*3);
X_53:=COST(3)+X_48*5-(COST(3)+X_48*4);
X_54:=COST(3)+X_48*6-(COST(3)+X_48*5);
X_55:=COST(3)+X_48*7-(COST(3)+X_48*6);
X_56:=COST(3)+X_48*8-(COST(3)+X_48*7);
X_57:=COST(3)+X_48*9-(COST(3)+X_48*8);
X_58:=COST(3)+X_48*10-(COST(3)+X_48*9);
X_59:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(X_49,X_50),X_51),X_52),X_53),X_54),X_55),X_56),X_57),X_58);
X_60:=IF(X_58>=X_59,COST(3)+X_48*10,IF(X_57>=X_59,COST(3)+X_48*9,IF(X_56>=X_59,COST(3)+X_48*8,IF(X_55>=X_59,COST(3)+X_48*7,IF(X_54>=X_59,COST(3)+X_48*6,IF(X_53>=X_59,COST(3)+X_48*5,IF(X_52>=X_59,COST(3)+X_48*4,IF(X_51>=X_59,COST(3)+X_48*3,IF(X_50>=X_59,COST(3)+X_48*2,IF(X_49>=X_59,COST(3)+X_48*1,0))))))))));
X_61:=X_60-X_48;
X_62:=X_60-X_48*0.5;
峰量:X_59*100,NODRAW;
X_63:=COST(60)>REF(COST(60),1);
XG峰:REF(CLOSE,1)<X_62 AND CROSS(CLOSE,X_62) AND X_63;
STICKLINE(XG峰,0,100,1,0),COLORYELLOW;
X_64:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_65:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_66:=X_64<REF(X_65,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
值4:X_66 AND COUNT(X_66,30)=1;
STICKLINE(值4,0,100,1,0),COLORFF80FF;
X_67:=VOL>REF(VOL,1)*1.9;
X_68:=IF(DATE<CONST(DATE),240,FROMOPEN);
X_69:=BARSCOUNT(CLOSE);
X_70:=IF(VOL/X_68*240=CONST(LLV(VOL,60)) AND VOL/X_68*240>CONST(LLV(VOL,X_69)),6,0);
X_71:=IF(VOL/X_68*240=CONST(LLV(VOL,60)) AND VOL/X_68*240=CONST(LLV(VOL,X_69)),6,0);
值8:X_71 OR X_70;
STICKLINE(值8,0,100,1,0),COLORMAGENTA;
X_72:=MA(REF(HHV(CLOSE,30),1),2);
X_73:=MA(REF(LLV(CLOSE,30),1),2);
X_74:=EMA(CLOSE,20);
X_75:=MA(CLOSE,20);
X_76:=POW(CLOSE-X_74,2);
X_77:=MA(X_76,20);
X_78:=SQRT(X_77);
X_79:=X_74+2*X_78;
X_80:=X_74-2*X_78;
X_81:=REF(X_74,1);
X_82:=REF(X_79,1);
X_83:=REF(X_80,1);
X_84:=EMA(COST(90),5);
X_85:=EMA(COST(99),5);
X_86:=VOL/REF(MA(VOL,5),1);
起爆点:(CLOSE>X_72 AND CLOSE>X_82 AND X_86>1.8 AND COUNT(CLOSE>X_72 AND CLOSE>X_82 AND X_86>1.8,7)=1)*100,COLORMAGENTA;
DRAWTEXT(起爆点=100,90,'起爆点'),COLORRED;
突破:(CLOSE>X_85 AND COUNT(CLOSE>X_85,7)=1)*66,COLORYELLOW;
DRAWICON(起爆点,1,13);
DRAWICON(突破,1,34);
{主升起爆点主图源码如下}
筹码启动:=1;
筹码启动1:=2;
游资筹码:=C;
MA1:MA(游资筹码,5);
MA2:MA(游资筹码,10);
MA3:MA(游资筹码,30);
MA4:MA(游资筹码,60);
DRAWKLINE(H,O,L,C);
筹码突破1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
筹码突破2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
筹码突破3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
筹码突破4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
潜伏筹码:=BARSLAST(CROSS(筹码突破4,筹码突破1))< 5 AND 筹码突破1>筹码突破4;
DRAWTEXT(COUNT(潜伏筹码,3)=1 AND 潜伏筹码 AND C>MA(C,20),LOW*1.001,' 潜伏筹码'),COLORYELLOW ;
DRAWICON(COUNT(潜伏筹码,3)=1 AND 潜伏筹码 AND C>MA(C,20),LOW*1.001,34);
筹码突破_1:=游资筹码/REF(游资筹码,1)>=1.04 AND 游资筹码/REF(游资筹码,1)<=1.075;
筹码突破_2:=游资筹码/REF(游资筹码,1)>=1.093;
STICKLINE(筹码突破_2,O,游资筹码,3,0),COLOR0077BB;
STICKLINE(筹码突破_2,O,游资筹码,2.6,0),COLOR0088CC;
STICKLINE(筹码突破_2,O,游资筹码,2.2,0),COLOR0099CC;
STICKLINE(筹码突破_2,O,游资筹码,1.8,0),COLOR00AADD;
STICKLINE(筹码突破_2,O,游资筹码,1.4,0),COLOR00BBDD;
STICKLINE(筹码突破_2,O,游资筹码,1,0),COLOR00CCEE;
STICKLINE(筹码突破_2,O,游资筹码,0.6,0),COLOR00DDEE;
STICKLINE(筹码突破_2,O,游资筹码,0.2,0),COLOR00EEFF;
STICKLINE(筹码突破_2,O,游资筹码,0.1,0),COLORYELLOW;
STICKLINE(筹码突破_2,HIGH,LOW,0,0),COLORYELLOW;
筹码扫描:(CURRBARSCOUNT=13,42),NODRAW;
划线范围:(CURRBARSCOUNT=0,55),NODRAW;
筹码突破_3:=IF(CURRBARSCOUNT<=55 AND CURRBARSCOUNT>=13 AND 筹码扫描,CONST(REF(LOW,筹码启动)),DRAWNULL);
辅助线1:IF(CURRBARSCOUNT<=55 AND 筹码扫描=0,CONST(REF(LOW,筹码启动)),DRAWNULL),DOTLINE,COLORRED;
有效K线1:筹码扫描 AND ABS((MAX(O,游资筹码)-筹码突破_3)/筹码突破_3*100)<=1.5,NODRAW;
满足1:COUNT(有效K线1,55)>=3,NODRAW;
成立线1:IF(CONST(满足1),筹码突破_3,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(有效K线1,O,游资筹码,2,0),COLORMAGENTA;
STICKLINE(有效K线1,LOW,HIGH,0,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=筹码启动+1,O,游资筹码,2,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=筹码启动+1,LOW,HIGH,0,0),COLORMAGENTA;
筹码突破_4:=IF(CURRBARSCOUNT<=55 AND CURRBARSCOUNT>=13 AND 筹码扫描,CONST(REF(LOW,筹码启动1)),DRAWNULL);
辅助线2:IF(CURRBARSCOUNT<=55 AND 筹码扫描=0,CONST(REF(LOW,筹码启动1)),DRAWNULL),DOTLINE,COLORRED;
有效K线2:筹码扫描 AND ABS((MAX(HIGH,游资筹码)-筹码突破_4)/筹码突破_4*100)<=1.5,NODRAW;
满足2:COUNT(有效K线2,55)>=2,NODRAW;
成立线2:IF(CONST(满足2),筹码突破_4,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(有效K线2,O,游资筹码,2,0),COLORMAGENTA;
STICKLINE(有效K线2,LOW,HIGH,0,0),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=筹码启动1+1,O,游资筹码,2,0),COLORWHITE;
STICKLINE(CURRBARSCOUNT=筹码启动1+1,LOW,HIGH,0,0),COLORWHITE;
CBA326:=IF(游资筹码 AND MA(VOL, 5)/240 AND 游资筹码>REF(游资筹码, 1)*1.0 AND 游资筹码,88,0);
CBA327:=IF(游资筹码/REF(游资筹码, 1)>1.050 AND VOL/CAPITAL*100< 10 AND 游资筹码< 17 AND HIGH/游资筹码< 1.010 AND CBA326>0, 91, 0);
DRAWTEXT(CBA327>90,LOW*1,' ☆主升筹码'),COLORYELLOW;
DRAWICON(CBA327>90,LOW*1.001,9);