通达信擒庄副图指标源码

VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=(-2)*(VAR2-VAR3)*3.8;
VAR5:=2*(VAR2-VAR3)*3.8;
STICKLINE(VAR5>0,0,VAR5*10,3.2,4),COLORRED;
STICKLINE(VAR5<0,0,VAR5*10,3.2,4),COLORGREEN;
VAR6:=EMA(EMA(CLOSE,9),9);
VAR7:=(VAR1-REF(VAR6,1))/REF(VAR6,1)*30;
VAR8:=CROSS(VAR7,0);
无庄控盘:IF(VAR7<0,VAR7,0),NODRAW,COLORYELLOW;
开始控盘:IF(VAR8,15,0),COLORMAGENTA,LINETHICK3;
有庄控盘:IF(VAR7>REF(VAR7,1) AND VAR7>0,VAR7,0),NODRAW,COLORRED;
VAR9:=100*WINNER(CLOSE*0.95);
高度控盘:IF(VAR9>50 AND COST(80)<CLOSE AND VAR7>0,VAR7,0),NODRAW,COLORMAGENTA;
散户资金线:VAR4,COLORGREEN;
主力资金线:VAR5,COLORYELLOW,LINETHICK2;
VAR10:=CROSS(主力资金线,散户资金线);
建仓:IF(VAR10,4,0),COLORMAGENTA;
VAR11:=EMA(COST(80),13);
启动:主力资金线>REF(主力资金线,1) AND 主力资金线>(-1.3) AND CLOSE/REF(CLOSE,1)>1.05 AND CLOSE>VAR11 AND 高度控盘>1,COLORRED;
主力出货:IF(VAR7<REF(VAR7,1) AND VAR7>0,VAR7,0),NODRAW,COLORCYAN;
清仓:CROSS(散户资金线,主力资金线),COLORGREEN;
STICKLINE(VAR7<0,VAR7,0,2.8,0),COLOR00AAFF;
STICKLINE(VAR7<0,VAR7,0,1.5,0),COLOR00CCFF;
STICKLINE(VAR7<0,VAR7,0,0.5,0),COLORYELLOW;
STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR7,0,2.8,0),COLOR000055;
STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR7,0,2,0),COLOR000088;
STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR7,0,1.5,0),COLOR0000AA;
STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR7,0,1,0),COLOR0000CC;
STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR7,0,0.5,0),COLOR0000EE;
STICKLINE(VAR9>50 AND COST(80)<CLOSE AND VAR7>0,VAR7,0,2.8,0),COLOR550055;
STICKLINE(VAR9>50 AND COST(80)<CLOSE AND VAR7>0,VAR7,0,2,0),COLOR880088;
STICKLINE(VAR9>50 AND COST(80)<CLOSE AND VAR7>0,VAR7,0,1.5,0),COLORAA00AA;
STICKLINE(VAR9>50 AND COST(80)<CLOSE AND VAR7>0,VAR7,0,1,0),COLORCC00CC;
STICKLINE(VAR9>50 AND COST(80)<CLOSE AND VAR7>0,VAR7,0,0.5,0),COLOREE00EE;
STICKLINE(VAR7<REF(VAR7,1) AND VAR7>0,VAR7,0,2.8,0),COLOR555500;
STICKLINE(VAR7<REF(VAR7,1) AND VAR7>0,VAR7,0,2,0),COLOR888800;
STICKLINE(VAR7<REF(VAR7,1) AND VAR7>0,VAR7,0,1.5,0),COLORAAAA00;
STICKLINE(VAR7<REF(VAR7,1) AND VAR7>0,VAR7,0,1,0),COLORCCCC00;
STICKLINE(VAR7<REF(VAR7,1) AND VAR7>0,VAR7,0,0.5,0),COLOREEEE00;
DRAWTEXT(建仓,5,722),COLORMAGENTA;
DRAWICON(启动 AND NOT(REF(启动,1)),VAR5*10+5,1);
DRAWTEXT_FIX(1,0,0.05,0,723),COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.1,0,724),COLORRED;
DRAWTEXT_FIX(1,0,0.15,0,725),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.2,0,726),COLORGREEN;
VAR12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR13:=COUNT(VAR12>8,120);
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.2,0,0,VAR13),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,727),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.13,0,0,728),COLORYELLOW;
VAR14:=CCI(84)/10;
DRAWTEXT(CROSS(VAR14,0),0,729),COLORYELLOW;
DRAWTEXT(CROSS(VAR14,25),25,730),COLORWHITE;
DRAWTEXT(CROSS(VAR14,12),12,731),COLORYELLOW;




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

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

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