通达信寻龙风向标副图指标 源码分享 附图
X_1:=IF(PERIOD<3,35,IF(PERIOD<=5,28,IF(PERIOD<=7,21,IF(PERIOD<=8,14,IF(PERIOD<=9,7,5)))));
X_2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_3:=MAX(HIGH-LOW,MAX(HIGH-REF(CLOSE,1),REF(CLOSE,1)-LOW))/REF(CLOSE,1)*100;
X_4:=(HIGH-LOW)/REF(CLOSE,1)*100;
X_5:=VOL/REF(MA(VOL,5),1);
X_6:=VOL;
X_7:=(HIGH+LOW+CLOSE)/3;
X_8:=CLOSE>X_7;
X_9:=CLOSE<X_7;
X_10:=X_2*X_6;
X_11:=ABS(IF(X_9,X_10,0));
X_12:=IF(X_8,X_10,0);
X_13:=ABS(SUM(IF(X_10<0,X_10,0),7));
X_14:=SUM(IF(X_10>0,X_10,0),7);
X_15:=ABS(X_13-X_14);
X_16:=49;
X_17:=(X_13+X_14)/2;
X_18:=STDP(MAX(X_13,X_14),X_16);
X_19:=STDP(MIN(X_13,X_14),X_16);
X_20:=WMA(X_17,X_16);
X_21:=X_20+1.618*X_18;
X_22:=X_20-1.618*X_19;
X_23:=X_14>X_13 AND X_14>=X_20;
X_24:=X_13>X_14 AND X_13>=X_20;
X_25:=X_14>X_13 AND X_14>X_21;
X_26:=X_13>X_14 AND X_13>X_21;
X_27:=X_14<X_13 AND X_14<X_22;
X_28:=X_13<X_14 AND X_13<X_22;
X_29:=X_14>=HHV(X_14,100) AND X_14>0;
X_30:=X_13>=HHV(X_13,100) AND X_13>0;
X_31:=X_14<=LLV(X_14,100);
X_32:=X_13<=LLV(X_13,100);
STICKLINE(X_23,X_14,MAX(X_20,X_13),2,0),COLORRED;
STICKLINE(X_24,X_13,MAX(X_20,X_14),2,0),COLORGREEN;
STICKLINE(X_25,X_14,MAX(X_21,X_13),2,0),COLORYELLOW;
STICKLINE(X_26,X_13,MAX(X_21,X_14),2,0),COLORWHITE;
X_33:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
X_34:=CLOSE/REF(CLOSE,1)>=1.08 AND CLOSE=HIGH AND NOT(CODELIKE(3));
STICKLINE(X_25 AND X_34 AND X_33<20,MAX(X_21,X_13),MAX(X_21,X_13)*2,2,0),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:COST
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
X_1赋值:IF(周期类型<3,35,IF(周期类型<=5,28,IF(周期类型<=7,21,IF(周期类型<=8,14,IF(周期类型<=9,7,5)))))
X_2赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100
X_3赋值:MAX(最高价-最低价,MAX(最高价-1日前的收盘价,1日前的收盘价-最低价))/1日前的收盘价*100
X_4赋值:(最高价-最低价)/1日前的收盘价*100
X_5赋值:成交量/REF(成交量的5日简单移动平均,1)
X_6赋值:成交量
X_7赋值:(最高价+最低价+收盘价)/3
X_8赋值:收盘价>X_7
X_9赋值:收盘价
X_10:=X_2*X_6
如果X_9返回X_10否则返回0
如果X_8返回X_10否则返回0
如果X_10<0返回X_10否则返回0
如果X_10>0返回X_10否则返回0
X_15:=X_13-X_14的绝对值
X_16:=49
X_17:=(X_13+X_14)/2
X_18:=X_16的X_13和X_14较大值总体标准差
X_19:=X_16的X_13和X_14的较小值总体标准差
X_20:=WX_17的X_16日简单移动平均
X_21:=X_20+1.618*X_18
X_22:=X_20-1.618*X_19
X_23:=X_14>X_13 AND X_14>=X_20
X_24:=X_13>X_14 AND X_13>=X_20
X_25:=X_14>X_13 AND X_14>X_21
X_26:=X_13>X_14 AND X_13>X_21
X_27:=X_14
X_28:=X_13
X_29:=X_14>=100日内X_14最高值 AND X_14>0
X_30:=X_13>=100日内X_13最高值 AND X_13>0
X_31:=X_14<=100日内X_14最低值
X_32:=X_13<=100日内X_13最低值
STICKLINE(X_23,X_14,X_20和X_13较大值,2,0),画红色
STICKLINE(X_24,X_13,X_20和X_14较大值,2,0),画绿色
STICKLINE(X_25,X_14,X_21和X_13较大值,2,0),画黄色
STICKLINE(X_26,X_13,X_21和X_14较大值,2,0),画白色
X_33:=(获利盘为95%的成本分布-COST(5))/(获利盘为95%的成本分布+COST(5))*100
X_34:=收盘价/1日前的收盘价>=1.08 AND 收盘价=最高价 AND NOT(CODELIKE(3))
STICKLINE(X_25 AND X_34 AND X_33<20,X_21和X_13较大值,X_21和X_13较大值*2,2,0),画绿色