{公式名称: 铃珑期货分时B
公式描述:
参数数量: 2
参数1: N, 最小: 1, 最大: 30, 缺省: 5
参数2: M, 最小: 1, 最大: 30, 缺省: 15
公式类型: 技术指标公式-龙系
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
N: Param#0 (1.00--30.00)
M: Param#1 (1.00--30.00)
用法注释:无
公式源码:}
H1:EMA(CLOSE,12),COLORGREEN,LINETHICK6;
IF(H1>REF(H1,1),H1,DRAWNULL),COLORRED,LINETHICK6;
H2:EMA(H1,50),COLORGREEN,LINETHICK6;
IF(H2>REF(H2,1),H2,DRAWNULL),COLORRED,LINETHICK6;
DRAWBAND(H1,RGB(110,11,80),H2,RGB(10,110,10));
X_1:=CLOSE;
X_2:=ZSTJJ;
X_3:=SUM(CLOSE*VOL,240)/SUM(VOL,240);
X_4:=SUM(CLOSE*VOL,0)/SUM(VOL,0);
IF(CLOSE>0,X_3,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(CLOSE>0,X_1,DRAWNULL),COLORWHITE;
X_5:=REF(CLOSE,1);
X_6:=SMA(MAX(CLOSE-X_5,0),14,1)/SMA(ABS(CLOSE-X_5),14,1)*100;
X_7:=CROSS(80,X_6);
X_8:=FILTER(X_7,40) AND CLOSE/X_4>1.004;
DRAWICON(X_8,CLOSE*1.002,41);
X_9:=CROSS(X_6,20);
X_10:=FILTER(X_9,40) AND CLOSE/X_4<0.996;
DRAWICON(X_10,CLOSE*0.997,38);
X_11:=CLOSE>REF(CLOSE,1) AND CLOSE/X_2>1+N/1000;
X_12:=CLOSE<REF(CLOSE,1) AND CLOSE/X_2<1-N/1000;
X_13:=CROSS(SUM(X_11,0),0.5);
X_14:=CROSS(SUM(X_12,0),0.5);
X_15:=SUM(X_13,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_13)),0.5);
X_16:=SUM(X_14,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_14)),0.5);
X1:CONST(SUM(IF(X_15,REF(CLOSE,1),DRAWNULL),0)),DOTLINE,COLORWHITE;
Z1:CONST(SUM(IF(X_16,REF(CLOSE,1),DRAWNULL),0)),DOTLINE,COLORGREEN;
X_17:=CROSS(SUM(X_11 AND CLOSE>X1*1.01,0),0.5);
X_18:=CROSS(SUM(X_12 AND CLOSE<Z1*0.99,0),0.5);
X_19:=SUM(X_17,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_17)),0.5);
X_20:=SUM(X_18,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_18)),0.5);
X2:CONST(SUM(IF(X_19,REF(CLOSE,1),DRAWNULL),0)),COLORWHITE;
Z2:CONST(SUM(IF(X_20,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN;
DRAWICON(X_16,REF(CLOSE*0.9995,1),34);
DRAWICON(X_20,REF(CLOSE*0.9995,1),1);
DRAWICON(X_20,REF(CLOSE*0.997,1),44);
DRAWICON(X_15,REF(CLOSE*1.0003,1),35);
DRAWICON(X_19,REF(CLOSE*1.0003,1),2);
DRAWICON(X_19,REF(CLOSE*1.002,1),45);
X_21:=CLOSE>REF(CLOSE,1) AND CLOSE/X_2>1+M/1000;
X_22:=CLOSE<REF(CLOSE,1) AND CLOSE/X_2<1-M/1000;
X_23:=CROSS(SUM(X_21,0),0.5);
X_24:=CROSS(SUM(X_22,0),0.5);
X_25:=SUM(X_23,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_23)),0.5);
X_26:=SUM(X_24,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_24)),0.5);
X_27:=CONST(SUM(IF(X_25,REF(CLOSE,1),DRAWNULL),0));
X_28:=CONST(SUM(IF(X_26,REF(CLOSE,1),DRAWNULL),0));
X_29:=CROSS(SUM(X_21 AND CLOSE>X_27*1.02,0),0.5);
X_30:=CROSS(SUM(X_22 AND CLOSE<X_28*0.98,0),0.5);
X_31:=SUM(X_29,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_29)),0.5);
X_32:=SUM(X_30,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_30)),0.5);
X_33:=CONST(SUM(IF(X_31,REF(CLOSE,1),DRAWNULL),0));
X_34:=CONST(SUM(IF(X_32,REF(CLOSE,1),DRAWNULL),0));
DRAWICON(X_31,CLOSE*1.002,12);
DRAWICON(X_32,CLOSE*0.998,11);
X_35:=CLOSE>REF(CLOSE,1) AND CLOSE/X_2>1.01;
X_36:=CLOSE<REF(CLOSE,1) AND CLOSE/X_2<0.99;
X_37:=CROSS(SUM(X_35,0),0.5);
X_38:=CROSS(SUM(X_36,0),0.5);
X_39:=SUM(X_37,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_37)),0.5);
X_40:=SUM(X_38,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_38)),0.5);
X_41:=CONST(SUM(IF(X_39,REF(CLOSE,1),DRAWNULL),0));
X_42:=CONST(SUM(IF(X_40,REF(CLOSE,1),DRAWNULL),0));
DRAWICON(X_39,CLOSE*1.002,36);
DRAWICON(X_40,CLOSE*0.9979,37);
|