通达信【黑马启动】主图 适合中短线使用 源码分享 附图
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;
X_31:=IF(X_21>=1,LLV(X_20,X_21),LOW);
X_32:=X_31+X_31*X_21*0.5/100;
X_33:=IF(X_32<REF(X_32,1),MA(LOW,3),X_32);
X_34:=X_31+X_31*(X_21-1)*1.618/100;
X_35:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_36:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_37:=SUM(X_14,3);
X_38:=SUM(X_15,3);
X_39:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17));
X_40:=MA(X_18,3);
X_41:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_42:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_43:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_44:=SUM(X_14,3);
X_45:=SUM(X_15,3);
X_46:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17));
X_47:=MA(X_18,3);
X_48:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_49:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_50:=SUM(X_14,3);
X_51:=SUM(X_15,3);
X_52:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17));
X_53:=MA(X_18,3);
X_54:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_55:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_56:=SUM(X_14,3);
X_57:=SUM(X_15,3);
X_58:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17));
X_59:=MA(X_18,3);
X_60:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_61:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_62:=SUM(X_14,3);
X_63:=SUM(X_15,3);
X_64:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17));
X_65:=MA(X_18,3);
X_66:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;
X_67:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
X_68:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
X_69:=SUM(X_14,3);
X_70:=SUM(X_15,3);
X_71:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17));
X_72:=MA(X_18,3);
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;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
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
X_31:=IF(X_21>=1,X_21日内X_20最低值,最低价)
X_32:=X_31+X_31*X_21*0.5/100
X_33:=IF(X_32<1日前的X_32,最低价的3日简单移动平均,X_32)
X_34:=X_31+X_31*(X_21-1)*1.618/100
X_35:=IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_36:=IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_37:=3的X_14日累和
X_38:=3的X_15日累和
X_39:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17))
X_40:=X_18的3日简单移动平均
X_41:=(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
X_42:=IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_43:=IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_44:=3的X_14日累和
X_45:=3的X_15日累和
X_46:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17))
X_47:=X_18的3日简单移动平均
X_48:=IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_49:=IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_50:=3的X_14日累和
X_51:=3的X_15日累和
X_52:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17))
X_53:=X_18的3日简单移动平均
X_54:=IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_55:=IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_56:=3的X_14日累和
X_57:=3的X_15日累和
X_58:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17))
X_59:=X_18的3日简单移动平均
X_60:=IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_61:=IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_62:=3的X_14日累和
X_63:=3的X_15日累和
X_64:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17))
X_65:=X_18的3日简单移动平均
X_66:=(收盘价-5日内最低价最低值)/(5日内最高价最高值-5日内最低价最低值)*10
X_67:=IF(开盘价<=1日前的开盘价,0,最高价-开盘价和开盘价-1日前的开盘价较大值)
X_68:=IF(开盘价>=1日前的开盘价,0,开盘价-最低价和开盘价-1日前的开盘价较大值)
X_69:=3的X_14日累和
X_70:=3的X_15日累和
X_71:=IF(X_16>X_17,(X_16-X_17)/X_16,IF(X_16=X_17,0,(X_16-X_17)/X_17))
X_72:=X_18的3日简单移动平均
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