 | |  |  |
分析家无涯当铺源码公式:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
di:=filter(cross(20,k),10);
ding:=filter(cross(k,80),10);
ddi:=filter(cross(10,k),10);
dding:=filter(cross(k,90),10);
gd1:=barslast(cross(80,k));
趋势:(k+d)/2,colorff33cc,linethick0;
益:FINANCE(33);
大底:10,coloryellow;
入底:20,colorwhite;
入顶:80,color00ff00;
大顶:90,colorffff00;
drawtext(di,k,'●典当'),colorwhite;
drawtext(ddi,k,'●典当'),coloryellow;
drawtext(ding,k,'● 还债'),color00ff00;
drawtext(dding,k,'●还债'),colorffff00;
jc:=cross(k,d) and k<20;
d1:=jc and gd1>0 and count(cross(k,d),gd1)=1;
d2:=barslast(d1);
抄一:d1*100,colorred,stick;
d3:=cross(k,d) and d2>0 and count(k>=50,d2)=0 and count(cross(k,d),d2)=1 and c<ref(c,d2);
抄二:d3*100,coloryellow,stick;{二次金叉}; |
| |  | |  |
|