主图
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,
(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
量能饱和度:SAT,COLORYELLOW,NODRAW;
AA10:=MA(CLOSE,8),COLOR0000FF;
AA12:=MA(CLOSE,12),COLOR0000FF;
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
MA13:=MA(CLOSE,13);
DRAWBAND(AA10,RGB(180,0,0),AA12,RGB(0,158,0));
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
多头:MA(CLOSE,8),COLORFF59FF;
空头:MA(CLOSE,12),COLOR00FF00;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,(LOW* 0.99),'老鼠仓'),COLOR4080FF;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2
*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));
DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,(HIGH* 0.93),'▲金元宝'),COLORYELLOW;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'进'),COLORA6E500;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'逃'),COLOR1880FF;
VAR2:=LLV(LOW,27);
VAR3:=HHV(HIGH,34);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;
注意买:=IF((VAR4<10),80,100);
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
超跌:=IF(J<0,10,0);
BDDD:=LLV(J,2)=LLV(J,8);
买入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
{STICKLINE(CLOSE>OPEN,OPEN,LOW,0,1 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,1 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0,1 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0,1 ),COLOR00FF00;}
{3D天蓝}
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.7,0 ),COLORFF7700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.3,0 ),COLORFF9900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.8,0 ),COLORFFBB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.3,0 ),COLORFFCC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.8,0 ),COLORFFDD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.3,0 ),COLORFFEE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.1,0 ),COLORFFFF00;
{3D枣红}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.7,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.3,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.8,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.8,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.3,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.1,0) ,COLOR0000FF;
VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4)
AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4)
AND C>=REF(C,1) AND C>=REF(C,2);
STICKLINE(VAR9Q,C,(O+C)/2,2.7,0),COLOR000055;
STICKLINE(VAR9Q,C,(O+C)/2,2.3,0),COLOR000066;
STICKLINE(VAR9Q,C,(O+C)/2,1.8,0),COLOR000077;
STICKLINE(VAR9Q,C,(O+C)/2,1.3,0),COLOR000099;
STICKLINE(VAR9Q,C,(O+C)/2,0.8,0),COLOR0000BB;
STICKLINE(VAR9Q,C,(O+C)/2,0.3,0),COLOR0000DD;
STICKLINE(VAR9Q,C,(O+C)/2,0.1,0),COLOR0000FF;
VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
{3D粉红色}
STICKLINE(VARAQ,C,(O+C)/2,2.7,0),COLORFF11FF;
STICKLINE(VARAQ,C,(O+C)/2,2.3,0),COLORFF33FF;
STICKLINE(VARAQ,C,(O+C)/2,1.8,0),COLORFF55FF;
STICKLINE(VARAQ,C,(O+C)/2,1.3,0),COLORFF77FF;
STICKLINE(VARAQ,C,(O+C)/2,0.9,0),COLORFF99FF;
STICKLINE(VARAQ,C,(O+C)/2,0.3,0),COLORFFBBFF;
STICKLINE(VARAQ,C,(O+C)/2,0.1,0),COLORFFDDFF;
VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3))
OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4)
AND REF(C,1)!=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4)
AND C<REF(C,1) AND C<REF(C,2);
{3D银灰色}
STICKLINE(VARBQ,C,(O+C)/2,2.7,0),COLOR333333;
STICKLINE(VARBQ,C,(O+C)/2,2.3,0),COLOR555555;
STICKLINE(VARBQ,C,(O+C)/2,1.8,0),COLOR777777;
STICKLINE(VARBQ,C,(O+C)/2,1.3,0),COLOR999999;
STICKLINE(VARBQ,C,(O+C)/2,0.8,0),COLORBBBBBB;
STICKLINE(VARBQ,C,(O+C)/2,0.3,0),COLORDDDDDD;
STICKLINE(VARBQ,C,(O+C)/2,0.1,0),COLORFFFFFF;
VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4)
AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
STICKLINE(VARCQ,O,(O+C)/2,2.3,0),COLOR003300;
{ STICKLINE(VARCQ,O,(O+C)/2,2.7,0),COLOR00AAAA;
STICKLINE(VARCQ,O,(O+C)/2,1.5,0),COLOR00CCCC;
STICKLINE(VARCQ,O,(O+C)/2,0.5,0),COLOR00FFFF;};
XX1:=IF(MA(C,5)>MA(C,10),20,0);
XX2:=IF(MA(C,20)>MA(C,60),10,0);
XX3:=IF(KDJ.J>KDJ.K,10,0);
XX4:=IF(MACD.DIF>MACD.DEA,10,0);
XX5:=IF(MACD.MACD>0,10,0);
XX6:=IF(V>MA(V,60),10,0);
XX7:=IF(WINNER(C)>0.5,10,0);
XX8:=IF(C/REF(C,1)>1.03,10,0);
XX:=XX1+XX2+XX3+XX4+XX5+XX6+XX7+XX8;
DRAWTEXT_FIX(V>O,0.90,0.80,0,STRCAT('趋势评分:',STRCAT(CON2STR(XX,2),' '))),COLORFFFFFF;
副图1
DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);0;
AAA:=EMA((2*C+H+L)/4,3);
A1:=SLOPE(AAA*3-REF(AAA,3),3)+C;
DI:=(EMA(A1,5) - EMA(A1,10));
DE:=EMA(DI,3);
一级趋势:(DI+DE)/2,NODRAW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
周DIF:=("MACD.DIF#WEEK");
周DEA:=("MACD.DEA#WEEK");
周MACD:=2*(周DIF-周DEA);
二趋势:(DIF+DEA)/2,NODRAW;
三趋势:(周DIF+周DEA)/2,NODRAW;
STICKLINE(周MACD>REF(周MACD,1) AND 周MACD>0,0,周MACD,18,0),COLORMAGENTA;
STICKLINE(周MACD<REF(周MACD,1) AND 周MACD>0,0,周MACD,18,0),COLORWHITE;
STICKLINE(周MACD>REF(周MACD,1) AND 周MACD<0,0,周MACD,18,0),COLORCYAN;
STICKLINE(周MACD<REF(周MACD,1) AND 周MACD<0,0,周MACD,18,0),COLORBLUE;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,3.5,1),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,3.5,1),COLORLIRED;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,3.5,1),COLORWHITE;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,3.5,1),COLORCYAN;
DRAWBAND(周DIF,RGB(200,10,10),周DEA,RGB(10,10,128));
DRAWBAND(DIF,RGB(200,100,200),DEA,RGB(100,100,200));
{DRAWBAND(DI,RGB(200,50,100),DE,RGB(50,50,200));}
DIFX:EMA(CLOSE,12)-EMA(CLOSE,26);
DEAX:EMA(DIFX,9);
周DIFX:("MACD.DIF#WEEK");
周DEAX:("MACD.DEA#WEEK");
MA5:=MA(CLOSE,5);
MA60:=MA(CLOSE,60);
日趋势:(DIF+DEA)/2;
周趋势:(周DIF+周DEA)/2;
撑压A:IF(CROSS(DIFX,DEAX),DIFX,REF(DIFX,BARSLAST(CROSS(DEAX,DIFX)))),POINTDOT,COLORYELLOW,LINETHICK2;
撑压B:IF(CROSS(DEAX,DIFX),DIFX,REF(DIFX,BARSLAST(CROSS(DIFX,DEAX)))),POINTDOT,COLORYELLOW,LINETHICK2;
DIIFF:=(EMA(A1,5) - EMA(A1,10));
DEAA:=EMA(DIIFF,3);
K线动能:=(DIIFF-DEAA),COLORYELLOW;
STICKLINE((K线动能 > 0),0,K线动能,1.5,0),COLORYELLOW;
STICKLINE((K线动能 > 0),0,K线动能*0.9,1.5,0),COLORYELLOW;
STICKLINE((K线动能 > 0),0,K线动能*0.8,1.5,0),COLORYELLOW;
STICKLINE((K线动能 > 0),0,K线动能*0.7,1.5,0),COLOR0000FF;
STICKLINE((K线动能 > 0),0,K线动能*0.6,1.5,0),COLOR0000FF;
STICKLINE((K线动能 > 0),0,K线动能*0.5,1.5,0),COLOR0000FF;
STICKLINE((K线动能 > 0),0,K线动能*0.4,1.5,0),COLOR0000FF;
STICKLINE((K线动能 > 0),0,K线动能*0.3,1.5,0),COLOR0000FF;
STICKLINE((K线动能 > 0),0,K线动能*0.2,1.5,0),COLOR0000FF;
STICKLINE((K线动能 > 0),0,K线动能*0.1,2,0),COLOR0000FF;
STICKLINE((K线动能 < 0),0,K线动能,1.5,0),COLOR00FF00;
STICKLINE((K线动能 < 0),0,K线动能*0.9,1.5,0),COLOR00FF00;
STICKLINE((K线动能 < 0),0,K线动能*0.8,1.5,0),COLOR00FF00;
STICKLINE((K线动能 < 0),0,K线动能*0.7,1.5,0),COLORFF9900;
STICKLINE((K线动能 < 0),0,K线动能*0.6,1.5,0),COLORFF9900;
STICKLINE((K线动能 < 0),0,K线动能*0.5,1.5,0),COLORFF9900;
STICKLINE((K线动能 < 0),0,K线动能*0.4,1.5,0),COLORFF9900;
STICKLINE((K线动能 < 0),0,K线动能*0.3,1.5,0),COLORFF9900;
STICKLINE((K线动能 < 0),0,K线动能*0.2,1.5,0),COLORFF9900;
STICKLINE((K线动能 < 0),0,K线动能*0.1,1.5,0),COLORFF9900;
选股:周DIFX>=REF(周DIFX,1) AND 周MACD>REF(周MACD,1) AND CROSS(DIF,DEA);
副图2
X_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_2:=EMA(CLOSE,89);
X_3:=EMA(EMA(EMA(HIGH,13),13),13);
X_4:=EMA(EMA(EMA(HIGH,5),5),5);
X_5:=IF(CLOSE>OPEN,CLOSE,OPEN);
X_6:=IF(CLOSE>OPEN,OPEN,CLOSE);
X_7:=LLV(X_5,4);
X_8:=HHV(X_6,4);
X_9:=X_5>=X_7 AND X_6<=X_7 AND X_5>=X_8 AND X_6<=X_8;
X_10:=REF(X_5,1)>=X_7 AND REF(X_6,1)<=X_7 AND REF(X_5,1)>=X_8 AND REF(X_6,1)<=X_8;
X_11:=REF(X_5,2)>=X_7 AND REF(X_6,2)<=X_7 AND REF(X_5,2)>=X_8 AND REF(X_6,2)<=X_8;
X_12:=REF(X_5,3)>=X_7 AND REF(X_6,3)<=X_7 AND REF(X_5,3)>=X_8 AND REF(X_6,3)<=X_8;
X_13:=X_9 AND X_10 AND X_11 AND X_12;
X_14:=REF(X_8,BARSLAST(X_13));
X_15:=(REF(OPEN,5)+REF(CLOSE,5))/2;
X_16:=(HIGH+LOW+CLOSE+OPEN)/4;
X_17:=MAX(X_15,MAX(X_16,HHV(HIGH,5)));
X_18:=MIN(X_15,MIN(X_16,LLV(LOW,5)));
DRAWKLINE(X_17,X_15,X_18,X_16);
X_19:=X_17=X_15;
X_20:=X_19;
X_21:=REF(X_17,BARSLAST(X_20));
X_22:=EMA(CLOSE,5)-EMA(CLOSE,55);
X_23:=EMA(X_22,10);
X_24:=X_22-X_23;
X_25:=X_17>X_21*0.98 AND CLOSE>X_4 AND CLOSE>X_3 AND CLOSE>X_2 AND X_4>=REF(X_4,1);
STICKLINE(X_25,X_17,X_18,3.2,1),COLORMAGENTA;
STICKLINE(X_25,X_15,X_16,3.2,0),COLORMAGENTA;
STICKLINE(X_25,X_15,X_16,3,0),COLORMAGENTA;
STICKLINE(X_25,X_15,X_16,1.9,0),COLORMAGENTA;
STICKLINE(X_25,X_15,X_16,1.1,0),COLORMAGENTA;
STICKLINE(X_25,X_15,X_16,0.3,1),COLORMAGENTA;
STICKLINE(X_25<1,X_17,X_18,3.2,1),COLORLIBLUE;
STICKLINE(X_25<1,X_15,X_16,3.2,0),COLORLIBLUE;
STICKLINE(X_25<1,X_15,X_16,2,0),COLORLIBLUE;
STICKLINE(X_25<1,X_15,X_16,1,1),COLORLIBLUE;
X_26:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_27:=X_26>9.85 AND NOT(OPEN=CLOSE) AND X_1>4;
X_28:=X_26>9.85 AND NOT(OPEN=CLOSE) AND X_1>4 AND X_1<9.3;
X_29:=REF(HIGH,BARSLAST(X_28));
X_30:=REF(LOW,BARSLAST(X_28));
STICKLINE(HIGH,X_29-X_29*0.001,X_29,3,0),COLORWHITE;
X_31:=X_26>9.85 AND NOT(OPEN=CLOSE) AND X_1>4 AND X_1<9.3;
X_32:=(CLOSE-REF(CLOSE,BARSLAST(X_31)))/REF(CLOSE,BARSLAST(X_31))*100;
B:REF(X_8,BARSLAST(X_13)),NODRAW;
A:REF(HIGH,BARSLAST(X_28)),NODRAW;
S:REF(X_17,BARSLAST(X_20)),NODRAW;
X_33:=X_18=REF(X_18,1) AND X_17<REF(X_17,1) AND X_19;
X_34:=X_18=REF(X_18,1) AND X_18=REF(X_18,2) AND X_18=REF(X_18,3) AND X_18=REF(X_18,4);
X_35:=(X_17+X_18)/2*1.02;
X_36:=(X_17+X_18)/2*0.98;
STICKLINE(X_34,X_35,X_36,3.2,1),COLORGREEN;
STICKLINE(X_34,X_35,X_36,2.6,0),COLORGREEN;
STICKLINE(X_34,X_35,X_36,2.6,0),COLORGREEN;
STICKLINE(X_34,X_35,X_36,0.5,1),COLORGREEN;
STICKLINE(S>X_17 AND REF(S<X_17,1),X_15,X_16,1,0),COLORBLUE;
VZF:VOL/REF(VOL,1)*100-100,NODRAW;
X_37:=X_1>=9.84 AND REF(X_1<9.84,1) AND REF(X_1<9.84,2);
STICKLINE(X_1>=9.84,X_35,X_36,3.4,0),COLOR00AAFF;
STICKLINE(X_1>=9.84,X_35,X_36,2,0),COLOR00CCFF;
STICKLINE(X_1>=9.84,X_35,X_36,0.5,0),COLORYELLOW;
STICKLINE(X_37,X_35,X_36,0.5,0),COLORRED;
STICKLINE(CLOSE,X_21,X_21,3,0),COLORGREEN,LINETHICK3;
涨停力度S:X_18/S,NODRAW;
涨停力度A:X_18/A,NODRAW;
涨停力度B:X_18/B,NODRAW;
BS:ABS(S-B)/B,NODRAW;
AB:ABS(A-B)/B,NODRAW;
AS:ABS(A-S)/S,NODRAW;
X_38:=B=REF(B,1);
X_39:=BARSLAST(NOT(X_38));
STICKLINE(X_8,X_14,X_14,3,0),COLORYELLOW,LINETHICK;
DRAWNUMBER(X_38>0,B*0.99,X_39),COLORYELLOW;
副图3
DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);
KK:=IF("KDJ.J"<-1,10,0);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCIXZ1:=EMA(EMA(EMA(CCI,2),2),2);
CCIXZ2:=EMA(EMA(EMA(CCI,3),2),2);
X:=(CROSS(CCIXZ1,CCIXZ2) OR (CCIXZ1 >=CCIXZ2))
AND CCIXZ1>=-101 AND CCIXZ1>=REF(CCIXZ1,1)
AND REF(CCIXZ1,1)<-101 ;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
TJ:=CROSS(9.9,KK);
K1:= EMA(EMA(EMA(K,2),2),2);
D1:= EMA(EMA(EMA(D,2),2),2);
J1:= EMA(EMA(EMA(J,2),2),2);
Y:= J1 > REF(J1,1) ;
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
LL:=EMA(VOL,13);
ZJ:=EMA(AMOUNT,13);
GL:=((ZJ /LL) / 100);
TC:=(((CLOSE -GL) / GL) * 100);
BB:=ABS(L-C)>ABS(H-C)*5;
HJ:=((TC < (0)) AND BB),COLORRED;
ZZ:=HJ AND RSVV<VARB2-2;
XG:ZZ>0 AND TJ ;