|
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(CLOSE,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);
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;
,STICK,COLORRED; |
|