以下是飞狐优化波段KDJ副图源码
飞狐优化波段KDJ副图源码
均价:=(2*C+(H-L)/2+L+o)/4;
价差:=SUM(均价-REF(均价,1),3)/3;
实价:=(均价+价差);
VAR63:=EMA((((均价+实价)/2)-LLV(均价,63))/(HHV(实价,63)-LLV(均价,63))*100,1);
K:=sMA(VAR63,9,2),COLORMAGENTA;
D:=sMA(K,5,2),COLORFF8800,LINETHICK1;
j:3*k-2*D,COLORWHITE,LINETHICK1;
J5:Ema(J,3),COLORGREEN;
趋势:ema(-100*(HHV(实价,53)-(实价+均价)/2)/(HHV(实价,53)-LLV(均价,53)),48)+100,COLORRED,linethick2;
PARTLINE(趋势<ref(趋势,1),趋势),COLOR00bb00,LINETHICK2;
0,COLORAAAA00;20,COLORCYAN;50,COLORWHITE;80,COLORRED;