通达信鲨鱼竞价副图 竞价选股 测胜率89%以上 竞价后 当日信号不变 源码
{鲨鱼竞价}
{副图}
X_1:=REF(CLOSE,1)>REF(CLOSE,2)*1.09 AND REF(HIGH,1)=REF(CLOSE,1);
昨连板:=BARSLASTCOUNT(X_1),COLORRED;
X_2:=(OPEN/REF(CLOSE,1)-1)*100;
X_3:=DYNAINFO(15)/DYNAINFO(4)/FINANCE(46)*100*(DYNAINFO(4)-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_4:=DYNAINFO(15)/10000>1500;
X_5:=DYNAINFO(15)/10000>500;
X_6:=DYNAINFO(15)/OPEN/FINANCE(46)*100;
X_7:=DYNAINFO(15)/DYNAINFO(4)/100/DYNAINFO(16);
X_8:=X_7>10 AND X_4 AND RANGE(X_2,3,9) AND FINANCE(7)/100000000<10 AND RANGE(X_6,0.9,2);
X_9:=X_5 AND X_7>5 AND RANGE(X_2,4,16) AND RANGE(X_6,0.7,7);
XG:NOT(INBLOCK(132)) AND NOT(INBLOCK(133)) AND NOT(NAMELIKE(134)) AND NOT(NAMELIKE(135)) AND X_3>=10 AND (X_8 OR X_9) AND CLOSE/REF(CLOSE,20)<1.4;
买入:=REF(C,BARSLAST(XG)),COLORYELLOW,NODRAW;
最高:=REF(H,BARSLAST(XG)-1),COLORFF00FF,NODRAW;
成绩:=((最高-买入)/买入)*100,COLORRED,NODRAW;
STICKLINE(REF(XG=1,1) ,0,0.50,2,0),COLORGREEN;
STICKLINE(REF(XG=1,1) AND 最高/买入>=1.01,0,0.50,2,0),COLORRED;
DRAWICON(REF(XG=1,1) AND 成绩>=1,0.68,5);
DRAWICON(REF(XG=1,1) AND 成绩<1,0.68,4);
DRAWNUMBER(REF(XG,1),0.85,成绩),COLORYELLOW;
DRAWTEXT(REF(XG,1),0.78,' %'),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{鲨鱼竞价}
{副图}
X_1赋值:1日前的收盘价>2日前的收盘价*1.09 AND 1日前的最高价=1日前的收盘价
昨连板赋值:BARSLASTCOUNT(X_1),画红色
X_2赋值:(开盘价/1日前的收盘价-1)*100
X_3赋值:开盘金额/开盘价/FINANCE(46)*100*(开盘价-1日前的收盘价)/1日前的收盘价*100
X_4赋值:开盘金额/10000>1500
X_5赋值:开盘金额/10000>500
X_6赋值:开盘金额/开盘价/FINANCE(46)*100
X_7赋值:开盘金额/开盘价/100/DYNAINFO(16)
X_8赋值:X_7>10 AND X_4 AND RANGE(X_2,3,9) AND FINANCE(7)/100000000<10 AND RANGE(X_6,0.9,2)
X_9赋值:X_5 AND X_7>5 AND RANGE(X_2,4,16) AND RANGE(X_6,0.7,7)
输出XG:NOT(INBLOCK(132)) AND NOT(INBLOCK(133)) AND NOT(NAMELIKE(134)) AND NOT(NAMELIKE(135)) AND X_3>=10 AND (X_8 OR X_9) AND 收盘价/20日前的收盘价<1.4
买入赋值:REF(C,上次XG距今天数),画黄色,NODRAW
最高赋值:REF(H,上次XG距今天数-1),COLORFF00FF,NODRAW
成绩赋值:((最高-买入)/买入)*100,画红色,NODRAW
STICKLINE(1日前的XG=1 ,0,0.50,2,0),画绿色
STICKLINE(1日前的XG=1 AND 最高/买入>=1.01,0,0.50,2,0),画红色
DRAWICON(1日前的XG=1 AND 成绩>=1,0.68,5)
DRAWICON(1日前的XG=1 AND 成绩<1,0.68,4)
DRAWNUMBER(1日前的XG,0.85,成绩),画黄色
DRAWTEXT(1日前的XG,0.78,' %'),画黄色