波段擒牛筹码图如下:
X_1:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;
X_2:=COST(X_1);
X_3:=100-X_1;
X_4:=COST(X_3);
DFMJ:X_4/X_2-1;
DRAWBAND(DFMJ,RGB(0,224,224),0,RGB(255,96,96));
DRAWBAND(IF(DFMJ>0.5,0.5,DFMJ),RGB(255,128,0),0,RGB(255,96,96));
DRAWBAND(IF(DFMJ>0.2,0.2,DFMJ),RGB(166,0,0),0,RGB(255,96,96));
X_5:=REF(DFMJ,1)< DFMJ AND X_4>REF(X_4,1);
X_6:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
X_7:=100-X_6;
X_8:=(X_6+X_7)/2;
X_9:=COST(X_8);
X_10:=REF(DFMJ,2)< REF(DFMJ,1) AND DFMJ< REF(DFMJ,1) AND X_9< REF(X_9,1);
X_11:=REF(DFMJ,2)< REF(DFMJ,1) AND DFMJ< REF(DFMJ,1) AND X_9>REF(X_9,1);
STICKLINE(X_5,0.8,1,4.8,0),COLORRED;
STICKLINE(X_10,0.8,1,4.8,0),COLORMAGENTA;
STICKLINE(X_11,0.8,1,4.8,0),COLORGREEN;
DRAWICON(X_5,0.75,44);
DRAWICON(X_11,0.75,43);
DRAWICON(X_10,0.75,23);
X_12:=EMA(CLOSE,34)>REF(EMA(CLOSE,34),1);
X_13:=WINNER(CLOSE)*100>50;
X_14:=CROSS(CLOSE,COST(50));
CMXH:X_12 AND X_13 AND X_14,COLORYELLOW;
DRAWICON(CMXH,1,42);
擒牛成交量副图源码如下:
VAR22:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
获利盘:=WINNER(CLOSE)*100;
VAR33:=SMA(VAR22,3,1);
VAR44:=SMA(VAR33,9,1);
VAR55:=3*VAR33-2*VAR44;
VAR66:=VOL;
量比:=VOL/MA(VOL,5);
角度: (CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
换手: VOL/CAPITAL*100;
涨跌: (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR77:=SUM(换手,30);
VAR88:=LLV(INDEXL,5);
VAR99:=HHV(INDEXH,5);
VARAA:=EMA((INDEXC-VAR88)/(VAR99-VAR88)*100,4);
VARBB:=MA(EMA(0.667*REF(VARAA,1)+0.333*VARAA,2),9);
VARCC:=MA(VARBB,30);
VARDD:=EMA(获利盘,4);
流通盘: CAPITAL/1000000,;
V5:=MA(VOL,5)*2;
VARE:=MA(V5,3);
V34:=MA(VOL,34)*2;
VARF:=(涨跌>VARDD AND 角度< -30 AND 涨跌>3);
CROSS(VARBB,VARCC) AND VARCC< 29;
CROSS(VARCC,VARBB) AND VARCC>58;
STICKLINE(VOL AND VAR33>VAR44,0,VOL,2,1),COLORRED;
STICKLINE(VOL AND VAR33<=VAR44,0,VOL,2,1),COLORCYAN;
VAR2:=CLOSE-REF(CLOSE,1);
VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,VAR2,0);
VAR4:=REF(CLOSE,1)-CLOSE;
VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);
VAR6:=SUM(VAR3,16)/SUM(VAR5,16);
VAR7:=100-100/(1+VAR6);
VAR8:=EMA(VAR7,16);
VAR9:=EMA(VAR8,8);
VARA:=EMA(VAR8,45);
MO:=(VAR8-VARA);
ML:=(VAR9-VARA);
VAR1A:=EMA(CLOSE,32);
VAR2A:=MA(OPEN,32);
趋势:=(VAR1A-VAR2A);
STICKLINE(MO>ML AND 趋势< 0 AND MO>REF(MO,3) AND 趋势>REF(趋势,3),VOL,0,2,0) COLORYELLOW;
DRAWTEXT(CROSS(V5,V34),V34,'★'),COLORRED;
DRAWTEXT(CROSS(V34,V5),V34,'☆'),COLOR00F300;
波段擒牛主图源码如下:
X_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_2:=(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210;
X_3:=EMA(X_2,13);
X_4:=CONST(HHV(HIGH,250));
DRAWBAND(X_4,RGB(88,0,0),X_3,RGB(0,0,0));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_5:=EMA(CLOSE,14);
X_6:=MA(CLOSE,5);
X_7:=(CLOSE-X_6)/X_6*100;
X_8:=ATAN((X_6/REF(X_6,1)-1)*100)*180/3.1416;
X_9:=SMA(EMA((X_6-REF(X_6,1))/REF(X_6,1),3)*100,3,1);
X_10:=EMA(X_9-REF(X_9,1),3);
X_11:=MA(CLOSE,10);
X_12:=MA(CLOSE,20);
X_13:=ATAN((X_11/REF(X_11,1)-1)*100)*180/3.1416;
X_14:=MA(CLOSE,30);
X_15:=(CLOSE-X_14)/X_14*100;
X_16:=X_12-X_14>REF(X_12-X_14,1) AND X_12>REF(X_12,1) AND X_14>REF(X_14,1);
X_17:=X_14-X_12< REF(X_14-X_12,1) AND X_12< REF(X_12,1) AND X_14< REF(X_14,1);
X_18:=ATAN((X_14/REF(X_14,1)-1)*100)*180/3.1416;
X_19:=FILTER(X_18>30 AND X_13>45 AND CROSS(X_8,60),10);
X_20:=FILTER(COUNT(CROSS(X_8,30),5)>=1 AND X_6>REF(X_6,1) AND X_15>REF(X_15,1) AND X_11>REF(X_11,1) AND X_10>REF(X_10,1) AND X_9>REF(X_9,1),10);
STICKLINE(X_20 AND CLOSE>X_3,CLOSE,OPEN,2,0),COLORYELLOW;
X_21:=CROSS(0,X_7) AND X_15< REF(X_15,1) AND X_11>REF(X_11,1);
X_22:=FILTER(X_21,10);
X_23:=COUNT(CROSS(X_7,0),3)>=1 AND X_15>REF(X_15,1) AND X_6>REF(X_6,1) AND (CLOSE/REF(CLOSE,1)-1)*100>5 AND REF(CLOSE,1)< X_14;
X_24:=FILTER(X_23,10);
STICKLINE(X_22,CLOSE,OPEN,2,0),COLOR008000;
DRAWICON(X_24 AND CLOSE>X_3,LOW*0.997,48);
X_25:=(HIGH+LOW+CLOSE)/3;
X_26:=(X_25-MA(X_25,14))/(0.015*AVEDEV(X_25,14));
X_27:=CROSS(X_26,(-100));
X_28:=X_26>=200;
DRAWICON(X_28,HIGH*1.015,46);
X_29:=X_27;
X_30:=REF(CLOSE,1);
X_31:=SMA(MAX(CLOSE-X_30,0),6,1)/SMA(ABS(CLOSE-X_30),6,1)*100;
DRAWICON(CROSS(84,X_31),HIGH*1.01,47);
DRAWICON(CLOSE>X_6 AND X_6>X_5 AND X_5>X_3 AND UPNDAY(X_3,2),X_3*0.99,9);