通达信牛妖回头副图指标公式源码
X_3:=EMA((EMA(CLOSE*VOL,3)/EMA(VOL,3)+EMA(CLOSE*VOL,6)/EMA(VOL,6)+EMA(CLOSE*VOL,12)/EMA(VOL,12)+EMA(CLOSE*VOL,24)/EMA(VOL,24))/4,18);
X_4:=1.06*X_3;
X_5:=MA(CLOSE,5);
X_6:=MA(CLOSE,10);
X_9:=REF(COUNT(X_5>X_6,7)>=1 AND (X_5>REF(X_5,1) OR CLOSE>REF(CLOSE,1) OR CLOSE>OPEN),1) AND CROSS(CLOSE,X_5) AND CLOSE>X_4 AND X_5>REF(X_5,1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1)*1.015;
X_10:=MA(CLOSE,20);
X_11:=CLOSE>MA(CLOSE,5);
X_12:=MA(CLOSE,5)>MA(CLOSE,10);
X_13:=CLOSE>MA(CLOSE,10);
X_14:=MA(CLOSE,5)>MA(CLOSE,20);
X_15:=CLOSE>MA(CLOSE,20);
X_16:=REF(X_10,1);
X_17:=X_10>X_16;
X_18:=IF(X_11,10,0-10)+IF(X_12,10,0-10)+IF(X_13,10,0-10)+IF(X_14,10,0-10)+IF(X_15,10,0-10)+IF(X_17,10,0-10);
X_21:=X_18=60;
X_23:=BARSLAST(NOT(X_21));
X_24:=COUNT(REF(C/REF(C,1)>1.097,1),20);
X_25:=X_9 AND X_21=1 AND X_23=1 AND X_24;
X_26:=C/REF(C,1)>1.097;
X_27:=REF(CLOSE,1)/REF(CLOSE,2)<=0.96 OR REF(OPEN,1)/REF(CLOSE,1)>=1.05;
X_28:=HIGH/REF(CLOSE,1)>1.041 AND CLOSE>REF(CLOSE,1);
X_29:=X_27 AND X_28;
X_30:=REF(CLOSE,2)/REF(CLOSE,3)<1.099;
X_31:=X_29 AND X_30;
X_32:=COUNT(REF(X_26,3),8) AND X_31;
X_33:=MA(CLOSE,20);
X_34:=CLOSE>MA(CLOSE,5);
X_35:=MA(CLOSE,5)>MA(CLOSE,10);
X_36:=CLOSE>MA(CLOSE,10);
X_37:=MA(CLOSE,5)>MA(CLOSE,20);
X_38:=CLOSE>MA(CLOSE,20);
X_39:=REF(X_33,1);
X_40:=X_33>X_39;
X_41:=IF(X_34,10,0-10)+IF(X_35,10,0-10)+IF(X_36,10,0-10)+IF(X_37,10,0-10)+IF(X_38,10,0-10)+IF(X_40,10,0-10);
X_44:=X_41=60;
X_46:=BARSLAST(NOT(X_44));
X_47:=X_32 AND X_44=1 AND X_46=1;
X_48:=REF(C/REF(C,1)>1.097,7);
X_49:=HIGH/REF(CLOSE,1)>1.031 AND BETWEEN(OPEN/REF(OPEN,7),1.05,0.85);
X_50:=REF(OPEN,1)>REF(MA(CLOSE,5),1) AND REF(CLOSE,1)<REF(MA(CLOSE,10),1) AND REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1);
X_51:=X_48 AND X_49 AND X_50;
X_52:=X_51 AND REF(CLOSE,1)/REF(CLOSE,2)<0.97 AND REF(OPEN,1)>REF(CLOSE,1);
X_53:=X_47 OR X_52;
X_70:=MA(CLOSE,30);
X_73:=(C/REF(C,1)-1)*100;
X_77:=IF((C/REF(C,1)-1)*100>=10-0.01*100/REF(CLOSE,1),1,0);
X_93:=REF(X_77,1);
X_94:=COUNT(X_93,5)>=1;
X_99:=OPEN<=REF(CLOSE,1) AND X_73<(-2);
X_100:=COUNT(X_99,2)>=1;
X_101:=NOT(REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(CLOSE,2)/REF(CLOSE,3)>1.095 AND OPEN>REF(CLOSE,1) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(HIGH,1)/REF(OPEN,1)>1.03 AND REF(HIGH,1)/REF(CLOSE,2)>1.03);
X_102:=NOT(REF(CLOSE,1)/REF(CLOSE,2)<0.909 AND REF(CLOSE,2)/REF(CLOSE,3)>1.099 AND REF(CLOSE,3)/REF(CLOSE,4)<1.09 AND REF(OPEN,2)>REF(CLOSE,3) AND REF(HIGH,1)/REF(OPEN,1)>1.03);
X_103:=NOT(REF(CLOSE,1)/REF(CLOSE,2)<0.91 AND REF(CLOSE,2)/REF(CLOSE,3)<0.91 AND REF(CLOSE,2)/REF(HIGH,1)>1.03 AND REF(MA(CLOSE,5),1)/REF(MA(CLOSE,10),1)>1.05);
X_104:=NOT(REF(CLOSE,2)/REF(CLOSE,3)>1.099 AND REF(CLOSE,1)<REF(OPEN,1) AND REF(HIGH,1)>REF(CLOSE,2) AND OPEN>REF(OPEN,1));
X_105:=NOT(REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(HIGH,2)>REF(CLOSE,3) AND REF(LOW,2)<REF(OPEN,3) AND REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,2)>1.05 AND OPEN/REF(LOW,2)<0.98);
X_106:=NOT(REF(CLOSE,1)/REF(CLOSE,2)<0.901 AND REF(CLOSE,1)=REF(LOW,1) AND REF(OPEN,2)/REF(CLOSE,3)>1.03 AND REF(OPEN,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,2)/REF(CLOSE,3)>1.09 AND REF(OPEN,2)/REF(LOW,2)>1.05);
X_107:=NOT(REF(CLOSE,2)/REF(CLOSE,3)<0.901 AND REF(CLOSE,3)/REF(CLOSE,4)<0.901 AND REF(CLOSE,4)/REF(CLOSE,5)>1.099 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)<REF(OPEN,4) AND REF(OPEN,3)/REF(CLOSE,3)>1.05);
X_108:=NOT(REF(CLOSE,2)/REF(CLOSE,3)<0.901 AND REF(OPEN,1)/REF(CLOSE,2)<0.98 AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(HIGH,3)>REF(CLOSE,4) AND REF(LOW,3)<REF(LOW,4));
X_109:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(CLOSE,5)/REF(CLOSE,6)>1.095 AND REF(OPEN,4)>REF(CLOSE,5) AND REF(CLOSE,3)/REF(CLOSE,4)<0.91 AND REF(CLOSE,2)/REF(CLOSE,3)<0.91 AND REF(OPEN,2)/REF(CLOSE,3)<0.98 AND REF(CLOSE,2)>REF(CLOSE,1));
X_110:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(OPEN,3)/REF(CLOSE,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)/REF(CLOSE,3)<0.91 AND REF(OPEN,1)<REF(CLOSE,2));
X_111:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.099 AND REF(OPEN,4)<REF(MA(CLOSE,10),4) AND REF(HIGH,3)/REF(CLOSE,4)>1.03 AND REF(CLOSE,1)/REF(CLOSE,2)<0.95 AND CROSS(REF(MA(CLOSE,5),1),REF(MA(CLOSE,10),1)) AND OPEN/REF(OPEN,4)>1.03);
X_112:=NOT(REF(CLOSE,4)/REF(CLOSE,5)<1.099 AND REF(CLOSE,5)/REF(CLOSE,6)>1.099 AND REF(LOW,1)>REF(CLOSE,5) AND OPEN>REF(CLOSE,5) AND REF(CLOSE,1)/REF(CLOSE,2)>0.96);
X_113:=NOT(COUNT(EVERY(REF(CLOSE,1)/REF(CLOSE,2)>1.09,5),8) AND REF(CLOSE,2)/REF(CLOSE,3)>1.099 AND REF(HIGH,1)/REF(OPEN,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<0.91);
X_114:=X_94 AND X_73>2.5 AND REF(X_100,1) AND REF(X_73<2.4,1) AND X_70>0 AND X_101 AND X_102 AND X_103 AND X_104 AND X_105 AND X_106 AND X_107 AND X_108 AND X_109 AND X_110 AND X_111 AND X_112 AND X_113;
X_115:=REF(CLOSE,10)/REF(CLOSE,11)>1.099 AND OPEN/REF(OPEN,10)<1.03 AND REF(CLOSE,3)/REF(CLOSE,4)<0.95 AND REF(CLOSE,2)/REF(CLOSE,3)<1.02 AND REF(CLOSE,1)/REF(CLOSE,2)<1.01 AND HIGH/REF(CLOSE,1)>1.041;
X_116:=X_25 OR X_53 OR X_114 OR X_115;
X_117:=IF(NAMELIKE(233),0,1) AND IF(NAMELIKE(234),0,1);
X_118:=DYNAINFO(4)>0;
X_119:=X_117 AND X_118;
X_120:=NOT(INBLOCK('科创板'));
TJXG:X_116 AND NOT(REF(X_116,1)) AND X_119 AND X_120;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_3赋值:EMA((EMA(收盘价*成交量,3)/EMA(成交量,3)+EMA(收盘价*成交量,6)/EMA(成交量,6)+EMA(收盘价*成交量,12)/EMA(成交量,12)+EMA(收盘价*成交量,24)/EMA(成交量,24))/4,18)
X_4赋值:1.06*X_3
X_5赋值:收盘价的5日简单移动平均
X_6赋值:收盘价的10日简单移动平均
X_9赋值:REF(统计7日满足X_5>X_6的天数>=1 AND (X_5>REF(X_5,1) OR 收盘价>REF(收盘价,1) OR 收盘价>开盘价),1) AND 收盘价上穿X_5 AND 收盘价>X_4 AND X_5>REF(X_5,1) AND 收盘价>开盘价 AND 收盘价>REF(收盘价,1)*1.015
X_10赋值:收盘价的20日简单移动平均
X_11赋值:收盘价>收盘价的5日简单移动平均
X_12赋值:收盘价的5日简单移动平均>收盘价的10日简单移动平均
X_13赋值:收盘价>收盘价的10日简单移动平均
X_14赋值:收盘价的5日简单移动平均>收盘价的20日简单移动平均
X_15赋值:收盘价>收盘价的20日简单移动平均
X_16赋值:1日前的X_10
X_17赋值:X_10>X_16
如果X_11返回10否则返回0-10
X_21赋值:X_18=60
X_23赋值:上次NOT(X_21距今天数)
X_24赋值:COUNT(1日前的C/C>1.097,1),20)
X_25赋值:X_9 AND X_21=1 AND X_23=1 AND X_24
X_26赋值:C/1日前的C>1.097
X_27赋值:1日前的收盘价/2日前的收盘价<=0.96 OR 1日前的开盘价/1日前的收盘价>=1.05
X_28赋值:最高价/1日前的收盘价>1.041 AND 收盘价>1日前的收盘价
X_29赋值:X_27 AND X_28
X_30:=2日前的收盘价/3日前的收盘价<1.099
X_31:=X_29 AND X_30
X_32:=COUNT(3日前的X_26,8) AND X_31
X_33:=收盘价的20日简单移动平均
X_34:=收盘价>收盘价的5日简单移动平均
X_35:=收盘价的5日简单移动平均>收盘价的10日简单移动平均
X_36:=收盘价>收盘价的10日简单移动平均
X_37:=收盘价的5日简单移动平均>收盘价的20日简单移动平均
X_38:=收盘价>收盘价的20日简单移动平均
X_39:=1日前的X_33
X_40:=X_33>X_39
如果X_34返回10否则返回0-10
X_44:=X_41=60
X_46:=上次NOT(X_44距今天数)
X_47:=X_32 AND X_44=1 AND X_46=1
X_48:=1日前的C/C>1.097,7)
X_49:=最高价/1日前的收盘价>1.031 AND BETWEEN(开盘价/7日前的开盘价,1.05,0.85)
X_50:=1日前的开盘价>REF(收盘价的5日简单移动平均,1) AND REF(收盘价,1)[REF(收盘价的10日简单移动平均,1)]
X_51:=X_48 AND X_49 AND X_50
X_52:=X_51 AND 1日前的收盘价/2日前的收盘价<0.97 AND 1日前的开盘价>1日前的收盘价
X_53:=X_47 OR X_52
X_70赋值:收盘价的30日简单移动平均
X_73赋值:(C/1日前的C-1)*100
X_77赋值:IF((C/1日前的C-1)*100>=10-0.01*100/1日前的收盘价,1,0)
X_93:=1日前的X_77
X_94:=统计5日满足X_93的天数>=1
X_99:=开盘价<=1日前的收盘价 AND X_73<(-2)
X_100:=统计2日满足X_99的天数>=1
X_101:=NOT(3日前的收盘价/4日前的收盘价>1.095 AND 2日前的收盘价/3日前的收盘价>1.095 AND 开盘价>1日前的收盘价 AND 1日前的收盘价<1日前的开盘价 AND 1日前的最高价/1日前的开盘价>1.03 AND 1日前的最高价/2日前的收盘价>1.03)
X_102:=NOT(1日前的收盘价/2日前的收盘价<0.909 AND 2日前的收盘价/3日前的收盘价>1.099 AND 3日前的收盘价/4日前的收盘价<1.09 AND 2日前的开盘价>3日前的收盘价 AND 1日前的最高价/1日前的开盘价>1.03)
X_103:=NOT(1日前的收盘价/2日前的收盘价<0.91 AND 2日前的收盘价/3日前的收盘价<0.91 AND 2日前的收盘价/1日前的最高价>1.03 AND REF(收盘价的5日简单移动平均,1)/REF(收盘价的10日简单移动平均,1)>1.05)
X_104:=NOT(2日前的收盘价/3日前的收盘价>1.099 AND 1日前的收盘价<1日前的开盘价 AND 1日前的最高价>2日前的收盘价 AND 开盘价>1日前的开盘价)
X_105:=NOT(3日前的收盘价/4日前的收盘价>1.095 AND 2日前的最高价>3日前的收盘价 AND 2日前的最低价<3日前的开盘价 AND 3日前的收盘价/4日前的收盘价>1.095 AND 2日前的收盘价<2日前的开盘价 AND 2日前的开盘价/2日前的收盘价>1.05 AND 开盘价/2日前的最低价<0.98)
X_106:=NOT(1日前的收盘价/2日前的收盘价<0.901 AND 1日前的收盘价=1日前的最低价 AND 2日前的开盘价/3日前的收盘价>1.03 AND 1日前的开盘价/2日前的收盘价<0.96 AND 2日前的收盘价/3日前的收盘价>1.09 AND 2日前的开盘价/2日前的最低价>1.05)
X_107:=NOT(2日前的收盘价/3日前的收盘价<0.901 AND 3日前的收盘价/4日前的收盘价<0.901 AND 4日前的收盘价/5日前的收盘价>1.099 AND 3日前的开盘价>4日前的收盘价 AND 3日前的收盘价<4日前的开盘价 AND 3日前的开盘价/3日前的收盘价>1.05)
X_108:=NOT(2日前的收盘价/3日前的收盘价<0.901 AND 1日前的开盘价/2日前的收盘价<0.98 AND 1日前的收盘价<2日前的收盘价 AND 4日前的收盘价/5日前的收盘价>1.095 AND 3日前的最高价>4日前的收盘价 AND 3日前的最低价<4日前的最低价)
X_109:=NOT(4日前的收盘价/5日前的收盘价>1.095 AND 5日前的收盘价/6日前的收盘价>1.095 AND 4日前的开盘价>5日前的收盘价 AND 3日前的收盘价/4日前的收盘价<0.91 AND 2日前的收盘价/3日前的收盘价<0.91 AND 2日前的开盘价/3日前的收盘价<0.98 AND 2日前的收盘价>1日前的收盘价)
X_110:=NOT(4日前的收盘价/5日前的收盘价>1.095 AND 3日前的开盘价/4日前的收盘价>1.03 AND 3日前的收盘价<3日前的开盘价 AND 2日前的收盘价/3日前的收盘价<0.91 AND 1日前的开盘价<2日前的收盘价)
X_111:=NOT(4日前的收盘价/5日前的收盘价>1.099 AND 4日前的开盘价[1.03 AND REF(收盘价,1)/REF(收盘价,2)<0.95 AND CROSS(REF(收盘价的5日简单移动平均,1),REF(收盘价的10日简单移动平均,1)) AND 开盘价/4日前的开盘价>1.03)]
X_112:=NOT(4日前的收盘价/5日前的收盘价<1.099 AND 5日前的收盘价/6日前的收盘价>1.099 AND 1日前的最低价>5日前的收盘价 AND 开盘价>5日前的收盘价 AND 1日前的收盘价/2日前的收盘价>0.96)
X_113:=NOT(COUNT(EVERY(1日前的收盘价/2日前的收盘价>1.09,5),8) AND 2日前的收盘价/3日前的收盘价>1.099 AND 1日前的最高价/1日前的开盘价>1.05 AND 1日前的收盘价/2日前的收盘价<0.91)
X_114:=X_94 AND X_73>2.5 AND 1日前的X_100 AND 1日前的X_73<2.4 AND X_70>0 AND X_101 AND X_102 AND X_103 AND X_104 AND X_105 AND X_106 AND X_107 AND X_108 AND X_109 AND X_110 AND X_111 AND X_112 AND X_113
X_115:=10日前的收盘价/11日前的收盘价>1.099 AND 开盘价/10日前的开盘价<1.03 AND 3日前的收盘价/4日前的收盘价<0.95 AND 2日前的收盘价/3日前的收盘价<1.02 AND 1日前的收盘价/2日前的收盘价<1.01 AND 最高价/1日前的收盘价>1.041
X_116:=X_25 OR X_53 OR X_114 OR X_115
X_117:=IF(NAMELIKE(233),0,1) AND IF(NAMELIKE(234),0,1)
X_118:=开盘价>0
X_119:=X_117 AND X_118
X_120:=NOT(INBLOCK('科创板'))
输出TJXG:X_116 AND NOT(1日前的X_116) AND X_119 AND X_120