通达信金钻擒妖主图源码分享
STICKLINE((C-REF(C,1))/REF(C,1)>=0.099,O,C,2,0),COLORYELLOW;
操盘线:MA(C,5)DOTLINE;
趋势线:MA(C,30)COLORMAGENTA ;
X_1:=IF(NAMELIKE(1),1,0)=0;
X_2:=IF(NAMELIKE(2),1,0)=0;
X_3:=IF(NAMELIKE(3),1,0)=0;
X_4:=IF(CODELIKE(4),1,0)=0;
X_5:=IF(CODELIKE(5),1,0)=0;
X_6:=IF(CODELIKE(6),1,0)=0;
X_7:=X_1 AND X_2 AND X_3 AND X_5 AND X_6;
X_8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_10:=SUM(X_8,5);
X_11:=SUM(X_9,5);
X_12:=IF(X_10>X_11,(X_10-X_11)/X_10,IF(X_10=X_11,0,(X_10-X_11)/X_11));
X_13:=MA(X_12,5);
X_14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_16:=SUM(X_14,3);
X_17:=SUM(X_15,3);
X_18:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17));
X_19:=MA(X_18,3);
X_20:=HHV(CLOSE,2);
X_21:=BARSLAST(X_20< REF(X_20,2));
X_22:=IF(INBLOCK(1),0.2,IF(INBLOCK(2),0.2,IF(INBLOCK(3),0.05,0.1)));
X_23:=CLOSE>=ZTPRICE(REF(CLOSE,1),X_22) AND CLOSE=HIGH AND OPEN!=HIGH;
X_24:=REF(BARSLASTCOUNT(X_23),1);
X_25:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_26:=DYNAINFO(15)/OPEN/100;
X_27:=IF(CAPITAL< 100000,100000,CAPITAL);
X_28:=X_26/REF(MA(vol,5),1)*240;
X_29:=X_25*X_26/X_27*100;
X_30:=DYNAINFO(15)/OPEN/FINANCE(46)*100;
DRAWTEXT(RANGE(X_25,4,9) AND X_24=1 AND X_28>20 AND X_29>4 AND X_30>1.5 AND X_7 AND CLOSE< 40,L*0.99,' ★金钻擒妖'),COLORFF00FF;
DRAWICON(RANGE(X_25,4,9) AND X_24=1 AND X_28>20 AND X_29>4 AND X_30>1.5 AND X_7 AND CLOSE< 40,L,25);
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
STICKLINE((C-1日前的C)/1日前的C>=0.099,O,C,2,0),画黄色
输出操盘线:C的5日简单移动平均DOTLINE
输出趋势线:C的30日简单移动平均画洋红色
X_1赋值:IF(NAMELIKE(1),1,0)=0
X_2赋值:IF(NAMELIKE(2),1,0)=0
X_3赋值:IF(NAMELIKE(3),1,0)=0
X_4赋值:IF(CODELIKE(4),1,0)=0
X_5赋值:IF(CODELIKE(5),1,0)=0
X_6赋值:IF(CODELIKE(6),1,0)=0
X_7赋值:X_1 AND X_2 AND X_3 AND X_5 AND X_6
X_8赋值:IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_9赋值:IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_10:=5的X_8日累和
X_11:=5的X_9日累和
X_12:=IF(X_10>X_11,(X_10-X_11)/X_10,IF(X_10=X_11,0,(X_10-X_11)/X_11))
X_13:=X_12的5日简单移动平均
X_14:=IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_15:=IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_16:=3的X_14日累和
X_17:=3的X_15日累和
X_18:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17))
X_19:=X_18的3日简单移动平均
X_20:=2日内收盘价最高值
X_21:=上次X_20< 2日前的X_20距今天数
X_22:=IF(INBLOCK(1),0.2,IF(INBLOCK(2),0.2,IF(INBLOCK(3),0.05,0.1)))
X_23:=收盘价>=ZTPRICE(1日前的收盘价,X_22) AND 收盘价=最高价 AND 开盘价!=最高价
X_24:=REF(BARSLASTCOUNT(X_23),1)
X_25:=(开盘价-1日前的收盘价)/1日前的收盘价*100
X_26:=开盘金额/开盘价/100
如果当前流通股本< 100000返回100000否则返回当前流通股本
X_28:=X_26/REF(成交量的5日简单移动平均,1)*240
X_29:=X_25*X_26/X_27*100
X_30:=开盘金额/开盘价/FINANCE(46)*100
DRAWTEXT(RANGE(X_25,4,9) AND X_24=1 AND X_28>20 AND X_29>4 AND X_30>1.5 AND X_7 AND 收盘价< 40,L*0.99,' ★金钻擒妖'),COLORFF00FF
DRAWICON(RANGE(X_25,4,9) AND X_24=1 AND X_28>20 AND X_29>4 AND X_30>1.5 AND X_7 AND 收盘价< 40,L,25)