通达信【倍量关键K】主副图指标 源码

{倍量关键K主图源码如下}

ZTJ:=ZTPRICE(REF(C,1),0.1);
DDDX:MA(C,5)LINETHICK2;
XDX:HHV(DDDX,10)LINETHICK2;
ZLX:DDDX-(XDX-DDDX)LINETHICK2 COLORMAGENTA;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG1:=MACD>0;
DRAWICON(XDX=ZLX AND REF(XDX,1)>REF(ZLX,1) AND XG1,ZLX*1.002,5);
DRAWICON(XDX>ZLX AND REF(XDX,1)=REF(ZLX,1),XDX*1.002,6);
K线实体:=ABS(C-O);
ABC1:=IF(MA(C,5)>MA(C,10),20,0);
ABC2:=IF(MA(C,20)>MA(C,60),10,0);
ABC3:=IF(KDJ.J>KDJ.K,10,0);
ABC4:=IF(MACD.DIF>MACD.DEA,10,0);
ABC5:=IF(MACD.MACD>0,10,0);
ABC6:=IF(V>MA(V,60),10,0);
ABC7:=IF(WINNER(C)>0.5,10,0);
ABC8:=IF(C/REF(C,1)>1.03,10,0);
XX:=ABC1+ABC2+ABC3+ABC4+ABC5+ABC6+ABC7+ABC8;
涨停板1:=C=H&&C/REF(C,1)>1.0975&&C/REF(C,1)< 1.11&&FINANCE(3)=1&&C=ZTJ;
涨停板2:=C=H&&C/REF(C,1)>1.1985&&C/REF(C,1)< 1.21&&FINANCE(3)=3;
涨停板:=涨停板1 OR 涨停板2;
双倍量:=(V/REF(MA(V,5),1)>=2&&V/REF(V,1)>=1.5 OR V/REF(V,1)>=2)&&C>O&&H=HHV(H,6)&&C>EMA(C,13)&&V=HHV(V,6);
建仓量:=TFILTER(双倍量&&K线实体>REF(K线实体,1),EVERY(V< MA(V,5),2),1);
JCZQ:=BARSLAST(建仓量);
拉升量:=双倍量&&NOT(建仓量)&&EXIST(建仓量,2);
试盘量:=建仓量 OR 拉升量;
位置要求:=L/EMA(C,13)< 1.05;
红线上行:=EMA(C,13)>=REF(EMA(C,13),1);
SPX0:=H/REF(C,1)>=1.03&&试盘量&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&FINANCE(3)=1&&XX>=40;
SPABC1:=H/REF(C,1)>=1.05&&试盘量&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&(FINANCE(3)=3 OR FINANCE(3)=4)&&XX>=40;
SPABC2:=SPX0 OR SPABC1;
SPABC3:=SPABC2&&NOT(EXISTR(SPABC2,7,1))&&COUNT(涨停板,2)=0;
试盘K线:=FILTER(SPABC3,5);
建仓:=FILTER(涨停板&&建仓量&&COUNT(涨停板,3)=1,10);
关键K:=试盘K线 OR 建仓;
STICKLINE(关键K,H,L,0,0),COLORFF55FF;
STICKLINE(关键K,C,O,3.1,0),COLOR880088;
STICKLINE(关键K,C,O,2.6,0),COLORAA00AA;
STICKLINE(关键K,C,O,1.9,0),COLORCC00CC;
STICKLINE(关键K,C,O,1.1,0),COLOREE00EE;
STICKLINE(关键K,C,O,0.2,0),COLORFF44FF;
DRAWTEXT(关键K,L,'★关键K'),COLORYELLOW;
DRAWICON(关键K,L,9);


{倍量关键K副图源码如下}

VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,5);
MAVOL2:MA(VOLUME,135);
量:VOL,VOLSTICK;
倍数:=1.9;
倍量:VOL>=REF(V,1)*倍数 AND (IF(C< O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
V1:=VOL*0.9;
V2:=VOL*0.8;
STICKLINE(倍量, 0,V1,1,0),COLORYELLOW;
ZTJ:=ZTPRICE(REF(C,1),0.1);
K线实体:=ABS(C-O);
ABC1:=IF(MA(C,5)>MA(C,10),20,0);
ABC2:=IF(MA(C,20)>MA(C,60),10,0);
ABC3:=IF(KDJ.J>KDJ.K,10,0);
ABC4:=IF(MACD.DIF>MACD.DEA,10,0);
ABC5:=IF(MACD.MACD>0,10,0);
ABC6:=IF(V>MA(V,60),10,0);
ABC7:=IF(WINNER(C)>0.5,10,0);
ABC8:=IF(C/REF(C,1)>1.03,10,0);
XX:=ABC1+ABC2+ABC3+ABC4+ABC5+ABC6+ABC7+ABC8;
涨停板1:=C=H&&C/REF(C,1)>1.0975&&C/REF(C,1)< 1.11&&FINANCE(3)=1&&C=ZTJ;
涨停板2:=C=H&&C/REF(C,1)>1.1985&&C/REF(C,1)< 1.21&&FINANCE(3)=3;
涨停板:=涨停板1 OR 涨停板2;
双倍量:=(V/REF(MA(V,5),1)>=2&&V/REF(V,1)>=1.5 OR V/REF(V,1)>=2)&&C>O&&H=HHV(H,6)&&C>EMA(C,13)&&V=HHV(V,6);
建仓量:=TFILTER(双倍量&&K线实体>REF(K线实体,1),EVERY(V< MA(V,5),2),1);
拉升量:=双倍量&&NOT(建仓量)&&EXIST(建仓量,2);
试盘量:=建仓量 OR 拉升量;
位置要求:=L/EMA(C,13)< 1.05;
SPX0:=H/REF(C,1)>=1.03&&试盘量&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&FINANCE(3)=1&&XX>=40;
SPABC1:=H/REF(C,1)>=1.05&&试盘量&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&(FINANCE(3)=3 OR FINANCE(3)=4)&&XX>=40;
SPABC2:=SPX0 OR SPABC1;
SPABC3:=SPABC2&&NOT(EXISTR(SPABC2,7,1))&&COUNT(涨停板,2)=0;
试盘K线:=FILTER(SPABC3,5);
拉板建仓:=FILTER(涨停板&&建仓量&&COUNT(涨停板,3)=1,10);
关键K:=试盘K线 OR 拉板建仓;
STICKLINE(关键K,0,V*0.99,2,0),COLORMAGENTA;
STICKLINE(关键K,0,V*0.99,0,0),COLORFF55FF;
STICKLINE(关键K,0,V*0.99,3.1,0),COLOR880088;
STICKLINE(关键K,0,V*0.99,2.6,0),COLORAA00AA;
STICKLINE(关键K,0,V*0.99,1.9,0),COLORCC00CC;
STICKLINE(关键K,0,V*0.99,1.1,0),COLOREE00EE;
STICKLINE(关键K,0,V*0.99,0.2,0),COLORFF44FF;
DRAWICON(关键K,V*0.98,9);


未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图