神牛10号通达信公式 副图 源码附图
X_1:=1140602;
X_2:=1200929;
X_3:=1200929;
X_4:=IF(NAMELIKE(1),0,1) AND IF(NAMELIKE(2),0,1);
X_5:=FINANCE(19)/FINANCE(1);
X_6:=IF(CLOSE<MA(CLOSE,5),CLOSE>REF(HIGH,1) OR LOW>REF(LOW,1),1);
X_7:=IF(FINANCE(1)<1000000000,1,0);
X_8:=X_4 AND X_7 AND LOW+0.01<X_5*0.85 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000) AND FINANCE(34)>CLOSE;
X_9:=IF(EXIST(X_8,350),0,1) AND X_4 AND X_6 AND X_7 AND LOW+0.01<X_5*1.05 AND LOW+0.01>X_5*0.85 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000) AND FINANCE(34)*1.18>CLOSE;
X_10:=X_4 AND X_7 AND EXIST(X_9>0 OR X_8>0,600) AND (HIGH+0.01<X_5*1.65 AND HIGH+0.01>X_5*1.38 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000));
X_11:=X_4 AND X_7 AND EXIST(X_9>0 OR X_8>0,600) AND (HIGH+0.01<X_5*2.6 AND HIGH+0.01>X_5*1.8 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000));
X_12:=DATE>X_3 AND RANGE(FINANCE(1),10000,1000000000);
X_13:=X_4 AND X_7 AND LOW+0.01<(X_5+FINANCE(38)*2)*0.85 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000) AND FINANCE(34)>CLOSE;
X_14:=IF(EXIST(X_13,350),0,1) AND X_4 AND X_6 AND X_7 AND LOW+0.01<(X_5+FINANCE(38)*2)*1.05 AND LOW+0.01>(X_5+FINANCE(38)*2)*0.85 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000) AND FINANCE(34)*1.18>CLOSE;
X_15:=X_4 AND X_7 AND EXIST(X_14>0 OR X_13>0,600) AND (HIGH+0.01<(X_5+FINANCE(38)*2)*1.65 AND HIGH+0.01>(X_5+FINANCE(38)*2)*1.38 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000));
X_16:=X_4 AND X_7 AND EXIST(X_14>0 OR X_13>0,600) AND (HIGH+0.01<(X_5+FINANCE(38)*2)*2.6 AND HIGH+0.01>(X_5+FINANCE(38)*2)*1.8 AND DATE>=X_1 AND DATE<X_2 AND RANGE(FINANCE(1),10000,1000000000));
X_17:=FINANCE(1)>1000000000 AND IF(EXIST(X_8 OR X_9,400),1,0);
X_18:=HIGH+0.01<FINANCE(34)*15 AND HIGH+0.01>FINANCE(34)*1.2 AND FINANCE(1)>1000000000 AND IF(EXIST(X_8 OR X_9,300),1,0);
X_19:=IF(FINANCE(38)>(-0.2),X_8,X_13);
X_20:=IF(FINANCE(38)>(-0.2),X_9,X_14);
X_21:=IF(FINANCE(38)>(-0.2),X_10,X_15);
X_22:=IF(FINANCE(38)>(-0.2),X_11,X_16);
STICKLINE(X_19,0,1,1,0),COLORRED;
STICKLINE(X_20,0,1,1,0),COLORMAGENTA;
STICKLINE(X_21,0,1,1,0),COLOR80FFFF;
STICKLINE(X_22,0,1,1,0),COLOR80FF00;
STICKLINE(X_18,0,1,1,0),COLORLIGRAY;
DRAWGBK(X_12,RGB(0,255,0),RGB(255,0,0),0,3,0);
QQ16335209:1.8;
深红色重仓买:X_8,NODRAW,COLORRED;
玫红色谨慎买:X_9,NODRAW,COLORMAGENTA;
黄s卖半仓:X_10,NODRAW,COLORYELLOW;
绿色全卖:X_11,NODRAW,COLORGREEN;
白色股变全卖:X_18,NODRAW,COLORLIGRAY;
X_23:=FILTER(X_18,30);
X_24:=FILTER(IF(FINANCE(38)>(-0.2),X_11,X_16),30);
X_25:=FILTER(X_8,30);
X_26:=FILTER(IF(FINANCE(38)>(-0.2),X_10,X_15),30);
DRAWICON(X_23,1.2,15);
DRAWICON(X_24,1.2,15);
DRAWICON(X_26,1.2,2);
X_27:=MA(CLOSE,5);
X_28:=MA(CLOSE,10);
X_29:=MA(CLOSE,20);
X_30:=MA(CLOSE,30);
X_31:=MA(CLOSE,60);
X_32:=MA(CLOSE,120);
X_33:=MA(CLOSE,250);
X_34:=X_31<MIN(X_30,MIN(X_29,MIN(X_27,X_28)));
X_35:=X_31>MAX(X_30,MAX(X_29,MAX(X_27,X_28)));
X_36:=FILTER(X_34,30);
X_37:=FILTER(X_35,30);
X_38:=X_36 AND X_8;
X_39:=X_36 AND X_9;
X_40:=X_37 AND X_8;
X_41:=X_37 AND X_9;
DRAWICON(X_38 OR X_39,1.2,24);
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:1140602
X_2赋值:1200929
X_3赋值:1200929
X_4赋值:IF(NAMELIKE(1),0,1) AND IF(NAMELIKE(2),0,1)
X_5赋值:FINANCE(19)/FINANCE(1)
X_6赋值:IF(收盘价<收盘价的5日简单移动平均,收盘价>1日前的最高价 OR 最低价>1日前的最低价,1)
X_7赋值:IF(FINANCE(1)<1000000000,1,0)
X_8赋值:X_4 AND X_7 AND 最低价+0.01=X_1 AND DATE收盘价
X_9赋值:IF(最近350日存在X_8,0,1) AND X_4 AND X_6 AND X_7 AND 最低价+0.01X_5*0.85 AND DATE>=X_1 AND DATE收盘价
X_10:=X_4 AND X_7 AND 最近600日存在X_9>0 OR X_8>0 AND (最高价+0.01X_5*1.38 AND DATE>=X_1 AND DATE
X_11:=X_4 AND X_7 AND 最近600日存在X_9>0 OR X_8>0 AND (最高价+0.01X_5*1.8 AND DATE>=X_1 AND DATE
X_12:=DATE>X_3 AND RANGE(FINANCE(1),10000,1000000000)
X_13:=X_4 AND X_7 AND 最低价+0.01<(X_5+FINANCE(38)*2)*0.85 AND DATE>=X_1 AND DATE收盘价
X_14:=IF(最近350日存在X_13,0,1) AND X_4 AND X_6 AND X_7 AND 最低价+0.01<(X_5+FINANCE(38)*2)*1.05 AND 最低价+0.01>(X_5+FINANCE(38)*2)*0.85 AND DATE>=X_1 AND DATE收盘价
X_15:=X_4 AND X_7 AND 最近600日存在X_14>0 OR X_13>0 AND (最高价+0.01<(X_5+FINANCE(38)*2)*1.65 AND 最高价+0.01>(X_5+FINANCE(38)*2)*1.38 AND DATE>=X_1 AND DATE
X_16:=X_4 AND X_7 AND 最近600日存在X_14>0 OR X_13>0 AND (最高价+0.01<(X_5+FINANCE(38)*2)*2.6 AND 最高价+0.01>(X_5+FINANCE(38)*2)*1.8 AND DATE>=X_1 AND DATE
X_17:=FINANCE(1)>1000000000 AND IF(最近400日存在X_8 OR X_9,1,0)
X_18:=最高价+0.01FINANCE(34)*1.2 AND FINANCE(1)>1000000000 AND IF(最近300日存在X_8 OR X_9,1,0)
X_19:=IF(FINANCE(38)>(-0.2),X_8,X_13)
X_20:=IF(FINANCE(38)>(-0.2),X_9,X_14)
X_21:=IF(FINANCE(38)>(-0.2),X_10,X_15)
X_22:=IF(FINANCE(38)>(-0.2),X_11,X_16)
当满足条件X_19时,在0和1之间画柱状线
当满足条件X_20时,在0和1之间画柱状线
当满足条件X_21时,在0和1之间画柱状线
当满足条件X_22时,在0和1之间画柱状线
当满足条件X_18时,在0和1之间画柱状线
填充背景(X_12,RGB(0,255,0),RGB(255,0,0),0,3,0)
输出QQ16335209:1.8
输出深红色重仓买:X_8,NODRAW,画红色
输出玫红色谨慎买:X_9,NODRAW,画洋红色
输出黄S卖半仓:X_10,NODRAW,画黄色
输出绿色全卖:X_11,NODRAW,画绿色
输出白色股变全卖:X_18,NODRAW,COLORLIGRAY
X_23:=X_18的30过滤
X_24:=FILTER(IF(FINANCE(38)>(-0.2),X_11,X_16),30)
X_25:=X_8的30过滤
X_26:=FILTER(IF(FINANCE(38)>(-0.2),X_10,X_15),30)
当满足条件X_23时,在1.2和15之间画图标
当满足条件X_24时,在1.2和15之间画图标
当满足条件X_26时,在1.2和2之间画图标
X_27:=收盘价的5日简单移动平均
X_28:=收盘价的10日简单移动平均
X_29:=收盘价的20日简单移动平均
X_30:=收盘价的30日简单移动平均
X_31:=收盘价的60日简单移动平均
X_32:=收盘价的120日简单移动平均
X_33:=收盘价的250日简单移动平均
X_34:=X_31
X_35:=X_31>MAX(X_30,MAX(X_29,MAX(X_27,X_28)))
X_36:=X_34的30过滤
X_37:=X_35的30过滤
X_38:=X_36 AND X_8
X_39:=X_36 AND X_9
X_40:=X_37 AND X_8
X_41:=X_37 AND X_9
当满足条件X_38 OR X_39时,在1.2和24之间画图标