JC决策曲线通达信公式 副图 源码附图
XA_1:=MA(CLOSE,5);
XA_2:=MA(CLOSE,10);
XA_3:=IF(XA_1>XA_2,3,IF(XA_2>XA_1,(-3),0));
XA_4:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
XA_5:=EMA(XA_4,3);
XA_6:=EMA(XA_5,3);
XA_7:=IF(XA_5>XA_6,3,IF(XA_6>XA_5,(-3),0));
XA_8:=EMA(CLOSE,12)-EMA(CLOSE,26);
XA_9:=EMA(XA_8,9);
XA_10:=(XA_8-XA_9)*2;
XA_11:=IF(XA_8>XA_9,3,IF(XA_9>XA_8,(-3),0));
XA_12:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
XA_13:=IF(XA_12>80,3,IF(XA_12<20,(-3),0));
XA_14:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
XA_15:=SUM(IF(CLOSE=REF(CLOSE,1),0,XA_14),0);
XA_16:=IF(XA_15>EMA(XA_15,24),4,IF(XA_15<EMA(XA_15,24),(-4),0));
XA_17:=REF(CLOSE,1);{股票指标网 整理}
XA_18:=EMA(MAX(CLOSE-XA_17,0),5)/EMA(ABS(CLOSE-XA_17),5)*100;
XA_19:=IF(XA_18>80,4,IF(XA_18<20,(-4),0));
XA_20:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);
XA_21:=HIGH-REF(HIGH,1);
XA_22:=REF(LOW,1)-LOW;
XA_23:=EMA(IF(XA_21>0 AND XA_21>XA_22,XA_21,0),7);
XA_24:=EMA(IF(XA_22>0 AND XA_22>XA_21,XA_22,0),7);
XA_25:=XA_23*100/XA_20;
XA_26:=XA_24*100/XA_20;
XA_27:=EMA(ABS(XA_26-XA_25)/(XA_26+XA_25)*100,7);
XA_28:=EMA(XA_27,7);
XA_29:=IF(XA_25>XA_26 AND XA_27>XA_25 AND XA_27>50,4,IF(XA_25<XA_26 AND XA_27>XA_26 AND XA_27>50,(-4),0));
XA_30:=MA(CLOSE,12);
XA_31:=(CLOSE-XA_30)*(CLOSE-XA_30);
XA_32:=MA(XA_31,12);
XA_33:=SQRT(XA_32);
XA_34:=1;
XA_35:=XA_30+XA_34*XA_33;
XA_36:=XA_30-XA_34*XA_33;
XA_37:=IF(CLOSE>XA_35,4,IF(CLOSE<XA_36,(-4),0));
XA_38:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)*100;
XA_39:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;
XA_40:=IF(XA_38>350 OR XA_39>180,4,IF(XA_38<45 OR XA_39<45,(-4),0));
XA_41:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),14);
XA_42:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),14);
XA_43:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);
XA_44:=100*(XA_41*2+XA_43)/(XA_42*2+XA_43);
XA_45:=IF(XA_44>350,4,IF(XA_44<45,(-4),0));
决策曲线:XA_3+XA_7+XA_11+XA_13+XA_16+XA_19+XA_29+XA_37+XA_40+XA_45+36,LINETHICK2;
均线:MA(决策曲线,8);
36,COLORCYAN;
56,COLORCYAN;
60,COLORCYAN;
70,COLORCYAN;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
XA_1赋值:收盘价的5日简单移动平均
XA_2赋值:收盘价的10日简单移动平均
XA_3赋值:IF(XA_1>XA_2,3,IF(XA_2>XA_1,(-3),0))
XA_4赋值:(收盘价-5日内最低价最低值)/(5日内最高价最高值-5日内最低价最低值)*100
XA_5赋值:XA_4的3日指数移动平均
XA_6赋值:XA_5的3日指数移动平均
XA_7赋值:IF(XA_5>XA_6,3,IF(XA_6>XA_5,(-3),0))
XA_8赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
XA_9赋值:XA_8的9日指数移动平均
XA_10:=(XA_8-XA_9)*2
XA_11:=IF(XA_8>XA_9,3,IF(XA_9>XA_8,(-3),0))
XA_12:=(收盘价-6日内最低价最低值)/(6日内最高价最高值-6日内最低价最低值)*100
XA_13:=IF(XA_12>80,3,IF(XA_12<20,(-3),0))
XA_14:=IF(收盘价>1日前的收盘价,成交量,-成交量)
XA_15:=SUM(IF(收盘价=1日前的收盘价,0,XA_14),0)
XA_16:=IF(XA_15>XA_15的24日指数移动平均,4,IF(XA_15
XA_17:=1日前的收盘价
{股票指标网 整理}
XA_18:=E收盘价-XA_17和0较大值的5日简单移动平均/EMA(收盘价-XA_17的绝对值,5)*100
XA_19:=IF(XA_18>80,4,IF(XA_18<20,(-4),0))
XA_20:=EMA(MAX(MAX(最高价-最低价,最高价-1日前的收盘价的绝对值),ABS(1日前的收盘价-最低价)),7)
XA_21:=最高价-1日前的最高价
XA_22:=1日前的最低价-最低价
如果XA_21>0 AND XA_21>XA_22返回XA_21否则返回0
如果XA_22>0 AND XA_22>XA_21返回XA_22否则返回0
XA_25:=XA_23*100/XA_20
XA_26:=XA_24*100/XA_20
XA_27:=EMA(XA_26-XA_25的绝对值/(XA_26+XA_25)*100,7)
XA_28:=XA_27的7日指数移动平均
XA_29:=IF(XA_25>XA_26 AND XA_27>XA_25 AND XA_27>50,4,IF(XA_25XA_26 AND XA_27>50,(-4),0))
XA_30:=收盘价的12日简单移动平均
XA_31:=(收盘价-XA_30)*(收盘价-XA_30)
XA_32:=XA_31的12日简单移动平均
XA_33:=SQRT(XA_32)
XA_34:=1
XA_35:=XA_30+XA_34*XA_33
XA_36:=XA_30-XA_34*XA_33
XA_37:=IF(收盘价>XA_35,4,IF(收盘价
XA_38:=14的0和最高价-1日前的收盘价较大值日累和/14的0和1日前的收盘价-最低价较大值日累和*100
XA_39:=14的最高价-开盘价日累和/14的开盘价-最低价日累和*100
XA_40:=IF(XA_38>350 OR XA_39>180,4,IF(XA_38<45 OR XA_39<45,(-4),0))
XA_41:=SUM(IF(收盘价>1日前的收盘价,成交量,0),14)
XA_42:=SUM(IF(收盘价<1日前的收盘价,成交量,0),14)
XA_43:=SUM(IF(收盘价=1日前的收盘价,成交量,0),14)
XA_44:=100*(XA_41*2+XA_43)/(XA_42*2+XA_43)
XA_45:=IF(XA_44>350,4,IF(XA_44<45,(-4),0))
输出决策曲线:XA_3+XA_7+XA_11+XA_13+XA_16+XA_19+XA_29+XA_37+XA_40+XA_45+36, 线宽为2
输出均线:决策曲线的8日简单移动平均
36,画青色
56,画青色
60,画青色
70,画青色