{公式名称: 撑压线
公式描述:
参数数量: 1
参数1: X, 最小: 0, 最大: 1, 缺省: 0
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
X: Param#0 (0.00--1.00)
用法譯释:无
公式源码:}
如果涨10倍:IF(X,CONST(LLV(LOW,250)*10),DRAWNULL);
STICKLINE(如果涨10倍,如果涨10倍,如果涨10倍*1.1,1,0);
X_1:=CLOSE/REF(CLOSE,1)>1.095;
STICKLINE(X_1,OPEN,CLOSE,0.8,0),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
X_2:=MA(VOL,5);
X_3:=CONST(PEAKBARS(X_2,50,1));
X_4:=CONST(PEAKBARS(X_2,50,2));
X_5:=CONST(PEAKBARS(X_2,50,3));
X_6:=CONST(PEAKBARS(X_2,50,4));
X_7:=CONST(PEAKBARS(X_2,50,5));
X_8:=CONST(PEAKBARS(X_2,50,6));
X_9:=CONST(TROUGHBARS(X_2,50,1));
X_10:=CONST(TROUGHBARS(X_2,50,2));
X_11:=CONST(TROUGHBARS(X_2,50,3));
X_12:=CONST(TROUGHBARS(X_2,50,4));
X_13:=CONST(TROUGHBARS(X_2,50,5));
X_14:=CONST(TROUGHBARS(X_2,50,6));
X_15:=CONST(FINDLOW(LOW,X_3,X_4-X_3,1));
X_16:=CONST(FINDLOW(LOW,X_4,X_5-X_4,1));
X_17:=CONST(FINDLOW(LOW,X_5,X_6-X_5,1));
X_18:=CONST(FINDLOW(LOW,X_6,X_7-X_6,1));
X_19:=CONST(FINDLOW(LOW,X_7,X_8-X_7,1));
DRAWLINE(LOW=X_15 AND CURRBARSCOUNT>X_3,X_15,CURRBARSCOUNT=1,X_15,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_16 AND CURRBARSCOUNT>X_4,X_16,CURRBARSCOUNT=1,X_16,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_17 AND CURRBARSCOUNT>X_5,X_17,CURRBARSCOUNT=1,X_17,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_18 AND CURRBARSCOUNT>X_6,X_18,CURRBARSCOUNT=1,X_18,1),DOTLINE,COLORGREEN;
DRAWLINE(LOW=X_19 AND CURRBARSCOUNT>X_7,X_19,CURRBARSCOUNT=1,X_19,1),DOTLINE,COLORGREEN;
X_20:=CONST(FINDHIGH(HIGH,X_9,X_10-X_9,1));
X_21:=CONST(FINDHIGH(HIGH,X_10,X_11-X_10,1));
X_22:=CONST(FINDHIGH(HIGH,X_11,X_12-X_11,1));
X_23:=CONST(FINDHIGH(HIGH,X_12,X_13-X_12,1));
X_24:=CONST(FINDHIGH(HIGH,X_13,X_14-X_13,1));
DRAWLINE(HIGH=X_20 AND CURRBARSCOUNT>X_9,HIGH,CURRBARSCOUNT=1,X_20,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_21 AND CURRBARSCOUNT>X_10,HIGH,CURRBARSCOUNT=1,X_21,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_22 AND CURRBARSCOUNT>X_11,HIGH,CURRBARSCOUNT=1,X_22,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_23 AND CURRBARSCOUNT>X_12,HIGH,CURRBARSCOUNT=1,X_23,1),DOTLINE,COLORRED;
DRAWLINE(HIGH=X_24 AND CURRBARSCOUNT>X_13,HIGH,CURRBARSCOUNT=1,X_24,1),DOTLINE,COLORRED;
p20204130453547542.jpg
|