筹码分布主图,筹码类精品,和谐源码分享(通达信公式 主图 源码 测试图
通达信免费指标
09-16
阅读:997
评论:0
{公式名称: 筹码分布主图2
公式描述:
参数数量: 8
参数1: M1, 最小: 0, 最大: 999, 缺省: 0
参数2: M2, 最小: 0, 最大: 999, 缺省: 0
参数3: M3, 最小: 0, 最大: 999, 缺省: 0
参数4: M4, 最小: 0, 最大: 999, 缺省: 0
参数5: 小浪, 最小: 0, 最大: 999, 缺省: 10
参数6: 中浪, 最小: 0, 最大: 999, 缺省: 20
参数7: 大浪, 最小: 0, 最大: 999, 缺省: 60
参数8: 巨浪, 最小: 0, 最大: 999, 缺省: 120
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精翏:
请设置计算参数:
M1: PARAM#0 (0.00--999.00)
M2: PARAM#1 (0.00--999.00)
M3: PARAM#2 (0.00--999.00)
M4: PARAM#3 (0.00--999.00)
小浪: PARAM#4 (0.00--999.00)
中浪: PARAM#5 (0.00--999.00)
大浪: PARAM#6 (0.00--999.00)
巨浪: PARAM#7 (0.00--999.00)
用法注蕭:无
公式源码:}
XA_1:=COST(1);
XA_2:=COST(10);
XA_3:=COST(20);
XA_4:=COST(30);
XA_5:=COST(40);
XA_6:=COST(50);
XA_7:=COST(60);
XA_8:=COST(70);
XA_9:=COST(80);
XA_10:=COST(90);
XA_11:=COST(99);
XA_12:=COST(5);
XA_13:=COST(15);
XA_14:=COST(25);
XA_15:=COST(35);
XA_16:=COST(45);
XA_17:=COST(55);
XA_18:=COST(65);
XA_19:=COST(75);
XA_20:=COST(85);
XA_21:=COST(95);
XA_22:=XA_12-XA_1;
XA_23:=XA_2-XA_12;
XA_24:=XA_13-XA_2;
XA_25:=XA_3-XA_13;
XA_26:=XA_14-XA_3;
XA_27:=XA_4-XA_14;
XA_28:=XA_15-XA_4;
XA_29:=XA_5-XA_15;
XA_30:=XA_16-XA_5;
XA_31:=XA_6-XA_16;
XA_32:=XA_17-XA_6;
XA_33:=XA_7-XA_17;
XA_34:=XA_18-XA_7;
XA_35:=XA_8-XA_18;
XA_36:=XA_19-XA_8;
XA_37:=XA_9-XA_19;
XA_38:=XA_20-XA_9;
XA_39:=XA_10-XA_20;
XA_40:=XA_21-XA_10;
XA_41:=XA_11-XA_21;
XA_42:=1;
XA_43:=MIN(XA_22,MIN(XA_23,MIN(XA_24,MIN(XA_25,MIN(XA_26,MIN(XA_27,MIN(XA_28,MIN(XA_29,MIN(XA_30,MIN(XA_31,MIN(XA_32,MIN(XA_33,MIN(XA_34,MIN(XA_35,MIN(XA_36,MIN(XA_37,MIN(XA_38,MIN(XA_39,MIN(XA_40,XA_41)))))))))))))))))))*XA_42;
STICKLINE(XA_43=XA_22,XA_1,XA_12,5,0),COLORFF8800;
STICKLINE(XA_43=XA_23,XA_2,XA_12,5,0),COLORFF8800;
STICKLINE(XA_43=XA_24,XA_13,XA_2,5,0),COLORFF8800;
STICKLINE(XA_43=XA_25,XA_3,XA_13,5,0),COLORFF8800;
STICKLINE(XA_43=XA_26,XA_14,XA_3,5,0),COLORFF8800;
STICKLINE(XA_43=XA_27,XA_4,XA_14,5,0),COLORFF8800;
STICKLINE(XA_43=XA_28,XA_15,XA_4,5,0),COLORFF8800;
STICKLINE(XA_43=XA_29,XA_5,XA_15,5,0),COLORFF8800;
STICKLINE(XA_43=XA_30,XA_16,XA_5,5,0),COLORFF8800;
STICKLINE(XA_43=XA_31,XA_6,XA_16,5,0),COLORFF8800;
STICKLINE(XA_43=XA_32,XA_17,XA_6,5,0),COLORFF8800;
STICKLINE(XA_43=XA_33,XA_7,XA_17,5,0),COLORFF8800;
STICKLINE(XA_43=XA_34,XA_18,XA_7,5,0),COLORFF8800;
STICKLINE(XA_43=XA_35,XA_8,XA_18,5,0),COLORFF8800;
STICKLINE(XA_43=XA_36,XA_19,XA_8,5,0),COLORFF8800;
STICKLINE(XA_43=XA_37,XA_9,XA_19,5,0),COLORFF8800;
STICKLINE(XA_43=XA_38,XA_20,XA_8,5,0),COLORFF8800;
STICKLINE(XA_43=XA_39,XA_10,XA_20,5,0),COLORFF8800;
STICKLINE(XA_43=XA_40,XA_21,XA_10,5,0),COLORFF8800;
STICKLINE(XA_43=XA_41,XA_11,XA_21,1,0),COLORFF8800;
XA_44:=(XA_11-XA_1)*XA_42;
XA_45:=XA_10-XA_8;
XA_46:=XA_9-XA_7;
XA_47:=XA_8-XA_6;
XA_48:=XA_7-XA_5;
XA_49:=XA_6-XA_4;
XA_50:=XA_5-XA_3;
XA_51:=XA_4-XA_2;
XA_52:=MIN(XA_45/XA_44,MIN(XA_46/XA_44,MIN(XA_46/XA_44,MIN(XA_48/XA_44,MIN(XA_49/XA_44,MIN(XA_50/XA_44,XA_51/XA_44))))))<0.05;
密集周期:BARSLASTCOUNT(XA_52),NODRAW;
STICKLINE(XA_45/XA_44<0.05,XA_10,XA_8,5,0),COLOR006600;
STICKLINE(XA_46/XA_44<0.05,XA_9,XA_7,5,0),COLOR006600;
STICKLINE(XA_47/XA_44<0.05,XA_8,XA_6,5,0),COLOR006600;
STICKLINE(XA_48/XA_44<0.05,XA_7,XA_5,5,0),COLOR006600;
STICKLINE(XA_49/XA_44<0.05,XA_6,XA_4,5,0),COLOR006600;
STICKLINE(XA_50/XA_44<0.05,XA_5,XA_3,5,0),COLOR006600;
STICKLINE(XA_51/XA_44<0.05,XA_4,XA_2,5,0),COLOR006600;
XA_53:=IF(XA_43=XA_22,XA_12,IF(XA_43=XA_23,XA_2,IF(XA_43=XA_24,XA_13,IF(XA_43=XA_25,XA_3,IF(XA_43=XA_26,XA_14,IF(XA_43=XA_27,XA_4,IF(XA_43=XA_28,XA_15,IF(XA_43=XA_29,XA_5,IF(XA_43=XA_30,XA_16,IF(XA_43=XA_31,XA_6,0))))))))));
XA_54:=IF(XA_43=XA_32,XA_17,IF(XA_43=XA_33,XA_7,IF(XA_43=XA_34,XA_18,IF(XA_43=XA_35,XA_8,IF(XA_43=XA_36,XA_8,IF(XA_43=XA_37,XA_9,IF(XA_43=XA_38,XA_20,IF(XA_43=XA_39,XA_10,IF(XA_43=XA_40,XA_21,IF(XA_43=XA_41,XA_11,0))))))))));
峰顶价:MAX(XA_53,XA_54),NODRAW;
筹码乖离率:(CLOSE-峰顶价)/峰顶价*100,NODRAW;
筹码锁定率:(峰顶价-REF(峰顶价,4))/峰顶价*100,NODRAW;
筹码集中度:(XA_21-XA_12)/COST(100)*100,NODRAW;
成本:(COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5*XA_42,COLORWHITE,LINETHICK2;
HYDB2:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XA_55:=IF(PERIOD=5,1,0);
XA_56:=REF(CLOSE,1)*XA_55;
XA_57:=(HIGH*18+REF(HIGH,1)*17+REF(HIGH,2)*16+REF(HIGH,3)*15+REF(HIGH,4)*14+REF(HIGH,5)*13+REF(HIGH,6)*12+REF(HIGH,7)*11+REF(HIGH,8)*10+REF(HIGH,9)*9+REF(HIGH,10)*8+REF(HIGH,11)*7+REF(HIGH,12)*6+REF(HIGH,13)*5+REF(HIGH,14)*4+REF(HIGH,15)*3+REF(HIGH,16)*2+REF(HIGH,17)*1)/171*XA_42;
XA_58:=(LOW*18+REF(LOW,1)*17+REF(LOW,2)*16+REF(LOW,3)*15+REF(LOW,4)*14+REF(LOW,5)*13+REF(LOW,6)*12+REF(LOW,7)*11+REF(LOW,8)*10+REF(LOW,9)*9+REF(LOW,10)*8+REF(LOW,11)*7+REF(LOW,12)*6+REF(LOW,13)*5+REF(LOW,14)*4+REF(LOW,15)*3+REF(LOW,16)*2+REF(LOW,17)*1)/171*XA_42;
XA_59:=MA(CLOSE,M1);
XA_60:=MA(CLOSE,M2);
XA_61:=MA(CLOSE,M3);
XA_62:=MA(CLOSE,M4);
XA_63:=CLOSE>=XA_57 OR (CLOSE>XA_59 AND CLOSE>XA_60 AND CLOSE>XA_61 AND CLOSE>XA_62);
XA_64:=XA_58>CLOSE OR (CLOSE<XA_59 AND CLOSE<XA_60 AND CLOSE<XA_61 AND CLOSE<XA_62);
XA_65:=BARSLAST(XA_63);
XA_66:=BARSLAST(XA_64);
XA_67:=BARSLAST(CROSS(XA_66,XA_65));
XA_68:=BARSLAST(CROSS(XA_65,XA_66));
XA_69:=XA_67<XA_68;
XA_70:=XA_68<XA_67;
XA_71:=OPEN-CLOSE;
XA_72:=IF(OPEN>CLOSE,OPEN,CLOSE);
XA_73:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE(XA_71>0 AND XA_69,OPEN,CLOSE,3.1,0),COLORRED;
STICKLINE(XA_71>0 AND XA_69,OPEN,HIGH,0,0),COLORRED;
STICKLINE(XA_71>0 AND XA_69,CLOSE,LOW,0,0),COLORRED;
STICKLINE(XA_71<=0 AND XA_69,OPEN,CLOSE,3.1,1),COLORRED;
STICKLINE(XA_71<=0 AND XA_69,OPEN,LOW,0,0),COLORRED;
STICKLINE(XA_71<=0 AND XA_69,CLOSE,HIGH,0,0),COLORRED;
STICKLINE(XA_71>0 AND XA_70,OPEN,CLOSE,3.1,0),COLORGREEN;
STICKLINE(XA_71>0 AND XA_70,OPEN,HIGH,0,0),COLORGREEN;
STICKLINE(XA_71>0 AND XA_70,CLOSE,LOW,0,0),COLORGREEN;
STICKLINE(XA_71<=0 AND XA_70,OPEN,CLOSE,3.1,1),COLORGREEN;
STICKLINE(XA_71<=0 AND XA_70,CLOSE,HIGH,0,0),COLORGREEN;
STICKLINE(XA_71<=0 AND XA_70,OPEN,LOW,0,0),COLORGREEN;
趋势线:(XA_57+XA_58)/2,COLORGREEN,LINETHICK2;
趋势上升:IF(XA_69,趋势线,DRAWNULL),COLORRED,LINETHICK2;
趋势下降:IF(XA_70,趋势线,DRAWNULL),COLORGREEN,LINETHICK2;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!