以下是通达信均线粘合突破选股副图公式
通达信均线粘合突破选股副图公式
源码
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA40:=MA(C,40);
MA60:=MA(C,60);
MA90:=MA(C,90);
MA120:=MA(C,120);
MA250:=MA(C,250);
年相对价位:=100*(CLOSE-REF(LLV(C,240),1))/(REF(HHV(C,240),1)-REF(LLV(C,240),1));
NHDG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
NHZG:=MAX(MAX(NHDG,MA60),MAX(MA90,MA120));
NHDD:=MIN(MIN(MA5,MA10),MIN(MA20,MA30));
NHZD:=MIN(MIN(NHDD,MA60),MIN(MA90,MA120));
粘合:=(NHZG/NHZD-1)*100<10 AND 年相对价位<60;
NH穿5:=CROSS(C,MA5);{www.guziyuan.cn}
NH穿10:= CROSS(C,MA10);
NH穿20:= CROSS(C,MA20);
NH穿30:= CROSS(C,MA30);
NHFLSZ:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
NHDXTP:=( NH穿5 + NH穿10 + NH穿20 + NH穿30 )>=2;
多头:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) AND MA60>REF(MA60,1);
开花:=(COUNT(CROSS(MA20,MA30),20) + COUNT(CROSS(MA5,MA10),20) + COUNT(CROSS(MA10,MA20),20) + COUNT(CROSS(MA30,MA60),20) + COUNT(CROSS(MA60,MA120),20) )>=2;
线粘合:NHFLSZ AND NHDXTP AND 多头 AND 开花;