主图
MA5:MA(CLOSE,5),COLORMAGENTA;
MA8:MA(CLOSE,8),COLORBLUE;
MA10:MA(CLOSE,10),COLORCYAN;
MA13:MA(CLOSE,13),COLORGREEN;
MA16:MA(CLOSE,16),COLORYELLOW;
MA20:MA(CLOSE,20),COLORLIRED;
MA24:MA(CLOSE,24),COLORRED;
X_1:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
X_2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.2);
X_3:=IF(FINANCE(3)=3 OR FINANCE(3)=4,X_2,X_1);
STICKLINE(X_3,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(X_3,HIGH,LOW,0,0),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.07,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,FGBLOCK);
副图1
X_1:=MACD.MACD;
X_2:=HHVBARS(X_1,BARSLAST(X_1<0)+1);
X_3:=CROSS(BACKSET(CROSS(0,X_1),REF(X_2,1)+2),0.5);
X_4:=CROSS(BACKSET(CROSS(0,X_1) OR (ISLASTBAR AND X_1>0),REF(X_2,1)+2),0.5);
X_5:=DRAWLINE(X_3,X_1,REF(X_3,1),REF(X_1,1),1);
STICKLINE(X_1>0,0,X_1,1.8,0),COLORAA00AA;
STICKLINE(X_1<0,0,X_1,1.8,0),COLORLICYAN;
X_6:=LLVBARS(X_1,BARSLAST(X_1>0)+1);
X_7:=CROSS(BACKSET(CROSS(X_1,0),REF(X_6,1)+2),0.5);
X_8:=BARSLAST(FILTERX(CROSS(0,X_1),BARSCOUNT(CLOSE)));
X_9:=DRAWLINE(X_7,X_1,REF(X_7,1),REF(X_1,1),1);
STICKLINE(X_1<0 AND X_1<X_9 AND X_9<0,X_1,X_9,1,0),COLORBLUE;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;
DEA:EMA(DIF,9),COLORGREEN,LINETHICK2;
X_10:=BARSLAST(REF(CROSS(DIF,DEA),1));
X_11:=REF(CLOSE,X_10+1)>CLOSE AND DIF>REF(DIF,X_10+1) AND CROSS(DIF,DEA);
底背:DRAWLINE(X_10=0,DEA,X_11,DEA,0),COLORRED,LINETHICK2;
X_12:=BARSLAST(REF(CROSS(DEA,DIF),1));
X_13:=REF(CLOSE,X_12+1)<CLOSE AND REF(DIF,X_12+1)>DIF AND CROSS(DEA,DIF);
顶背:DRAWLINE(X_12=0,DEA,X_13,DEA,0),COLORBLUE,LINETHICK2;
MACD1:(DIF-DEA)*2,COLORSTICK,COLORLIBLUE;
X_14:=COUNT(MACD1>0,30)=0 AND BARSCOUNT(MACD1=LLV(MACD1,30))>=15 AND DYNAINFO(4)>0 AND HHV(MACD1,5)>REF(MACD1,12) AND MACD1>REF(MACD1,1) AND (REF(MACD1,2)=LLV(MACD1,5) OR REF(MACD1,1)=LLV(MACD1,5)) AND REF(MACD1,1)>REF(MACD1,15);
DRAWICON(X_14,X_1*1.01,25);
DRAWTEXT(X_14,0*0.1,3),COLORGREEN;
X_15:=COUNT(MACD1>0,10)=0 AND BARSCOUNT(MACD1=LLV(MACD1,10))>=6 AND DYNAINFO(4)>0 AND HHV(MACD1,3)>REF(MACD1,7) AND MACD1>REF(MACD1,1) AND (REF(MACD1,2)=LLV(MACD1,5) OR REF(MACD1,1)=LLV(MACD1,5)) AND REF(MACD1,1)>REF(MACD1,7);
DRAWICON(X_15,X_1*1.01,26);
DRAWICON(X_15,X_1*1.01,26);
X_16:=CROSS(DEA,0) AND DIF>0;
X_17:=21;
X_18:=FILTER(BACKSET(FILTER(REF(X_1,X_17)=HHV(X_1,2*X_17+1),X_17),X_17+1),X_17);
TOP21:DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(X_18))+1,X_1,ISLASTBAR,REF(X_1,BARSLAST(X_18)),1),COLORGREEN;
X_19:=CROSS(DEA,DIF) AND DEA>0 AND DIF>0;
X_20:=CROSS(DIF,DEA) AND COUNT(X_19=1,6)>=1 AND DIF>0 AND DEA<0.55 AND X_1>REF(X_1,2);
DRAWICON(X_20,0-0.05,34);
副图2
AA:=IF(CLOSE<0,0,SUM(IF(CLOSE>REF(CLOSE,1) AND VOL>REF(VOL,1),VOL,0),2));
BB:=IF(CLOSE<0,0,SUM(IF(CLOSE<REF(CLOSE,1) AND VOL<REF(VOL,1),VOL,0),2));
DD:=IF(CLOSE<0,0,AA-BB);
X0:=IF(CLOSE<0,0,IF(DD>0 AND (CLOSE/REF(CLOSE,1)-1)*100>0,AMOUNT/100,0));
X1:=IF(CLOSE<0,0,IF(DD<0 AND (CLOSE/REF(CLOSE,1)-1)*100<0,AMOUNT/100,0));
DDX:IF(CLOSE<0,0,(X0-X1)/CAPITAL*CLOSE/100),NODRAW;
选股:IF(CLOSE<0,0,DDX>=0 AND (CLOSE/REF(CLOSE,1)-1)*100>4),NODRAW;
DRAWTEXT(选股,DDX*1.06,'★买'),LINETHICK2,COLORYELLOW;
STICKLINE(DDX>0,0,DDX,3.5,0),COLOR00AAAA;
STICKLINE(DDX>0,0,DDX,3,0),COLOR00BBBB;
STICKLINE(DDX>0,0,DDX,2.5,0),COLOR00CCCC;
STICKLINE(DDX>0,0,DDX,2,0),COLOR00DDDD;
STICKLINE(DDX>0,0,DDX,1,0),COLOR00EEEE;
STICKLINE(DDX>0,0,DDX,0.3,0),COLOR00FFFF;
STICKLINE(DDX<0,0,DDX,3.5,0),COLORFF9900;
STICKLINE(DDX<0,0,DDX,3,0),COLORFFAA00;
STICKLINE(DDX<0,0,DDX,2.5,0),COLORFFBB00;
STICKLINE(DDX<0,0,DDX,2,0),COLORFFCC00;
STICKLINE(DDX<0,0,DDX,1,0),COLORFFDD00;
STICKLINE(DDX<0,0,DDX,0.3,0),COLORFFEE00;
周净流入:SUM(X0-X1,5),COLOR6622FF,NODRAW;
DDX1:=EMA(DDX,60)*15.367;
DDX2:=MA(DDX1,5);
DDX3:=MA(DDX1,10);
天:=COUNT(X0-X1>0,5);
SNJW:="KDJ.J" - REF("KDJ.J",1) > 30 AND CLOSE / REF(CLOSE,1) > 1.043 AND "MACD.MACD" > 0 AND "MACD.DEA" > 0;
DRAWTEXT(SNJW,DDX*0.6,'★九稳'),LINETHICK2,COLORYELLOW;
上影部分:=(H-C)/(H-L);
实体部分:=(C-O)/(H-L);
下影部分:=(O-L)/(H-L);
拉中:=实体部分*0.8*V;
拉上:=上影部分*0.2*V;
拉下:=下影部分*0.2*V;
洗中:=实体部分*0.2*V;
洗上:=上影部分*0.8*V;
洗下:=下影部分*0.8*V;
Z:=拉中+拉上+拉下;
F:=洗中+洗上+洗下;
燃料:(Z-F)/10000,NODRAW;
温度:(C-MA(C,24))/MA(C,240)*100,NODRAW;
STICKLINE( 燃料>0,0,DDX/2,2,0),COLORRED;
{黑马庄现}
VAR260:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR270:=EMA(VAR260,100);
VAR280:=2*(VAR260-VAR270);
VAR290:=POW(VAR280,3)*0.1+POW(VAR280,1);
龙抬头:=IF( VAR280>0.1,VAR290,0)*5;
TSWR:=REF(龙抬头,1)=0 AND REF(龙抬头,2)=0 AND REF(龙抬头,3)=0 AND 龙抬头>0;
SC:=100*(CLOSE-MA(CLOSE,26));
MAO:=EMA(SC,9);
VAR1G:=(CLOSE*2+HIGH+LOW)/4;
VAR2G:=EMA(VAR1G,13)-EMA(VAR1G,26);
VAR3G:=EMA(VAR2G,2);
A11:=(-2)*(VAR2G-VAR3G)*10000;
B11:=2*(VAR2G-VAR3G)*10000;
必涨A:=CROSS(B11,A11);
DRAWTEXT(TSWR>0.1 AND CROSS(SC,MAO),0,'↑ 马'),COLORMAGENTA;
DRAWTEXT(TSWR>0.1 AND 必涨A,0,'↑庄'),COLORMAGENTA;
副图3
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*240/FROMOPEN*0.9,5,1);
DIFF:(EMA(V2,12)-EMA(V2,26))*100/EMA(V2,26),COLORRED;
DEA:EMA(DIFF,9),COLORRED;
DIF:IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL),COLORGREEN;
ADEA:IF(DEA<REF(DEA,1),DEA,DRAWNULL),COLORGREEN;
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
DRAWKLINE(V2*1.01*10,REF(V2,1)*10,REF(V2,1)*0.99*10,V2*10);
当日DDX:DDX,NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),REF(V2,1),MAX(V2,V2*120/FROMOPEN*0.8),0,0),COLORLIMAGENTA;
STICKLINE(CURRBARSCOUNT=1 AND C<REF(C,1),REF(V2,1),MIN(V2,V2*120/FROMOPEN*0.8),0,0),COLORLIGREEN;
DRAWTEXT(DIFF<-200,DIFF,'异动'),COLORMAGENTA;
DRAWTEXT(CROSS(V2,REF(V2,1)*1.2) AND LONGCROSS(CLOSE,REF(C,1)*1.025,4) AND DDX/REF(MA(DDX,5),1)>2,REF(V2,1),'★'),COLORMAGENTA;
DRAWICON(CROSS(DIFF,DEA),DEA,1);
X:=(3*C+L+O+H)/6;
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORFF00FF,LINETHICK2;
注意:ABS(DIFF)-ABS(REF(DIFF,1))>28 AND REF(多空线,1)<多空线 AND DIFF<0;
DRAWTEXT(注意,DIFF,'注意'),COLORMAGENTA;
{强攻:REF(DIFF,1)<REF(DIFF,2) AND REF(DIFF,1)<DIFF AND REF(V2*1.01,1)-REF(V2,2)*0.99<0 AND V2*1.01-REF(V2,1)*0.99>0 AND REF(DIFF,1)>REF(DEA,1);
DRAWICON(强攻,DEA,25);}
今日量:V2*1.01-REF(V2,1)*0.99,NODRAW;{K线柱大小}
昨日量:REF(V2*1.01,1)-REF(REF(V2,1)*0.99,1),NODRAW;
倍量:今日量/ABS(昨日量),NODRAW;