JC决策曲线(通达信公式 副图 源码 测试图)

 2023-03-03 15:30:53    通达信指标网  

{公式名称: JC

公式描述: 决策曲线
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:无
用法注释:无
公式源码:}
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;


  •  标签:  

原文链接:https://www.tdxzb.com/?id=1086

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服