1. 首页 > 金融

请问这个通达信主图能改成选股公式吗?只是选‘’抄底‘’那个,谢谢 超前买入主图公式源码

请问这个通达信主图能改成选股公式吗?只是选‘’抄底‘’那个,谢谢超前买入主图公式源码

请高手帮忙把这个通达信主图公式改成选股公式,谢谢

LC:=REF(CLOSE,1);

操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;

趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;

震仓线:=45;震仓线2:=50;

逃命线:=80;抄底线:=20;绝底线:=5;

PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;

PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;

PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;

HH:=COUNT(涨停,13)>=1; A:=SMA(L,4,3) ;

绿色买入:(A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH);

{个人看法,仅供参考。}

把主图买卖点公式改为选股公式

{买选股公式}

VAR1:=EMA((C-(LLV(L,25)))/((HHV(H,25))-(LLV(L,25)))*100,5);

VAR2:=VAR1;

VAR3:=MA((V-REF(V,1))/REF(V,1),5);

VAR4:=(C-MA(C,24))/MA(C,24)*100;

VAR5:=VAR4*(1+VAR3);

VAR6:=REF(VOL,1);

VAR7:=SMA(MAX(VOL-VAR6,0),6,1)/SMA(ABS(VOL-VAR6),6,1)*100;

VAR8:=VAR5>REF(VAR5,1) AND VAR2<REF(VAR2,1) AND VAR7>REF(VAR7,1);

VAR10:=VAR5>REF(VAR5,1) AND VAR2<REF(VAR2,1) AND VAR7<REF(VAR7,1);

VAR12:=VAR5>REF(VAR5,1);

VAR13:=VAR5<REF(VAR5,1);

VAR14:=VAR2<REF(VAR2,1);

VAR15:=VAR2>REF(VAR2,1);

VAR16:=VAR8 OR VAR10;

VAR18:=VAR13 AND VAR14;

VAR19:=VAR16 OR VAR18;

VAR20:=VAR12 AND VAR15;

VAR22:=LAST(VAR19,4,1) AND VAR20;

VAR22;

{卖选股公式}

VAR1:=EMA((C-(LLV(L,25)))/((HHV(H,25))-(LLV(L,25)))*100,5);

VAR2:=VAR1,COLORRED,LINETHICK2;

VAR3:=MA((V-REF(V,1))/REF(V,1),5);

VAR4:=(C-MA(C,24))/MA(C,24)*100;

VAR5:=VAR4*(1+VAR3);

VAR6:=REF(VOL,1);

VAR7:=SMA(MAX(VOL-VAR6,0),6,1)/SMA(ABS(VOL-VAR6),6,1)*100;

VAR9:=VAR5<REF(VAR5,1) AND VAR2>REF(VAR2,1) AND VAR7>REF(VAR7,1);

VAR11:=VAR5<REF(VAR5,1) AND VAR2>REF(VAR2,1) AND VAR7<REF(VAR7,1);

VAR12:=VAR5>REF(VAR5,1);

VAR13:=VAR5<REF(VAR5,1);

VAR14:=VAR2<REF(VAR2,1);

VAR15:=VAR2>REF(VAR2,1);

VAR17:=VAR9 OR VAR11;

VAR18:=VAR13 AND VAR14;

VAR20:=VAR12 AND VAR15;

VAR21:=VAR17 OR VAR20;

VAR23:=LAST(VAR21,4,1) AND VAR18;

VAR23;

希望这是你想要的~~

可以帮我把通达信主图公式改成选股公式吗?

{买1}

VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);

买1:VAR10;

{买2}

VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);

VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);

VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);

VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);

买2:VAR11+VAR13+VAR15+VAR17;

{机构进场}

VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);

机构进场:VAR11 AND COUNT(VAR11,30)=1;

股票公式专家团为你解答,希望能帮到你,祝投资顺利。

如果你对我的回答感到满意,请别忘了采纳,谢谢。

请把通达信主图公式改个选股公式吧!

{选出绿色向下箭头!}

N:=14;

INDEX:=CCI(N);

EXITLONG:CROSS(100,INDEX);