通达信:【金山银山】主图+选股公式
主图:
MA5:MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:MA(CLOSE,65),COLORRED,LINETHICK2;
A1:=MA5>MA10 AND MA5>MA20 AND CROSS(MA10,MA20) AND MA20>MA60 AND MA10>MA60 AND MA5>MA60;
A2:=MA5>MA10 AND MA5>MA20 AND CROSS(MA10,MA20) AND MA20<MA60 AND MA10<MA60 AND MA5<MA60;
DRAWTEXT(A1,MA5*0.998,’金山谷’);
DRAWTEXT(A2,MA5*0.998,’银山谷’);
STICKLINE(A1,H,L,WIDTH,MA5)COLORBLUE;
STICKLINE(A2,H,L,WIDTH,MA5)COLORRED;
选股:
{选股一:}
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,65),COLORRED,LINETHICK2;
A1:=MA5>MA10 AND MA5>MA20 AND CROSS(MA10,MA20) AND MA20>MA60 AND MA10>MA60 AND MA5>MA60;
A1;
{选股二:}
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,65),COLORRED,LINETHICK2;
A2:=MA5>MA10 AND MA5>MA20 AND CROSS(MA10,MA20) AND MA20<MA60 AND MA10<MA60 AND MA5<MA60;
A2;