主图
MAA5:MA(C,5),COLORWHITE;
MAA10:MA(C,10),COLORGREEN;
MAA30:MA(C,30),COLORMAGENTA,LINETHICK2;
稳赢:IF(MAA10>MAA30,MAA10,MAA30),COLORYELLOW;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW*0.99,'进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
A:=BARSCOUNT(C);
AH:=HHV(H,200);
AL:=LLV(L,200);
A0:=(AH-AL)/40;
B1:=L-A0;
STICKLINE((A+0)/34=FLOOR((A+0)/34),B1,B1-1.5*A0,3,0),COLORF00FF0;
DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B1-1*A0,'时间窗'),COLORWHITE;
ZZ:=(HHV(H,3)+LLV(L,3))/2;
A00:=IF(C>ZZ,VOL,0);
B:=IF(C<ZZ,VOL,0);
总0:=(A00-B);
HBBD:=EMA(总0,3)/SUM(VOL,5)*100,LINETHICK;
BBD:=HBBD;
BBD1:=REF(BBD,1)<0 AND BBD>REF(BBD,1) AND BBD>0;
YUWEI:=MA(CLOSE,1)-MA(CLOSE,6);
LDW:=YUWEI>0 AND YUWEI>REF(YUWEI,1) AND REF(YUWEI,1)<0;
XG:=BBD1 AND LDW;
N1:=6;
N2:=12;
LC:=REF(CLOSE,1);
RSI11:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RS1:=CROSS(RSI1,RSI2);
RS2:=CROSS(RSI1,50);
RS3:=CROSS(RSI2,50);
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD:=2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
UA:=X2;
UB:=X1;
DR:=CROSS(UA,UB);
DRAWTEXT(RS2 AND FILTER(买=1,5) AND XG AND DR,LOW*0.95,'牛'),COLORRED;
DRAWTEXT(XG AND DR,LOW*0.90,'买'),COLORGREEN;
ZLCM:=EMA((WINNER(CLOSE) * 70),3);
SHCM:=EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3);
主力控盘:=((ZLCM / (ZLCM + SHCM)) * 100);
AA:=主力控盘>50 AND REF(主力控盘,1)<50;
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
A10:=CROSS(控盘,0);
无庄控盘:=IF(控盘<0,控盘,0);
开始控盘:=IF(A10,5,0);
有庄控盘:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0);
VAR2:=100*WINNER(CLOSE*0.95);
BB:=VAR2>50 AND COST(85)<CLOSE AND 控盘>0;
DRAWTEXT(AA AND BB,LOW*0.85,'起'),COLORFF00FF;
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORYELLOW,LINETHICK1;
魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1),COLOR00FF00;
魔王:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),1,X),COLOR00FF00;
TJ0:=X=魔王;
TJ1:=X=魔鬼;
TJ2:=X<REF(X,1);
TJ3:=X>REF(1,X);
JRS1:=DRAWICON(TJ1
AND TJ2,X,1);
JRS2:=DRAWICON(TJ0 AND
TJ3,X,2);
DRAWICON(FILTER(JRS1>0,1),L*0.97,5);
DRAWICON(FILTER(JRS2>0,1),H*1.02,3);
TTJ:=BARSLAST((VOL=HHV(VOL,20)));
K0:=TTJ=0;
K1:=SUMBARS(K0,1);
量能平台:STICKLINE(K1<=30,REF(C,K1-1)*1.002,REF(C,K1-1),8,0),COLORRED;
副图1
VAR1:=(HHV(HIGH,9)-LLV(LOW,9));
VAR2:=(HHV(HIGH,9)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,9));
VAR4:=VAR2/VAR1*100-70 ;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*C+H+L)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IF(VAR9>100,VAR9-100,0);
VARA:=HHV(HIGH,34);
防线B:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,8);
B1:=EMA(防线B,5);
★乌云翻滚:IF(防线B>65 AND 防线B<80 AND 防线B-B1<0,90,80),STICK,LINETHICK2,COLORF0000F;
80,STICK,LINETHICK2,COLOR000000;
丰收在望:IF(防线B>70 AND 防线B-B1>=0,79,69),STICK,LINETHICK2,COLORF00FF0;
69,STICK,LINETHICK2,COLOR000000;
冰山沉船:IF(防线B>26 AND 防线B<65 AND 防线B-B1<0,58,48),STICK,LINETHICK2,COLORWHITE;
48,STICK,LINETHICK2,COLOR000000;
★守仓待涨:IF(防线B>47 AND 防线B<70 AND 防线B-B1>=0,47,37),STICK,LINETHICK2,COLORYELLOW;
37,STICK,LINETHICK2,COLOR000000;
青龙戏水:IF(防线B>5 AND 防线B<35 AND 防线B-B1<0,36,26),STICK,LINETHICK2,COLORFFF000;
26,STICK,LINETHICK2,COLOR000000;
★开仓进宝:IF(防线B>17 AND 防线B<59 AND 防线B-B1>=0,25,15),STICK,LINETHICK2,COLOR00FF00;
15,STICK,LINETHICK2,COLOR000000;
VARX1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VARX2:=SMA(VARX1,9,1)+100;
VARX3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARX4:=SMA(VARX3,3,1);
VARX5:=SMA(VARX4,3,1)+100;
VARX6:=VARX5-VARX2;
100,COLORYELLOW;
逃顶: IF(VARX6>100,80,100) ,LINETHICK2, COLOR00FF00;
★空仓观望★:IF( 逃顶=0,15,-10),STICK,LINETHICK7,COLORRED;
无限风光:IF(防线B-B1>0,防线B,0),POINTDOT,LINETHICK5,COLORRED;
泰坦尼克:IF(防线B-B1<0,B1,0),POINTDOT,LINETHICK5,COLORFFF000;
{VARB1:=ZIG(3,13);
乌云盖顶:IF( REF(VARB1,2)<REF(VARB1,1) AND VARB1<REF(VARB1,1),
55,100),COLORBLUE;
猎豹出击: IF(REF(VARB1,2)>REF(VARB1,1) AND VARB1>REF(VARB1,1)
, 45,0),COLORRED;}
{DRAWICON(CROSS(B1 ,16) ,20 ,3 );}
抄底:IF(VARX6<20,20,0) ,LINETHICK2, COLORRED;
★春种:IF(CROSS(B1 ,16) ,B1+12 ,0 ),LINETHICK2,COLORYELLOW;
★丰收:IF(CROSS(B1 ,防线B )AND B1>74 ,60,100 ),LINETHICK2,COLORBLUE;
{VARB1:=ZIG(3,13);
猎豹出击: IF(REF(VARB1,2)>REF(VARB1,1) AND VARB1>REF(VARB1,1)
, 45,0),COLORRED;};
副图2
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE;
A10:=CROSS(控盘,0);
散户割肉:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
开始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;
主力拉升:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF;
猛烈拉抬:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;
黑庄出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;
副图3
80,CIRCLEDOT;
20,CIRCLEDOT;
8,CIRCLEDOT;
0;100;
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*50;
AA: (EMA(VAR1,3))*2;
BB:MA(AA,3);
DRAWBAND(AA,RGB(150,0,150),BB,RGB(150,150,150));
STICKLINE(AA>=BB,53,47,4,0),COLOREE82EE;
STICKLINE(AA<BB,53,47,4,1),COLORB3EE3A;
STICKLINE(CROSS(AA,20),58,42,2,0),COLORB23AEE;
VAR2:8,COLORGREEN,LINETHICK0;
IF(CROSS(AA,VAR2),40,0),STICK,LINETHICK2;
DRAWICON(CROSS(AA,VAR2),40,13);
DRAWICON(CROSS(80,AA),80,14);
IF(AA<=8,5,0),STICK,COLORFF00FF,LINETHICK5;
STICKLINE(CROSS(80,AA),80,70,0.2,0),COLOR00FF00;
DRAWICON(CROSS(80,AA),70,2);
DRAWTEXT(CROSS(80,AA),68,'卖');
DRAWTEXT(CROSS(AA,VAR2),49,'买');
DRAWICON(CROSS(AA,20),30,1);
STICKLINE(CROSS(AA,20),20,30,0.2,0),COLORRED;
DRAWICON(CROSS(AA,20),20,13);
DRAWICON(CROSS(AA,VAR2),0,13);
DRAWTEXT(CROSS(AA,20),62,'加仓');