通达信牛熊花开富贵主图筹码类精准指标
X_1:=(COST(97)-COST(3))/10;
X_2:=WINNER(COST(3)+X_1*1)-WINNER(COST(3)+X_1*0);X_3:=WINNER(COST(3)+X_1*2)-WINNER(COST(3)+X_1*1);X_4:=WINNER(COST(3)+X_1*3)-WINNER(COST(3)+X_1*2);X_5:=WINNER(COST(3)+X_1*4)-WINNER(COST(3)+X_1*3);X_6:=WINNER(COST(3)+X_1*5)-WINNER(COST(3)+X_1*4);X_7:=WINNER(COST(3)+X_1*6)-WINNER(COST(3)+X_1*5);X_8:=WINNER(COST(3)+X_1*7)-WINNER(COST(3)+X_1*6);X_9:=WINNER(COST(3)+X_1*8)-WINNER(COST(3)+X_1*7);X_10:=WINNER(COST(3)+X_1*9)-WINNER(COST(3)+X_1*8);X_11:=WINNER(COST(3)+X_1*10)-WINNER(COST(3)+X_1*9);X_12:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(X_2,X_3),X_4),X_5),X_6),X_7),X_8),X_9),X_10),X_11);X_13:=IF(X_11>=X_12,COST(3)+X_1*10,IF(X_10>=X_12,COST(3)+X_1*9,IF(X_9>=X_12,COST(3)+X_1*8,IF(X_8>=X_12,COST(3)+X_1*7,IF(X_7>=X_12,COST(3)+X_1*6,IF(X_6>=X_12,COST(3)+X_1*5,IF(X_5>=X_12,COST(3)+X_1*4,IF(X_4>=X_12,COST(3)+X_1*3,IF(X_3>=X_12,COST(3)+X_1*2,IF(X_2>=X_12,COST(3)+X_1*1,0))))))))));X_14:=IF(X_11<X_12,COST(3)+X_1*10,IF(X_10<X_12,COST(3)+X_1*9,IF(X_9<X_12,COST(3)+X_1*8,IF(X_8<X_12,COST(3)+X_1*7,IF(X_7<X_12,COST(3)+X_1*6,IF(X_6<X_12,COST(3)+X_1*5,IF(X_5<X_12,COST(3)+X_1*4,IF(X_4<X_12,COST(3)+X_1*3,IF(X_3<X_12,COST(3)+X_1*2,IF(X_2<X_12,COST(3)+X_1*1,0))))))))));X_15:=X_13-X_1*0.5;X_16:=X_14-X_1*0.5;DRAWBAND(X_15,RGB(56,94,15),X_16,RGB(56,94,15));EMA(EMA(EMA(COST(99.900002),5),5),5)*1.15,COLORYELLOW;EMA(EMA(EMA(COST(99.900002),5),5),5)*1.1,COLORYELLOW;EMA(EMA(EMA(COST(99.900002),5),5),5)*1.05,COLORYELLOW;EMA(EMA(EMA(COST(99.900002),5),5),5),COLORYELLOW;EMA(EMA(EMA(COST(99.900002),5),5),5)*0.95,COLORYELLOW;EMA(EMA(EMA(COST(99.900002),5),5),5)*0.9,COLORYELLOW;EMA(EMA(EMA(COST(99.900002),5),5),5)*0.85,COLORYELLOW;EMA(EMA(EMA(COST(0.01),5),5),5)*1.15,DOTLINE,COLORCYAN;EMA(EMA(EMA(COST(0.01),5),5),5)*1.1,DOTLINE,COLORCYAN;EMA(EMA(EMA(COST(0.01),5),5),5)*1.05,DOTLINE,COLORCYAN;EMA(EMA(EMA(COST(0.01),5),5),5),DOTLINE,COLORCYAN;EMA(EMA(EMA(COST(0.01),5),5),5)*0.95,DOTLINE,COLORCYAN;EMA(EMA(EMA(COST(0.01),5),5),5)*0.9,DOTLINE,COLORCYAN;EMA(EMA(EMA(COST(0.01),5),5),5)*0.85,DOTLINE,COLORCYAN;牛熊分界:EMA(EMA(EMA(COST(50),5),5),5)*0.85,COLORRED,LINETHICK2;X_17:=REF(HHV(HIGH,240),1)/1.2;X_18:=REF(HHV(HIGH,240),1)/1.1;X_19:=REF(HHV(HIGH,240),1);X_20:=REF(HHV(HIGH,240),1)*1.1;X_21:=REF(X_18,BARSLAST(CLOSE<X_18));X_22:=REF(X_19,BARSLAST(CLOSE<X_18));X_23:=REF(X_20,BARSLAST(CLOSE<X_18));X_24:=REF(X_17,BARSLAST(CLOSE<X_17));X_25:=REF(X_18,BARSLAST(CLOSE<X_17));X_26:=REF(X_19,BARSLAST(CLOSE<X_17));X_27:=REF(X_20,BARSLAST(CLOSE<X_17));X_28:=REF(LLV(LOW,240),1)/1.2;X_29:=REF(LLV(LOW,240),1)/1.1;X_30:=REF(LLV(LOW,240),1);X_31:=REF(LLV(LOW,240),1)*1.1;X_32:=REF(X_29,BARSLAST(CLOSE>X_29));X_33:=REF(X_30,BARSLAST(CLOSE>X_29));X_34:=REF(X_31,BARSLAST(CLOSE>X_29));X_35:=REF(X_28,BARSLAST(CLOSE>X_28));X_36:=REF(X_29,BARSLAST(CLOSE>X_28));X_37:=REF(X_30,BARSLAST(CLOSE>X_28));X_38:=REF(X_31,BARSLAST(CLOSE>X_28));X_39:=COST(0.001);X_40:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*2;X_41:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*4;X_42:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*6;X_43:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*8;X_44:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*10;X_45:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*12;X_46:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*14;X_47:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*16;X_48:=COST(0.001)+(COST(99.999001)-COST(0.001))/20*18;X_49:=COST(99.999001);X_50:=MAX(MAX(MAX(MAX(MAX(WINNER(X_40)-WINNER(X_39),WINNER(X_41)-WINNER(X_40)),MAX(WINNER(X_42)-WINNER(X_41),WINNER(X_43)-WINNER(X_42))),MAX(WINNER(X_44)-WINNER(X_43),WINNER(X_45)-WINNER(X_44))),MAX(WINNER(X_46)-WINNER(X_45),WINNER(X_47)-WINNER(X_46))),MAX(WINNER(X_48)-WINNER(X_47),WINNER(X_49)-WINNER(X_48)));X_51:=IF(X_50=WINNER(X_40)-WINNER(X_39),(X_40+X_39)/2,IF(X_50=WINNER(X_41)-WINNER(X_40),(X_41+X_40)/2,IF(X_50=WINNER(X_42)-WINNER(X_41),(X_42+X_41)/2,IF(X_50=WINNER(X_43)-WINNER(X_42),(X_43+X_42)/2,IF(X_50=WINNER(X_44)-WINNER(X_43),(X_44+X_43)/2,IF(X_50=WINNER(X_45)-WINNER(X_44),(X_45+X_44)/2,IF(X_50=WINNER(X_46)-WINNER(X_45),(X_46+X_45)/2,IF(X_50=WINNER(X_47)-WINNER(X_46),(X_47+X_46)/2,IF(X_50=WINNER(X_48)-WINNER(X_47),(X_48+X_47)/2,(X_49+X_48)/2)))))))));X_52:=DMA(CLOSE,VOL/CAPITAL)*100;X_53:=(CLOSE-LOW)/(HIGH-LOW)*100;X_54:=(HIGH-LOW)/(HIGH-LOW)*100;X_55:=X_54-X_53;X_56:=CLOSE;X_57:=COST(X_53);IF(X_56>X_51 AND X_56>X_24,牛熊分界,DRAWNULL),CROSSDOT,COLORYELLOW,LINETHICK7;IF(X_56>X_51 AND X_56>X_24,牛熊分界,DRAWNULL),CIRCLEDOT,COLORMAGENTA,LINETHICK2;IF(X_56>X_57 AND X_56>X_24,牛熊分界,DRAWNULL),CROSSDOT,COLORMAGENTA,LINETHICK7;IF(X_56>X_57 AND X_56>X_24,牛熊分界,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK2;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);DRAWTEXT_FIX(CLOSE>OPEN,0.01,0.9,0,200),COLORMAGENTA;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:(获利盘为97%的成本分布-COST(3))/10
X_2赋值:获利盘为3计算的获利盘比例+X_1*1%的成本分布-COST(3计算的获利盘比例+X_1*0)
X_3赋值:获利盘为3计算的获利盘比例+X_1*2%的成本分布-COST(3计算的获利盘比例+X_1*1)
X_4赋值:获利盘为3计算的获利盘比例+X_1*3%的成本分布-COST(3计算的获利盘比例+X_1*2)
X_5赋值:获利盘为3计算的获利盘比例+X_1*4%的成本分布-COST(3计算的获利盘比例+X_1*3)
X_6赋值:获利盘为3计算的获利盘比例+X_1*5%的成本分布-COST(3计算的获利盘比例+X_1*4)
X_7赋值:获利盘为3计算的获利盘比例+X_1*6%的成本分布-COST(3计算的获利盘比例+X_1*5)
X_8赋值:获利盘为3计算的获利盘比例+X_1*7%的成本分布-COST(3计算的获利盘比例+X_1*6)
X_9赋值:获利盘为3计算的获利盘比例+X_1*8%的成本分布-COST(3计算的获利盘比例+X_1*7)
X_10:=获利盘为3计算的获利盘比例+X_1*9%的成本分布-COST(3计算的获利盘比例+X_1*8)
X_11:=获利盘为3计算的获利盘比例+X_1*10%的成本分布-COST(3计算的获利盘比例+X_1*9)
X_12:=X_2和X_3较大值,X_4),X_5),X_6),X_7),X_8),X_9),X_10),X_11)
X_13:=IF(X_11>=X_12,获利盘为3%的成本分布+X_1*10,IF(X_10>=X_12,获利盘为3%的成本分布+X_1*9,IF(X_9>=X_12,获利盘为3%的成本分布+X_1*8,IF(X_8>=X_12,获利盘为3%的成本分布+X_1*7,IF(X_7>=X_12,获利盘为3%的成本分布+X_1*6,IF(X_6>=X_12,获利盘为3%的成本分布+X_1*5,IF(X_5>=X_12,获利盘为3%的成本分布+X_1*4,IF(X_4>=X_12,获利盘为3%的成本分布+X_1*3,IF(X_3>=X_12,获利盘为3%的成本分布+X_1*2,IF(X_2>=X_12,获利盘为3%的成本分布+X_1*1,0))))))))))
X_14:=IF(X_11X_15:=X_13-X_1*0.5
X_16:=X_14-X_1*0.5
DRAWBAND(X_15,RGB(56,94,15),X_16,RGB(56,94,15))
EMA(EMA(EMA(获利盘为99.900002%的成本分布,5),5),5)*1.15,画黄色
EMA(EMA(EMA(获利盘为99.900002%的成本分布,5),5),5)*1.1,画黄色
EMA(EMA(EMA(获利盘为99.900002%的成本分布,5),5),5)*1.05,画黄色
EMA(EMA(EMA(获利盘为99.900002%的成本分布,5),5),5),画黄色
EMA(EMA(EMA(获利盘为99.900002%的成本分布,5),5),5)*0.95,画黄色
EMA(EMA(EMA(获利盘为99.900002%的成本分布,5),5),5)*0.9,画黄色
EMA(EMA(EMA(获利盘为99.900002%的成本分布,5),5),5)*0.85,画黄色
EMA(EMA(EMA(获利盘为0.01%的成本分布,5),5),5)*1.15,DOTLINE,画青色
EMA(EMA(EMA(获利盘为0.01%的成本分布,5),5),5)*1.1,DOTLINE,画青色
EMA(EMA(EMA(获利盘为0.01%的成本分布,5),5),5)*1.05,DOTLINE,画青色
EMA(EMA(EMA(获利盘为0.01%的成本分布,5),5),5),DOTLINE,画青色
EMA(EMA(EMA(获利盘为0.01%的成本分布,5),5),5)*0.95,DOTLINE,画青色
EMA(EMA(EMA(获利盘为0.01%的成本分布,5),5),5)*0.9,DOTLINE,画青色
EMA(EMA(EMA(获利盘为0.01%的成本分布,5),5),5)*0.85,DOTLINE,画青色
输出牛熊分界:EMA(EMA(EMA(获利盘为50%的成本分布,5),5),5)*0.85,画红色, 线宽为2
X_17:=REF(240日内最高价最高值,1)/1.2
X_18:=REF(240日内最高价最高值,1)/1.1
X_19:=REF(240日内最高价最高值,1)
X_20:=REF(240日内最高价最高值,1)*1.1
X_21:=REF(X_18,上次收盘价X_22:=REF(X_19,上次收盘价X_23:=REF(X_20,上次收盘价X_24:=REF(X_17,上次收盘价X_25:=REF(X_18,上次收盘价X_26:=REF(X_19,上次收盘价X_27:=REF(X_20,上次收盘价X_28:=REF(240日内最低价最低值,1)/1.2
X_29:=REF(240日内最低价最低值,1)/1.1
X_30:=REF(240日内最低价最低值,1)
X_31:=REF(240日内最低价最低值,1)*1.1
X_32:=REF(X_29,上次收盘价>X_29距今天数)
X_33:=REF(X_30,上次收盘价>X_29距今天数)
X_34:=REF(X_31,上次收盘价>X_29距今天数)
X_35:=REF(X_28,上次收盘价>X_28距今天数)
X_36:=REF(X_29,上次收盘价>X_28距今天数)
X_37:=REF(X_30,上次收盘价>X_28距今天数)
X_38:=REF(X_31,上次收盘价>X_28距今天数)
X_39:=获利盘为0.001%的成本分布
X_40:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*2
X_41:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*4
X_42:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*6
X_43:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*8
X_44:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*10
X_45:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*12
X_46:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*14
X_47:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*16
X_48:=获利盘为0.001%的成本分布+(COST(99.999001)-获利盘为0.001%的成本分布)/20*18
X_49:=获利盘为99.999001%的成本分布
X_50:=MAX(MAX(MAX(MAX(MAX(X_40计算的获利盘比例-WINNER(X_39),WINNER(X_41)-X_40计算的获利盘比例),MAX(WINNER(X_42)-WINNER(X_41),WINNER(X_43)-WINNER(X_42))),MAX(WINNER(X_44)-WINNER(X_43),WINNER(X_45)-WINNER(X_44))),MAX(WINNER(X_46)-WINNER(X_45),WINNER(X_47)-WINNER(X_46))),MAX(WINNER(X_48)-WINNER(X_47),WINNER(X_49)-WINNER(X_48)))
X_51:=IF(X_50=X_40计算的获利盘比例-WINNER(X_39),(X_40+X_39)/2,IF(X_50=WINNER(X_41)-X_40计算的获利盘比例,(X_41+X_40)/2,IF(X_50=WINNER(X_42)-WINNER(X_41),(X_42+X_41)/2,IF(X_50=WINNER(X_43)-WINNER(X_42),(X_43+X_42)/2,IF(X_50=WINNER(X_44)-WINNER(X_43),(X_44+X_43)/2,IF(X_50=WINNER(X_45)-WINNER(X_44),(X_45+X_44)/2,IF(X_50=WINNER(X_46)-WINNER(X_45),(X_46+X_45)/2,IF(X_50=WINNER(X_47)-WINNER(X_46),(X_47+X_46)/2,IF(X_50=WINNER(X_48)-WINNER(X_47),(X_48+X_47)/2,(X_49+X_48)/2)))))))))
X_52:=D收盘价的成交量/当前流通股本日简单移动平均*100
X_53:=(收盘价-最低价)/(最高价-最低价)*100
X_54:=(最高价-最低价)/(最高价-最低价)*100
X_55:=X_54-X_53
X_56:=收盘价
X_57:=获利盘为X_53%的成本分布
如果X_56>X_51 AND X_56>X_24返回牛熊分界否则返回DRAWNULL
如果X_56>X_51 AND X_56>X_24返回牛熊分界否则返回DRAWNULL
如果X_56>X_57 AND X_56>X_24返回牛熊分界否则返回DRAWNULL
如果X_56>X_57 AND X_56>X_24返回牛熊分界否则返回DRAWNULL
DRAWKLINE(最高价,开盘价,最低价,收盘价)
当满足条件收盘价>开盘价时,在横轴0.01纵轴0.9位置书写文字