主图
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'8',0);
ND1970:=(YEAR-1970)*365+INTPART((YEAR-1972)/4)-IF(INTPART(YEAR/4)=YEAR/4,1,0)+DAY+(MONTH-1)*30+IF(MONTH<=8,INTPART(MONTH/2),INTPART((MONTH-7)/2)+4)-IF(MONTH>2 AND INTPART(YEAR/4)=YEAR/4,1,IF(MONTH>2 AND NOT(INTPART(YEAR/4)=YEAR/4),2,0));
C1:=C;
O1:=REF(O,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1)));
H1:=HHV(H,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1))+1);
L1:=LLV(L,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1))+1);
DRAWBAND(H1,RGB(220,220,220),L1,RGB(0,25,0));
DRAWBAND(C1,RGB(220,20,20),O1,RGB(0,25,0));
跟A7:=C-REF(C,1);
跟A8:=100*EMA(EMA(跟A7,5),5)/EMA(EMA(ABS(跟A7),5),5);
买:=LLV(跟A8,2)=LLV(跟A8,7) AND COUNT(跟A8<0,2) AND CROSS(跟A8,MA(跟A8,2));
跟庄买进:DRAWTEXT(FILTER(买=1,5),L*0.9999,'@买')COLORMAGENTA;
TA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=EMA(TA,13);
VAR8A:=REF(CLOSE,1)-REF(ATR,1);
起飞:HHV(VAR8A,13), COLORYELLOW,LINETHICK2;
DRAWTEXT(ISLASTBAR,起飞,' 起飞'), COLORWHITE;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0;
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT (BU,LOW*0.989,'飞天'),COLORRED,LINETHICK3;
STICKLINE(买线>=卖线,LOW,HIGH,0,0),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000AA;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORAAAA00;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORBBBB00;
STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORFFFF00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLORFF00FF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),COLORBLUE;
副图1
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);
STICKLINE(1,105,0,4,0),COLORLIRED;
STICKLINE(1,50,-100,4,0),COLORLIRED;
RS2:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),2,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),2,1)))*(100);
STICKLINE((RS2 < 25),-100,105,4,0),COLORFFE4E1;
MA5:=MA(CLOSE,3);
MA10:=MA(CLOSE,8);
MA20:=MA(CLOSE,13);
A1:=IF(C>=MA5,1,-1);
A2:=IF(C>=MA10,1,-1);
A3:=IF(C>=MA20,1,-1);
A4:=IF(MA5>=REF(MA5,1),1,-1);
A5:=IF(MA10>=REF(MA10,1),1,-1);
A6:=IF(MA20>=REF(MA20,1),1,-1);
趋势:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;
主升浪:趋势>=50,COLOR0000FF,POINTDOT,NODRAW;
↓:趋势<50,COLORFFFFFF,POINTDOT,NODRAW;
周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;
临界:IF(CROSS(98,趋势),1,0),COLOR00FF00,POINTDOT,NODRAW;
WKQY:=BARSLAST(CROSS(50,趋势))<MIN(BARSLAST(CROSS(趋势,1)),BARSLAST(CROSS(趋势,-1)));
挖坑:BETWEEN(趋势,-1,50) AND WKQY,COLOR00FFFF,POINTDOT,NODRAW;
AA2:=IF(挖坑,趋势,50);
DRAWBAND(趋势,RGB(250,50,250),50,RGB(0,0,0));
105;
RS5:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),2,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),2,1)))*(100);
STICKLINE((RS5 < 25),70,90,2,0),COLORBLACK;
RS8:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),3,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),3,1)))*(100);
STICKLINE((RS8 < 25),60,40,2,0),COLORBLUE;
RS13:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),5,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),5,1)))*(100);
STICKLINE((RS13 < 25),30,10,2,0),COLORLIGREEN;
RS21:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),8,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),8,1)))*(100);
STICKLINE((RS21 < 25),0,-20,2,0),COLORWHITE;
RS131:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),13,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),13,1)))*(100);
STICKLINE((RS131 < 25),-30,-50,2,0),COLORFF00FF;
RS211:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),21,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),21,1)))*(100);
STICKLINE((RS211 < 25),-60,-80,2,0),COLORRED;
副图2
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);
STICKLINE(1,110,0,4,0),COLORLIRED;
STICKLINE(1,-100,-200,4,0),COLORGREEN;
STICKLINE(1,-100,0,4,0),COLORYELLOW;
筹码集中:=100*(1-WINNER(CLOSE)),COLORLIGRAY,LINETHICK2;
机构拉升筹码:=100*(C-LLV(L,3))/(HHV(C,3)-LLV(L,3)),COLORLIMAGENTA,LINETHICK2;
T2:=(机构拉升筹码);
DRAWBAND(T2-200,RGB(250,0,0),-200,RGB(80,255,80));
MA5:=MA(CLOSE,2);
MA10:=MA(CLOSE,5);
MA20:=MA(CLOSE,8);
A1:=IF(C>=MA5,1,-1);
A2:=IF(C>=MA10,1,-1);
A3:=IF(C>=MA20,1,-1);
A4:=IF(MA5>=REF(MA5,1),1,-1);
A5:=IF(MA10>=REF(MA10,1),1,-1);
A6:=IF(MA20>=REF(MA20,1),1,-1);
趋势:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;
主升浪:趋势>=50,COLOR0000FF,POINTDOT,NODRAW;
↓:趋势<50,COLORFFFFFF,POINTDOT,NODRAW;
周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;
临界:IF(CROSS(98,趋势),1,0),COLOR00FF00,POINTDOT,NODRAW;
WKQY:=BARSLAST(CROSS(50,趋势))<MIN(BARSLAST(CROSS(趋势,1)),BARSLAST(CROSS(趋势,-1)));
挖坑:BETWEEN(趋势,-1,50) AND WKQY,COLOR00FFFF,POINTDOT,NODRAW;
AA2:=IF(挖坑,趋势,50);
DRAWBAND(趋势,RGB(250,20,220),0,RGB(0,0,0));
AA:=REF(CLOSE,1);
BBB2:=SMA(MAX(CLOSE-AA,0),13,1)/SMA(ABS(CLOSE-AA),10,1)*1000;
HHH2:=BBB2-LLV(BBB2,5);
CCC2:=LLV(BBB2,5)-BBB2;
QQ2:=(MA(HHH2,3)*3+HHH2*13)/13;
SS2:=(MA(CCC2,3)*3+CCC2*13)/13;
GG2:=MA(HHH2,3);
MM2:=MA(CCC2,3);
WW2:=IF(QQ2< GG2,SS2,MM2);
EE2:=IF(SS2< MM2,GG2,QQ2);
买:(IF(EE2-WW2<5,200,0))*0.2-100,COLORFF00FF,LINETHICK1;
RS2:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),2,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),2,1)))*(100);
STICKLINE((RS2 < 25),0,110,4,0),COLORFFE4E1;
VAR21:=MA(100*(CLOSE-LLV(CLOSE,2))/(HHV(HIGH,2)-LLV(LOW,2)),2)-0.001;
VAR20:=2*ABS(VAR21);
资21:=(IF(VAR21<0,VAR20,0));
STICKLINE(资21,110,80,2,0),COLORBLUE;
VAR22:=MA(100*(CLOSE-LLV(CLOSE,3))/(HHV(HIGH,3)-LLV(LOW,3)),3)-0.001;
VAR25:=2*ABS(VAR22);
资22:=(IF(VAR22<0,VAR25,0));
STICKLINE(资22,50,20,2,0),COLORBLACK;
VAR23:=MA(100*(CLOSE-LLV(CLOSE,5))/(HHV(HIGH,5)-LLV(LOW,5)),5)-0.001;
VAR24:=2*ABS(VAR23);
资23:=(IF(VAR23<0,VAR24,0));
STICKLINE(资23,-40,-10,2,0),COLORFF00FF;
VAR224:=MA(100*(CLOSE-LLV(CLOSE,8))/(HHV(HIGH,8)-LLV(LOW,8)),8)-0.001;
VAR256:=2*ABS(VAR224);
资54:=(IF(VAR224<0,VAR256,0));
STICKLINE(资54,-70,-100,2,0),COLORLIRED;
VAR255:=MA(100*(CLOSE-LLV(CLOSE,13))/(HHV(HIGH,13)-LLV(LOW,13)),13)-0.001;
VAR257:=2*ABS(VAR255);
资55:=(IF(VAR255<0,VAR257,0));
STICKLINE(资55,-130,-160,2,0),COLORRED;
XA_1:=(HIGH+LOW+CLOSE)/3;
XA_2:=(XA_1-MA(XA_1,14))/(0.015*AVEDEV(XA_1,14));
XA_3:=SMA(XA_2,3,1);
XA_4:=SMA(XA_3,3,1);
XA_5:=3*XA_3-2*XA_4;
XA_6:=EMA(XA_5,5);
趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), ,COLORFF6666,LINETHICK1;
DRAWTEXT(IF(CROSS(10,趋势线),1,0), 6,'$备钱'),COLORRED;
XA_7:=REF(XA_6,1);
XA_8:=REF(CLOSE,1);
XA_9:=SMA(MAX(CLOSE-XA_8,0),6,1)/SMA(ABS(CLOSE-XA_8),6,1)*100;
XA_10:=(XA_9-50)*5;
XA_11:=SMA(XA_10,3,1);
XA_12:=SMA(XA_11,3,1);
XA_13:=3*XA_11-2*XA_12;
XA_14:=EMA(XA_13,5);
XA_15:=REF(XA_14,1);
XA_16:=XA_14>XA_15;
XA_17:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
XA_18:=SMA(XA_17,3,1);
XA_19:=(XA_18-50)*5;
XA_20:=SMA(XA_19,3,1);
XA_21:=SMA(XA_20,3,1);
XA_22:=3*XA_20-2*XA_21;
XA_23:=EMA(XA_22,5);
XA_24:=REF(XA_23,1);
摸底:(XA_16 AND NOT(REF(XA_16,1)) AND (XA_14<(-100) AND XA_23<(-100)) AND XA_6<(-100))*50-100,LINETHICK1,COLORLIBLUE;
副图3
X_1:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
X_2:=SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3,1);
X_3:=SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1;
顶警戒:150,DOTLINE,COLORMAGENTA;
底戒线:(-150),DOTLINE,COLORGREEN;
STICKLINE(X_3>(-100),X_3,100,0,0),COLOR323232;
STICKLINE(X_3<(-100),X_3,100,0,0),COLOR9F9F5F;
STICKLINE(X_3<(-100),X_3,(-100),1,0),COLORYELLOW;
STICKLINE(X_3<(-120),X_3,(-120),1,0),COLORFF2400;
STICKLINE(X_3<(-140),X_3,(-140),1,0),COLORMAGENTA;
STICKLINE(X_3<(-150),X_3,(-150),1,0),COLORRED;
STICKLINE(X_3>100,X_3,100,1,0),COLORWHITE;
STICKLINE(X_3>120,X_3,120,1,0),COLORFF2400;
STICKLINE(X_3>140,X_3,140,1,0),COLORMAGENTA;
STICKLINE(X_3>150,X_3,150,1,0),COLORRED;
X_4:=LOW>MA(SLOPE(CLOSE,20)*5+CLOSE,10) AND LOW<MA(CLOSE,20);
X_5:=COUNT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),5)>=1;
神猎手:CROSS(CLOSE,REF(LLV(LOW,250/12),2)) AND X_4 AND X_5,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,GNBLOCK),COLOR00CCCC;
X_6:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
赶快买:CROSS(X_6,5),NODRAW;
秘密买:X_6<=5,NODRAW,COLOR00FF99;
尝试买:X_6<=13,NODRAW,COLORCYAN;
STICKLINE(尝试买,0,(-100),4,(-1)),COLORCYAN;
STICKLINE(秘密买,(-90),(-10),1,0),COLOR00FF99;
STICKLINE(赶快买,(-90),100,1,0),COLORMAGENTA;
STICKLINE(神猎手,(-90),90,1,0),COLORRED;
X_7:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
X_8:=CROSS(X_7,8) AND 尝试买;
X_9:=LOW<=REFDATE(REF(LLV(LOW,150),3),DATE) AND 尝试买;
超短买:X_8 OR X_9,NODRAW,COLOR0099FF;
STICKLINE(超短买,(-60),20,3,0),COLOR0090FF;
STICKLINE(超短买,(-55),15,1,(-1)),COLORRED;
X_10:=DMA((HIGH+LOW+CLOSE*2)/4.15,0.9);
X_11:=REF(EMA(X_10,3),1);
X_12:=KDJ.J<50 AND CLOSE>REF(CLOSE,3);
X_13:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
X_14:=CROSS(0,(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100);
X_15:=X_13<REF(X_13,1);
X_16:=MA(CLOSE,10)>REF(MA(CLOSE,10),1);
X_17:=FILTER(X_14 AND X_15 AND X_16,10);
X_18:=(2*CLOSE+HIGH+LOW)/4;
X_19:=MA(EMA((X_18-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5),1);
X_20:=REF(X_17,2) AND CROSS(CLOSE,EMA(CLOSE,5));
X_21:=X_19>REF(X_19,1) AND REF(X_19,1)<REF(X_19,2);
X_22:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_23:=IF(CLOSE>OPEN,X_22*(HIGH-LOW),IF(CLOSE<OPEN,X_22*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
X_24:=IF(CLOSE>OPEN,X_22*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,X_22*(HIGH-LOW),VOL/2));
X_25:=KDJ.J<20;
X_26:=X_23>X_24*6 AND X_25;
X_27:=CROSS(CLOSE,X_11) AND X_12;
X_28:=X_20 AND X_21;
短爆买:尝试买 AND (X_26 OR X_27 OR X_28),NODRAW,COLORRED;
STICKLINE(短爆买,0,70,3,0),COLORRED;
DRAWTEXT(短爆买,40,1207),COLORYELLOW;
DRAWTEXT(超短买,(-20),1208),COLORWHITE;
DRAWTEXT(赶快买,85,1209),COLORGREEN;
DRAWTEXT(神猎手,60,1210),COLORWHITE;
【短线趋势】:SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1,COLORYELLOW,LINETHICK2;
IF(X_3<=REF(X_3,1),X_3,DRAWNULL),COLORFF2400,LINETHICK2;
X_29:=X_3>REF(X_3,1);
X_30:=X_3<=REF(X_3,1);
DRAWICON(X_29 AND REF(NOT(X_29),1),X_3,1);
DRAWICON(X_30 AND REF(NOT(X_30),1),X_3,2);