{公式名称: 玲珑期货自调 公式描述:
参数数量: 2
参数1: G, 最小: 1, 最大: 30, 缺省: 5
参数2: D, 最小: 1, 最大: 30, 缺省: 5
公式类型: 技术指标公式-龙系
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
G: Param#0 (1.00--30.00)
D: Param#1 (1.00--30.00)
用法注释:无
公式源码:}
J1:CLOSE,COLORWHITE;
X_1:=ZSTJJ;
A3:SUM(CLOSE*VOL,240)/SUM(VOL,240),COLORYELLOW;
X_2:=CLOSE>REF(CLOSE,1) AND CLOSE/X_1>1+G/1000;
X_3:=CLOSE<REF(CLOSE,1) AND CLOSE/X_1<1-D/1000;
X_4:=CROSS(SUM(X_2,0),0.5);
X_5:=CROSS(SUM(X_3,0),0.5);
X_6:=SUM(X_4,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_4)),0.5);
X_7:=SUM(X_5,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_5)),0.5);
F1:CONST(SUM(IF(X_6,REF(CLOSE,1),DRAWNULL),0)),DOTLINE,COLORWHITE;
F2:CONST(SUM(IF(X_7,REF(CLOSE,1),DRAWNULL),0)),DOTLINE,COLORGREEN;
X_8:=CROSS(SUM(X_2 AND CLOSE>F1*1.01,0),0.5);
X_9:=CROSS(SUM(X_3 AND CLOSE<F2*0.99,0),0.5);
X_10:=SUM(X_8,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_8)),0.5);
X_11:=SUM(X_9,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_9)),0.5);
F3:CONST(SUM(IF(X_10,REF(CLOSE,1),DRAWNULL),0)),COLORWHITE;
F4:CONST(SUM(IF(X_11,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN;
DRAWICON(X_6,REF(HIGH*1.002,1),2);
DRAWICON(X_10,REF(HIGH*1.002,1),2);
DRAWICON(X_7,REF(CLOSE*0.998,1),1);
DRAWICON(X_11,REF(CLOSE*0.998,1),1);
|
