飞狐KD日月周叠魔鬼读盘副图指标
源码
80, POINTDOT;
20, POINTDOT;
Var2:=LLV(LOW,5);
Var3:=HHV(HIGH,5);
K:EMA((CLOSE-Var2)/(Var3-Var2)*100,4) colorblue;
D:EMA(0.667*REF(K,1)+0.333*K,2) coloryellow;
{week:=5;}
Kz:ma(k,5) linethick2 colorred;
Dz:ma(d,5) linethick2 colorgreen;
Km:ma(k,20) colorred colormagenta;
Dm:ma(d,20) colorgreen colorblue;
varA:=SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1),3,1);
warb:=SMA(vara,5,1);
获利盘:WINNER(CLOSE)*100 coloryellow linethick2;
流通盘:CAPITAL/1000000 color0066ff pointdot
收益:FINANCE(33) COLORmagenta pointdot ;
a:=(3*c+l+o+h)/6;
b:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+ref(a,20))/210;
e:=ma(b,10);
持仓区:STICKLINE(b>e,103 ,107,6,1 ) colorred linethick2;
空仓区:STICKLINE(b<e,103 ,107,6,1 ) colorgreen linethick2;
分水岭:50 coloryellow pointdot;
强势尺:80 colorred pointdot;
STICKLINE(b>e,105 ,106,3,0) coloryellow;
STICKLINE(b<e,105 ,106,3,0) COLORred;
STICKLINE(winner(close)*100>=winner(open)*100 ,winner(open)*100 ,winner(close)*100 ,8,0),colorred ;
STICKLINE(winner(open)*100>winner(close)*100 ,winner(close)*100 ,winner(open)*100 ,6,0 ),colorgreen ;
DRAWICON(获利盘<6 and CROSS(varA,warb) ,18 ,1);