请高手帮忙编写一个均线粘合的公式,谢谢啦!

2024-12-19 02:07:32
推荐回答(1个)
回答1:

{均线粘合选股}
{N 3-15 默认5}
VR1:=EXPMA(c,5);
VR2:=EXPMA(c,10);
VR3:=EXPMA(c,20);
VR4:=EXPMA(c,30);
VR5:=EXPMA(c,60);
VR6:=MAX(VR1,VR2);
VR7:=MAX(VR6,VR3);
VR8:=MAX(VR7,VR4);
VR9:=MAX(VR8,VR5);
VR10:=MIN(VR1,VR2);
VR11:=MIN(VR6,VR3);
VR12:=MIN(VR7,VR4);
VR13:=MIN(VR8,VR5);
粘合度:=(VR9-VR13)/VR13<=N;
多头:=VR1>=VR2 AND VR2>=VR3 AND VR3>=VR4 AND VR4>=VR5 AND VR2>=REF(VR2,1) AND VR3>=REF(VR3,1) AND VR4>=REF(VR,1) AND VR5>=REF(VR5,1);
选股:多头 AND 粘合度 AND CROSS(C,VR7) AND V>(REF(V,1)+REF(V,2)+REF(V,3))/3 AND VR1>REF(VR1,1);