请高手将下列通达信公式改为选股公式,要求选出蓝块。

2024-12-19 11:04:12
推荐回答(2个)
回答1:

{主图结构顺序做下调整就可看到完整的蓝块了}
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA40:MA(C,40);
MA60:MA(C,60);
STICKLINE(MA20>=MA60 AND MA60>=MA40,MA40,MA60,4,0),COLORFF00FF;
STICKLINE(MA20>=MA40 AND MA20STICKLINE(MA5>=MA20 AND MA20>=MA10,MA10,MA20,4,0),COLORWHITE;
STICKLINE(MA5>=MA10 AND MA5STICKLINE(MA5>=MA60 AND MA60>=MA10,MA10,MA60,4,0),COLORBLUE;
STICKLINE(MA5>=MA10 AND MA5<=MA60,MA10,MA5,4,0),COLORBLUE;
STICKLINE(C>=O,H,L,0,0),COLORRED;
STICKLINE(CSTICKLINE(C>=O,C,O,4,1),COLORRED;
STICKLINE(C==================
{OK。测试通过。蓝块出现选股}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA40:=MA(C,40);
MA60:=MA(C,60);
MA5>=MA60 AND MA60>=MA10
OR(MA5>=MA10 AND MA5<=MA60);

回答2:

MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA40:MA(C,40);
MA60:MA(C,60);
xg:MA5>=MA60 AND MA60>=MA10;