股價平台整理指标原碼
AA1:=(MAX(C,O)+H)/2;
AA2:=(MIN(C,O)+L)/2;
A2:=C>=REF(C,2)+(REF(C,1)-REF(C,2))/REF(C,2)*1.052;
A3:=REF(C,1)>REF(C,2)*1004 OR REF(C,1)
A4:=(AA1-AA2)/REF(C,1)<0.0569 AND
(C-REF(C,1))/REF(C,1)<=10.34*(REF(C,1)-REF(C,2))/REF(C,2);
A5:=(AA1-AA2)/REF(C,1)<12.71*(REF(C,1)-REF(C,2))/REF(C,2);
A6:=(REF(H,1)-REF(C,1))<(REF(C,1)-REF(C,2))*2.67 AND REF(C,1)>=REF(O,1);
A7:=COUNT(CLOSE>0,5)>=3 &&
(HHV(CLOSE,5)-LLV(CLOSE,5))/LLV(CLOSE,5)<=(8.7/100);
A8:=(HHV(C,5)-LLV(C,5))/HHV(C,5)*100;
XG:=A8>0 AND A8<10;
BV:=CROSS(MA(C,6),MA(C,8));
W1:=C=HHV(C,6);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
上次零下金叉:=CROSS(DIFF,DEA);
金叉:=CROSS(DIFF,DEA);
TY:=(A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND XG );
平台整理:(A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND XG AND BV)
CROSS(DIFF,DEA) AND TY;
DRAWICON(CROSS(DIFF,DEA) AND TY,TY*1.2,11) ;
平台公式:
去掉T:=IF(DYNAINFO(9)=0,0,1) ;
漲幅:=(100*(CLOSE-REF(OPEN,3))/REF(OPEN,3)>6);
ZF:=(C-REF(C,1))/REF(C,1);
TJ:=ZF>=R/100
A1:=(HHV(C,10)-LLV(C,10))/HHV(C,10)*100;
XG:=A1>0 AND A1<13;
上平台:=BARSLAST(TJ) AND XG ;
SD:=C>=HHV(REF(TJ,1),11);
W1:=C=HHV(C,13);
COUNT(上平台,3)>0 AND 漲幅 AND 去掉T AND SD AND W1;
兩陽夾一陰選
A1:=REF(CLOSE,2)>REF(OPEN,2) AND
A2:=REF(C,2)/REF(O,2)>1.02;{前天的漲幅大于3%}
A3:=REF(H,1)/REF(L,1)>1.02;{昨振幅大于3%}
A4:=C/REF(C,1)>1.02;{今天漲幅大于3%}
A5:=REF(C,1)/REF(C,2)<1.01 AND REF(O,1)/REF(C,2)<1.05;{昨天陰線開盤及收盤價均在前日收盤價1.05以内}
A6:=REF(C,1)>REF(O,2);{昨天陰線收盤要大于前日開盤價}
A7:=C>REF(O,1);{今日收盤價大于昨日的開盤價}
A8:=A1 AND A2 AND A3 AND A4 AND {A5 AND} A6 AND A7;
多頭炮:A8 { AND "KDJ.J"(9,3,3)<60};
M8:=MA(CLOSE,8);
M20:=MA(CLOSE,20);
M60:=MA(CLOSE,60);
M140:=MA(CLOSE,140);
VAR1:=IF(PEAKBARS(3,16,1)=0 AND LOW
VAR2:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF
(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF
(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND
REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) AND
REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND
REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)=REF(ZIG(3,51),2) AND
REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND
REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND
REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
買1:=(VAR11+VAR13+VAR15+VAR17);
賣1:=(VAR12+VAR14+VAR16+VAR18);
上升天數:BARSLAST(買1>0 AND REF(VAR2,1)>0)+1,COLORRED,POINTDOT;
漲幅:(CLOSE-REF(CLOSE,上升天數))/REF(CLOSE,上升天數)*100,COLORRED;
回調天數:BARSLAST(賣1>0 AND REF(VAR1,1)>0)+1,COLOR00FF00,POINTDOT;
跌幅:(CLOSE-REF(CLOSE,回調天數))/REF(CLOSE,回調天數)*100,COLOR00FF00;
跌幅大于十五:跌幅<-15,COLORYELLOW;
IF(跌幅<-15,跌幅,DRAWNULL),COLOR00FFFF,LINETHICK2;
IF(跌幅<-18,跌幅,DRAWNULL),COLOR00CCFF,LINETHICK2;
IF(跌幅<-22,跌幅,DRAWNULL),COLORBLUE,LINETHICK2;
IF(跌幅>0,跌幅,DRAWNULL),COLOR66FF00,LINETHICK2;
IF(漲幅>50,漲幅,DRAWNULL),COLOR0000CC,LINETHICK3;
IF(漲幅>80,漲幅,DRAWNULL),COLOR0000FF,LINETHICK3;
IF(漲幅>100,漲幅,DRAWNULL),COLOR0066FF,LINETHICK3;
IF(漲幅>200,漲幅,DRAWNULL),COLORFF00FF,LINETHICK3;
立體成交量
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,3,-1),COLOR00C0C0;
EV:=VOL,;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,POINTDOT;
買盤:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
賣盤:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
成交量:EV/1,LINETHICK0;
成交額(千萬):AMOUNT/10000000,POINTDOT,COLORYELLOW;
VAR5:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入:IF(CLOSE>OPEN,VAR5*(HIGH-LOW),IF(CLOSE
流出:IF(CLOSE>OPEN,0-VAR5*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
淨流:流入+流出,COLORFFFF00,NODRAW;
地量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL)
天量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL)/REF(V,1)>=2;
主力持倉:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF,LINETHICK2,NODRAW;
主力籌碼:WINNER(C)*100 ,COLORRED,LINETHICK2,NODRAW;
散戶籌碼:(WINNER(C*1.1)-WINNER(C*0.9))*100 ,COLOR80FF00,LINETHICK2,NODRAW;
業績:FINANCE(33),COLORWHITE,NODRAW;
STICKLINE(C>0,0,VOL,3,0),COLOR005500;
STICKLINE(C>0,0,VOL,2,0),COLOR007700;
STICKLINE(C>0,0,VOL,1,0),COLOR009900;
STICKLINE(C>0,0,VOL,0,0),COLOR00CC00;
STICKLINE(買盤>0,0,買盤,3,0),COLOR000055;
STICKLINE(買盤>0,0,買盤,2,0),COLOR000077;
STICKLINE(買盤>0,0,買盤,1,0),COLOR000099;
STICKLINE(買盤>0,0,買盤,0,0),COLOR0000FF;
STICKLINE(天量,0,買盤,0.5,1),COLORMAGENTA;
STICKLINE(地量>0,0,買盤,0.5,1),COLORYELLOW;
單陽不破\KDJ指标研判要則與實戰技法
标簽:
理财
證券
kdj指标
要則
|
分類:技術指标與分析
|
單陽不破:
單陽:=EXIST((C-REF(C,1))/REF(C,1)*100>8 ,11);
調整天數:=BARSLAST((C-REF(C,1))/REF(C,1)*100>8);
HH:=HHV(H,調整天數-1);
LL:=LLV(L,調整天數-1);
A2:=REF(O,單陽);
振幅:=(HH-LL)/LL*100<10;
Q2:=LLV(REF(C,1),單陽)>A2;
Q3:=調整天數>2 AND 調整天數<10;
XG1:=單陽 AND Q2 AND Q3;
{+++++以下各模塊可以自行修改OR删減+++++}
{選擇漲停股票的基本條件}
{⊙通達信去掉創業闆*ST⊙}
S1:=IF(CODELIKE('300'),0,1);
{通達信去掉*、S、ST}
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
{通達信去掉停牌}
S4:=DYNAINFO(17)>0;
{ST:S1 AND S2 AND S3 AND S4;}
{收盤價小于35元}
S5:=C<35;
{流通盤小于5億}
S6:=FINANCE(7)<5500000000;
XG:=S1 AND S2 AND S3 AND S4 AND S5 AND S6 AND XG1;
選股:EXIST(XG,1);
形态一旦有效成立
N:=1;S:=1;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'形态一旦有效成立,其調整時間不會超過8根K線,通常運行的第6根K線便進入啟動期,行情随時會拉升而起。'),COLOR00C5FF;
DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,'形态上升放量時介入,跌破前大陽線最低價堅決止損出局,最後的上升時間不能拖過第9根K線, '),COLORD6BA63;
陽漲幅:=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
主力持倉:=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;