偷摸过锋_选通达信公式 源码附图
X_1:=10;
X_2:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*1,1);
X_3:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*2,1);
X_4:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*3,1);
X_5:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*4,1);
X_6:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*5,1);
X_7:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*6,1);
X_8:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*7,1);
X_9:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*8,1);
X_10:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*9,1);
X_11:=FINDHIGH(MAX(CLOSE,OPEN),3,X_1*10,1);
X_12:=1.03;
X_13:=0.985;
X_14:=CLOSE>REF(CLOSE,1) AND CLOSE>OPEN;
X_15:=CLOSE>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)*X_12;
X_16:=VOL<REF(VOL,1);
X_17:=X_15 AND X_16 AND X_14 AND REF(X_14,1);
PWS:X_17 AND (CLOSE>=X_2*X_13 AND CLOSE<=X_2*X_12 OR CLOSE>=X_3*X_13 AND CLOSE<=X_3*X_12 OR CLOSE>=X_4*X_13 AND CLOSE<=X_4*X_12 OR CLOSE>=X_5*X_13 AND CLOSE<=X_5*X_12 OR CLOSE>=X_6*X_13 AND CLOSE<=X_6*X_12 OR CLOSE>=X_7*X_13 AND CLOSE<=X_7*X_12 OR CLOSE>=X_8*X_13 AND CLOSE<=X_8*X_12 OR CLOSE>=X_9*X_13 AND CLOSE<=X_9*X_12 OR CLOSE>=X_10*X_13 AND CLOSE<=X_10*X_12 OR CLOSE>=X_11*X_13 AND CLOSE<=X_11*X_12);
未来函数检测结果如下:
该公式包含未来函数:DHIGH
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:10
X_2赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*1,1)
X_3赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*2,1)
X_4赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*3,1)
X_5赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*4,1)
X_6赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*5,1)
X_7赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*6,1)
X_8赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*7,1)
X_9赋值:FIND最高价(收盘价和开盘价较大值,3,X_1*8,1)
X_10:=FIND最高价(收盘价和开盘价较大值,3,X_1*9,1)
X_11:=FIND最高价(收盘价和开盘价较大值,3,X_1*10,1)
X_12:=1.03
X_13:=0.985
X_14:=收盘价>1日前的收盘价 AND 收盘价>开盘价
X_15:=收盘价>1日前的收盘价 AND 收盘价<1日前的收盘价*X_12
X_16:=成交量<1日前的成交量
X_17:=X_15 AND X_16 AND X_14 AND 1日前的X_14
输出PWS:X_17 AND (收盘价>=X_2*X_13 AND 收盘价<=X_2*X_12 OR 收盘价>=X_3*X_13 AND 收盘价<=X_3*X_12 OR 收盘价>=X_4*X_13 AND 收盘价<=X_4*X_12 OR 收盘价>=X_5*X_13 AND 收盘价<=X_5*X_12 OR 收盘价>=X_6*X_13 AND 收盘价<=X_6*X_12 OR 收盘价>=X_7*X_13 AND 收盘价<=X_7*X_12 OR 收盘价>=X_8*X_13 AND 收盘价<=X_8*X_12 OR 收盘价>=X_9*X_13 AND 收盘价<=X_9*X_12 OR 收盘价>=X_10*X_13 AND 收盘价<=X_10*X_12 OR 收盘价>=X_11*X_13 AND 收盘价<=X_11*X_12)