股价平台整理指标原码
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;