飞狐趋势KD指标公式

[复制链接]
查看83 | 回复0 | 2021-8-21 12:44:31 | 显示全部楼层 |阅读模式

VAR2:=LLV(LOW,12);
VAR3:=HHV(HIGH,52);
动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*8,7)-1;
趋势:MA(动力线,3),COLORRED;
PARTLINE(动力线>REF(趋势,1),趋势),LINETHICK2,COLORRED;
PARTLINE(动力线<REF(趋势,1),趋势),LINETHICK2,COLORGREEN;
{www.gupang.com 股旁网_股票飞狐指标公式}
均价:=(2*C+(H-L)/2+L+o)/4,COLORWHITE;
价差:=SUM(均价-REF(均价,1),3)/3;
实价:=均价+价差,COLORYELLOW;
VAR12:=EMA(EMA(EMA(实价,12),3),3);
k:(VAR12-REF(VAR12,1))/REF(VAR12,1)*100+1,COLORYELLOW;
D:MA(k,3),COLORGREEN;
j:=3*K-2*d;
STICKLINE(K>1,1,K,1,0),COLORRED;
STICKLINE(K<1,1,K,1,0),COLORCYAN;
底部:-0.6,COLORC6C600;
关注:0,COLORFF75FF;
强弱分界:2.0,COLORRED;
小心: 5.0,COLORYELLOW;
风险: 6,COLORBLUE;
出击:=IF((趋势>REF(趋势,1)) AND (REF(趋势,1)<REF(趋势,2)) AND (趋势<1),1,0),COLORWHITE;
DRAWICON(趋势>2 AND 趋势<5 AND 趋势>REF(趋势,1) AND(CROSS(K,D)),趋势-0.3,8);
DRAWICON(趋势<1 AND(CROSS(K,D))AND D<0.1,趋势-0.1 ,1);

202108211211.jpg

202108211211.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则