N:=1;S:=1;
阳涨幅:=4;
阳倍量:=1.5;
单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;
DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00FFFF;
高不破价:=REF(C,BARSLAST(单阳));
中不破价:=REF((C+L)/2,BARSLAST(单阳));
低不破价:=REF(L,BARSLAST(单阳));
单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,4,0),COLORRED;
DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;
两天:=LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价;
一般:=LLV(L,BARSLAST(单阳)-2)>低不破价 OR LLV(L,BARSLAST(单阳)-2)=低不破价;
一般选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 一般,低不破价,低不破价,2,0),COLORWHITE;
较强:=LLV(L,BARSLAST(单阳)-2)>中不破价 OR LLV(L,BARSLAST(单阳)-2)=中不破价;
较强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 较强,中不破价,中不破价,2,0),COLORMAGENTA;
最强:=LLV(L,BARSLAST(单阳)-3)>高不破价 OR LLV(L,BARSLAST(单阳)-2)=高不破价;
最强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 最强,高不破价,高不破价,4,0),COLORYELLOW;
现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE;
VARR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,VARR1*(HIGH-LOW),IF(CLOSE<OPEN,VARR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
成交量比:=买盘/VOL*100;
主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
主力筹码集中度:=WINNER(C)*100;
散筹筹码集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100;
量筹买点:=主力筹码集中度>主力持仓 AND 主力持仓>散筹筹码集中度
AND 成交量比>89.9 AND FINANCE(7)<2500000000 AND DYNAINFO(7)>0;
DRAWTEXT(量筹买点,REF(CLOSE,1),'量筹'),COLOR000055;
STICKLINE(量筹买点,CLOSE,O,2.8,0),COLOR000055;
STICKLINE(量筹买点,CLOSE,O,2,0),COLOR000088;
STICKLINE(量筹买点,CLOSE,O,1.5,0),COLOR0000AA;
STICKLINE(量筹买点,CLOSE,O,1,0),COLOR0000CC;
STICKLINE(量筹买点,CLOSE,O,0.5,0),COLOR0000EE;
D7:="MACD.DIF#WEEK"-"MACD.DEA#WEEK";
D8:="MACD.DIF#MONTH"-"MACD.DEA#MONTH";
黑码抄底:=CROSS("KDJ.J#WEEK"(9,3,3),0) AND D8>0 OR CROSS("KDJ.J#MONTH"(9,3,3),0) AND D7>0;
STICKLINE(黑码抄底,CLOSE,OPEN,3,0),COLORYELLOW;{KDJ和MACD的周月之间的配合}
DRAWTEXT(黑码抄底,LOW-0.03,'黑码'),COLORMAGENTA;
STICKLINE(黑码抄底,CLOSE,OPEN,3.2,0),COLOR000099;
STICKLINE(黑码抄底,CLOSE,OPEN,2.6,0),COLOR0000AA;
STICKLINE(黑码抄底,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(黑码抄底,CLOSE,OPEN,1.8,0),COLOR0000DD;
STICKLINE(黑码抄底,CLOSE,OPEN,1.3,0),COLOR0000FF;
STICKLINE(黑码抄底,CLOSE,OPEN,0.5,0),COLORCC66FF;
FH11:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
FH21:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;
FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);
FH5:=FH11 AND FH21 AND FH3 AND FH4;
FH6:=FH11 AND FH21 AND FH3 AND FH4 AND ABS((MACD.DIF-MACD.DEA)/C)<0.018;
FH7:=FH11 AND FH21 AND FH3 AND FH4 AND MACD<0.10;
腾:=FH5 OR FH6 OR FH7;
DRAWTEXT(腾,(LOW * 0.985),'腾'),COLOR00FFFF;
STICKLINE(腾,CLOSE,O,2.8,0),COLOR00FFFF;
STICKLINE(腾,CLOSE,O,2,0),COLOR0077FF;
STICKLINE(腾,CLOSE,O,1.5,0),COLOR0099FF;
STICKLINE(腾,CLOSE,O,1,0),COLOR00AAFF;
STICKLINE(腾,CLOSE,O,0.5,0),COLOR00CCFF;
M月:=CROSS("MACD.DIF#MONTH","MACD.DEA#MONTH");DRAWTEXT(M月,LOW-0.04,'M月'),COLORMAGENTA;
K月:DRAWTEXT(CROSS("KDJ.K#MONTH"(9,3,3),"KDJ.D#MONTH"(9,3,3)) ,LOW-0.05,'K月'),COLORMAGENTA;
K周:DRAWTEXT(CROSS("KD.K#WEEK"(9,3,3),"KD.D#WEEK"(9,3,3)) ,LOW-0.08,'K周'),COLORRED;
M周:=CROSS("MACD.DIF#WEEK","MACD.DEA#WEEK");DRAWTEXT(M周,LOW-0.1,'M周'),COLORRED;
月叉:DRAWTEXT(CROSS("KDJ.D#MONTH"(9,3,3),"KDJ.K#MONTH"(9,3,3)) ,H+0.05,'K20'),COLORGREEN;
周叉:DRAWTEXT(CROSS("KDJ.D#WEEK"(9,3,3),"KDJ.K#WEEK"(9,3,3)) ,H+0.08,'K5'),COLORGREEN;
M5:=CROSS("MACD.DEA#WEEK","MACD.DIF#WEEK");
DRAWTEXT(M5,H+0.10,'M5'),COLORGREEN;
M20:=CROSS("MACD.DEA#MONTH","MACD.DIF#MONTH");
DRAWTEXT(M20,(H+0.15),'M20'),COLORGREEN;
STICKLINE(月叉 OR 周叉 OR M5 OR M20,HIGH,LOW,0.2,0),COLORGREEN;
STICKLINE(月叉 OR 周叉 OR M5 OR M20,OPEN,CLOSE,0.2, 0),COLORGREEN;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.8,0),COLOR808080;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.5,0),COLOR919890;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.2,0),COLORB4B5AF;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,1.7,0),COLORCCCCCC;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,1.2,0),COLORDDDDDD;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.8,0),COLOREEEEEE;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.4,0),COLORF5F1F1;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.1,0),COLORFFFAFA;
T0:=BARSCOUNT(CLOSE)>12;
T1:=CLOSE=LLV(CLOSE,12);
T2:=RSI.RSI1>LLV(RSI,12);
T3:=RSI.RSI1<21;
TRSI:=T0 AND T1 AND T2 AND T3 AND CLOSE/HHV(CLOSE,120)<0.7;
RSI成W底:=IF(REF(TRSI,1) AND CLOSE>REF(CLOSE,1),1,0);
DRAWTEXT(RSI成W底,(L*0.98),'W'),COLORLIMAGENTA;{RSI在低位上穿且收盘价是12来最低}
STICKLINE(RSI成W底,OPEN,CLOSE,2,0),COLORLIMAGENTA;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:=(0-WR)-100,COLORYELLOW;
RSI买点:=RSI.RSI1<20 AND RSI.RSI1>REF(RSI.RSI1,1);
WR反向买点:=WR反向>-80 AND WR反向<REF(WR反向,1);
梁队长选股:=RSI买点 AND WR反向买点;
DRAWTEXT(梁队长选股,LOW-0.03,'梁')COLORRED;{WR和RSI的双重买点}
STICKLINE(梁队长选股,OPEN,CLOSE,3,0)COLORRED;
STICKLINE(梁队长选股,HIGH,LOW,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(梁队长选股,OPEN,CLOSE,2.5,0),COLOR0033FF;
STICKLINE(梁队长选股,OPEN,CLOSE,2.1,0),COLOR00BEFF;
STICKLINE(梁队长选股,OPEN,CLOSE,1.7,0),COLOR13BCFF;
STICKLINE(梁队长选股,OPEN,CLOSE,1.3,0),COLOR13D1FF;
STICKLINE(梁队长选股,OPEN,CLOSE,0.9,0),COLOR00D6FF;
STICKLINE(梁队长选股,OPEN,CLOSE,0.4,0),COLOR13E5FF;
STICKLINE(梁队长选股,OPEN,CLOSE,0,0),COLOR00F6FC;
LC:=REF(CLOSE,1);
AG:=REF(RSI.RSI1<45,1) AND RSI.RSI1>45;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
B:=REF(CCI<-100,1) AND CCI>=-100;
MMS:=MA(3*RSI.RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
W:=REF(MMS<39,1) AND MMS>=39;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
JG:=3*K-2*D;
F:=REF(JG<10,1) AND JG>=10;
牛股:=AG AND B AND W AND F;
STI
20156252018559053.jpg
|