连板股排序分析 副图排序 指标源码 附图
{BKLT 妖股引用源码如下}
ZTJ:=ZTPRICE(REF(C,1),IF(FINANCE(3)=3,0.2,0.1));
ZT:=C>=ZTJ AND C=H;
连板排序:=IF(BARSLASTCOUNT(ZT)<=1,0,INSORT('连板晋级','MBK',4,0)),NODRAW;
涨幅排序:=INSORT('连板晋级','MBK',3,0),NODRAW;
情绪高标:(涨幅排序=1 OR 连板排序=1) AND C>REF(C,1) AND C>=O AND BARSLASTCOUNT(ZT)>=3,NODRAW;
主线龙头:连板排序=1 AND 涨幅排序<=7 AND REF(BARSLASTCOUNT(ZT)>1 OR COUNT(ZT,7)>2,1) AND C>REF(C,1)*1.05 AND C>=O,NODRAW;
主线中军:BETWEEN(FINANCE(40)/100000000,77,1777) AND KJXDT.DTPL#WEEK AND KJXDT.DTPL,NODRAW;
中位龙头:连板排序>1 AND 连板排序<=7 AND 涨幅排序>1 AND 涨幅排序<=7 AND ZT AND BARSLASTCOUNT(ZT)>1,NODRAW;
小盘优选:FINANCE(3)=3 AND SAFESCORE>80 AND DYNAINFO(39)<70,NODRAW;
龙头断板:FROMOPEN<240 AND REF(主线龙头,1) AND (C<H*0.95 OR O<REF(C,1)*0.98) AND ISLASTBAR;
高标断板:FROMOPEN<240 AND REF(情绪高标,1) AND C<O AND O<REF(C,1)*0.98 AND ISLASTBAR;
{ MBK 持仓引用 源码如下}
{MBK}
TJ:=(FINANCE(3)=4 OR (DATE>1200822 && FINANCE(3)=3));
ZTJ:=ZTPRICE(REF(C,1),IF(TJ,0.2,0.1));
DTJ:=DTPRICE(REF(C,1),0.1);
DT:=C>=DTJ AND C=L;
ZT:C>=ZTJ AND C=H,NODRAW;
ZF:(C-REF(C,1))/REF(C,1)*100,NODRAW;
SBO:=REF(O,BARSLASTCOUNT(ZT)-1);
DQZF:IF(BARSCOUNT(C)>7,C/REF(C,5),0),NODRAW;
LBM:IF(BARSCOUNT(C)>20,BARSLASTCOUNT(ZT),0),NODRAW;
大于5%:ZF>5,NODRAW;{统计板块联动效应}
炸板:H>=ZTJ AND C<H,NODRAW;{统计板块炸板数}
{DBXH:INBLOCK('2波段备选'),NODRAW;
摸板:H>=ZTJ;统计板块摸板数
LB5:BARSLASTCOUNT(ZT)>=5;
TC:=DT AND INBLOCK('超3板');
YZZT:ZT AND O=ZTJ AND L=H AND O=H;
DF5:ZF<-5;
跌停:C<=DTJ AND C=L;
炸板:H>=ZTJ AND C<H;
摸板:H>=ZTJ;};
{KJXDT 妖股引用源码如下}
MA1:=MA(C,5);
MA2:=MA(C,11);
MA3:=MA(C,20);
MA4:=MA(C,31);
角度MA1:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
JXN:IF(MA1>MA2,1,0)+IF(MA1>MA3,1,0)+IF(MA2>MA3,1,0)+IF(MA3>MA4,1,0)+IF(MA2>MA4,1,0);
G1:=JXN>=3 AND BARSCOUNT(C)>139;
G2:=MA1>MA2 AND EVERY(MA2>REF(MA2,1),3) AND MA2>REF(MA2,1) AND MA3>=REF(MA3,1) AND BARSCOUNT(C)<140;
RXDT:(G1 OR G2) AND C>=MA1;
DTPL1:=EVERY(MA1>MA2,2) AND MA2>MA3 AND MA3>MA4 AND EVERY(MA1>REF(MA1,1),2) AND EVERY(MA2>REF(MA2,1),2) AND EVERY(角度MA1>30,3);
DTPL2:=MA1>MA2 AND MA2>MA3 AND EVERY(MA1>REF(MA1,1),2) AND EVERY(MA2>REF(MA2,1),3) AND EVERY(角度MA1>30,3);
DTPL:IF(BARSCOUNT(C)>144,DTPL1,DTPL2);
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{BKLT 妖股引用源码如下}ZTJ赋值:ZTPRICE(1日前的C,IF(FINANCE(3)=3,0.2,0.1))
ZT赋值:C>=ZTJ AND C=H
连板排序赋值:IF(BARSLASTCOUNT(ZT)<=1,0,INSORT('连板晋级','MBK',4,0)),NODRAW
涨幅排序赋值:INSORT('连板晋级','MBK',3,0),NODRAW
输出情绪高标:(涨幅排序=1 OR 连板排序=1) AND C>1日前的C AND C>=O AND BARSLASTCOUNT(ZT)>=3,NODRAW
输出主线龙头:连板排序=1 AND 涨幅排序<=7 AND REF(BARSLASTCOUNT(ZT)>1 OR COUNT(ZT,7)>2,1) AND C>REF(C,1)*1.05 AND C>=O,NODRAW
输出主线中军:BETWEEN(FINANCE(40)/100000000,77,1777) AND KJXDT.DTPL#WEEK AND KJXDT.DTPL,NODRAW
输出中位龙头:连板排序>1 AND 连板排序<=7 AND 涨幅排序>1 AND 涨幅排序<=7 AND ZT AND BARSLASTCOUNT(ZT)>1,NODRAW
输出小盘优选:FINANCE(3)=3 AND SAFESCORE>80 AND DYNAINFO(39)<70,NODRAW
输出龙头断板:FROM开盘价<240 AND 1日前的主线龙头 AND (C输出高标断板:FROM开盘价<240 AND 1日前的情绪高标 AND C{ MBK 持仓引用 源码如下}{MBK}TJ赋值:(FINANCE(3)=4 OR (DATE>1200822 && FINANCE(3)=3))
如果TJ返回0.2否则返回0.1
DTJ赋值:DTPRICE(1日前的C,0.1)
DT赋值:C>=DTJ AND C=L
输出ZT:C>=ZTJ AND C=H,NODRAW
输出ZF:(C-1日前的C)/1日前的C*100,NODRAW
SBO赋值:REF(O,BARSLASTCOUNT(ZT)-1)
DQ输出ZF:IF(C的有效数据周期数>7,C/5日前的C,0),NODRAW
输出LBM:IF(C的有效数据周期数>20,BARSLASTCOUNT(ZT),0),NODRAW
输出大于5%:ZF>5,NODRAW
输出{统计板块联动效应}炸板:H>=ZTJ AND C输出{统计板块炸板数}{DBXH:INBLOCK('2波段备选'),NODRAW
输出摸板:H>=ZTJ
统计板块摸板数LB5:BARSLASTCOUNT(ZT)>=5
TC赋值:DT AND INBLOCK('超3板')
YZ输出ZT:ZT AND O=ZTJ AND L=H AND O=H
输出DF5:ZF<-5
输出跌停:C<=DTJ AND C=L
输出炸板:H>=ZTJ AND C输出摸板:H>=ZTJ
}
{KJXDT 妖股引用源码如下}MA1:=C的5日简单移动平均
MA2赋值:C的11日简单移动平均
MA3赋值:C的20日简单移动平均
MA4赋值:C的31日简单移动平均
角度MA1赋值:ATAN((MA1/1日前的MA1-1)*100)*180/3.1416
如果MA1>MA2返回1否则返回0
G1赋值:JXN>=3 AND C的有效数据周期数>139
G2赋值:MA1>MA2 AND EVERY(MA2>1日前的MA2,3) AND MA2>1日前的MA2 AND MA3>=1日前的MA3 AND C的有效数据周期数<140
RX输出DT:(G1 OR G2) AND C>=MA1
DTPL1:=MA1>MA2最近2日一直存在 AND MA2>MA3 AND MA3>MA4 AND EVERY(MA1>1日前的MA1,2) AND EVERY(MA2>1日前的MA2,2) AND EVERY(角度MA1>30,3)
DTPL2:=MA1>MA2 AND MA2>MA3 AND EVERY(MA1>1日前的MA1,2) AND EVERY(MA2>1日前的MA2,3) AND EVERY(角度MA1>30,3)
DTPL:IF(C的有效数据周期数>144,DTPL1,DTPL2)