• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票知识干货】同花顺源码:主力活动,斗转星移,均线战法

    发布时间: 2020-04-11 09:49 首页:股票一点通>股票公式>同花顺公式> 阅读()

    主力活动:

    Var3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

    Var4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    Var5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
    Var6:=(Var3+Var4+Var5)/3;
    Var7:=EMA(Var6,5);
    指标: EMA(EMA(Var3,5),5)*3, COLORSTICK;
    Var8:=IF(Var6<=-20,10,0);
    Var9:=HHV(Var8,10);
    STICKLINE(Var8=10,20,10,5,0),COLOR6666FF;
    VarA:=IF(Var9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
    K:EMA(Var7,5)*2, colorwhite;
    D:EMA(K,5), colorcyan;
    J:K*3-D*2, coloryellow;
    VarB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
    DRAWTEXT(VarA=20,15,'底部'),linethick1,colorwhite;
    STICKLINE((VarA=20),0,10,5,0),colorwhite;
    VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
    (3,5),2)<=REF(ZIG(3,5),3));
    VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG
    (3,5),2)>=REF(ZIG(3,5),3));
    STICKLINE((VARC=1),(-14),0,4,0),coloryellow;
    DRAWTEXT((VARC=1),(-14),'买'),colorred;
    STICKLINE((VARD=1),14,0,4,0),colorwhite;
    DRAWTEXT((VARD=1),18,'卖'),colorcyan;
    VarE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
    ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
    Var10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
    ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
    Var11:=VarFREF(VOL,1) AND CLOSE>REF(CLOSE,1);
    DRAWTEXT(Var11 AND COUNT(Var11,30)=1,15,'主力活动'),linethick3,COLORff00ff;
    STICKLINE(Var11 AND COUNT(Var11,30)=1,1,10,5,0),colorff00ff;
    Var12:=(HIGH+LOW+CLOSE)/3;
    Var13:=(Var12-MA(Var12,14))/(0.015*AVEDEV(Var12,14));
    Var14:=(Var12-MA(Var12,70))/(0.015*AVEDEV(Var12,70));
    Var15:=IF(Var13>=150 AND Var13<200 AND Var14>=150 AND Var14<200,10,0);
    Var16:=IF(Var13<=-150 AND Var13>-200 AND Var14<=-150 AND Var14>-200,-10,Var15);
    Var17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
    Var18:=100-ABS(Var17);
    Var19:=IF(Var18<90,Var18,100);
    Var1A:=IF(VarE>0,VarE,0);
    Var1B:=IF(Var14>=200 AND Var13>=150,15,IF(Var14<=-200 AND Var13<=-150,-15,Var16))+60;
    Var1C:=Var1A>48 AND Var1B>60 AND Var19<100;
    DRAWTEXT(Var1C AND COUNT(Var1C,30)=1,15,'出货'),linethick1,COLORffcc66;
    STICKLINE(Var1C AND COUNT(Var1C,30)=1,0,10,5,0),colorffcc66;



    斗转星移:

    VAR3:=LLV(HIGH,240);

    VAR4:=100*(CLOSE-VAR3)/VAR3;
    VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
    VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
    VAR7:=0;
    VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
    VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
    VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
    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);
    VAR12:=ZIG(3,6)=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);
    VAR14:=ZIG(3,22)=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);
    VAR16:=ZIG(3,51)=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);
    VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
    VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
    买1:=VAR10;
    买2:=(VAR11+VAR13+VAR15+VAR17);
    卖1:=(VAR12+VAR14+VAR16+VAR18);
    B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,coloryellow;
    DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),colorred;
    S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,colorgreen;
    DRAWTEXT(卖1>0,HIGH*1.02,'卖'),colorgreen;
    DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
    DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
    ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
    VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
    K:=EMA(VAR7,5)*2, , COLORFF00FF;
    D:=EMA(K,5), , colorwhite;
    J:=K*3-D*2, ,coloryellow;
    VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
    HS:=VOL/CAPITAL*100, , colorgreen;
    VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
    DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF;
    VAR1A:=IF(VARE>0,VARE,0);
    VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
    VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
    N:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
    AMOV:=VOL*(C+L+H)/3;
    MN:=SUM(AMOV,N)/SUM(VOL,N);
    NOTEXT1:IF(C>=MN,MN,DRAWNULL),LINETHICK3,coloryellow;
    NOTEXT2:IF(CMA30:=MA(C,30);
    压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;
    支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;



    均线战法( 顶尖财经 股票学院: ):

    MA5:EMA(C,5),colorwhite,LINETHICK2;

    MAA5:HHV(MA5,2),colorred,linethick3;
    MA5线:IF(MAA5TJ:=CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1);
    STICKLINE(TJ,LOW,HIGH,2,0),Color0000F2;
    STICKLINE(TJ,OPEN,CLOSE,10,0),Color000097;
    STICKLINE(TJ,OPEN,CLOSE,8,0),Color0000B5;
    STICKLINE(TJ,OPEN,CLOSE,4,0),Color0000F2;//红升
    STICKLINE(NOT(TJ),HIGH,LOW,2,0),Color00F200;
    STICKLINE(NOT(TJ),CLOSE,OPEN,10,0),Color009700;
    STICKLINE(NOT(TJ),CLOSE,OPEN,8,0),Color00B500;
    STICKLINE(NOT(TJ),CLOSE,OPEN,4,0),Color00F200;//绿降
    振幅:=(H-L)/L,colorgreen,nodraw;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,9,0),COLORFF0044;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,8,0),COLORFF0044;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,7,0),COLORff0055;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,6,0),COLORff0066;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,5,0),COLORff0077;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,4,0),COLORFF0088;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,3,0),COLORff0099;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,2,0),COLORff00aa;
    STICKLINE(振幅*100>=8 AND C>O ,O,C,1,0),COLORff00bb;
    C3:=REF(C,1);
    涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0),Color2DFFFF;
    STICKLINE(涨停,OPEN,CLOSE,10,0),Color008C8C;
    STICKLINE(涨停,OPEN,CLOSE,8,0),Color00AAAA;
    STICKLINE(涨停,OPEN,CLOSE,6,0),Color00CACA;
    STICKLINE(涨停,OPEN,CLOSE,5,0),Color00E3E3;
    STICKLINE(涨停,OPEN,CLOSE,4,0),Color02FFFF;
    STICKLINE(涨停,OPEN,CLOSE,3,0),Color02FFFF;
    STICKLINE(涨停,OPEN,CLOSE,2,0),Color2DFFFF;
    STICKLINE(涨停,OPEN,CLOSE,1,0),Color2DFFFF;
    BDDD:=CROSS(0.8,L=LLV(L,4));
    DDSJ:=BARSLAST(BDDD)+1;
    止跌:=REF(L,DDSJ);
    STICKLINE(DDSJ<=4,止跌,止跌,9,0),coloryellow,LINETHICK2;
    E:=(H+L+O+2*C)/5;
    zl:=2*E-L;
    zc:=2*E-H;
    fz:=E-(H-L);
    BALANCE:=EMA(C,30);
    UP:=BALANCE + 2*STD(C,30);
    DOWN:=BALANCE- 2*STD(C,30);
    var9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
    varaQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
    varbQ:=C=LLV(C,4) AND (REF(C,1)HHV(C,4) AND CvarcQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);
    vardQ:=REF(C,1)=HHV(C,4) AND CREF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND CY1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9),3),1);
    VAR1w:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
    VAR2w:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
    VAR3w:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
    Var3p:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);
    Ss:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)SC:=LHHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;
    MR:=SC AND COUNT(Ss,2);
    买:=MR AND NOT(REF(MR,1));
    多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
    -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
    -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);
    Var1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*1;
    Var2:=SMA(Var1,3,1)*100;
    趋势线:=SMA((SMA(Var2,3,1)*var1),3,1)*1;
    Var9:=CROSS(趋势线,(SMA(Var2,3,1)*var1)) AND (SMA(Var2,3,1)*var1)>8;
    AAx:=AMOUNT/VOL;
    BBx:=LCCx:=(C-REF(C,1))/REF(C,1)*100>1.2;
    DDx:=LEEx:=VOLFFx:=BBx AND CCx AND DDx AND EEx;
    aazt:=COUNT(CLOSE>REF(CLOSE,1)*1.097 ,20)>0;
    STICKLINE(买=1,L*0.95,L*0.90,30,0),coloryellow;
    STICKLINE( 买=1 ,L*0.95,L*0.92,30,0),colorlired;
    STICKLINE( 买=1 AND aazt,L*0.95,L*0.92,30,0),colorred;
    DRAWTEXT( 买=1,LOW*0.90,'【买入】'),coloryellow;
    DRAWTEXT(买=1 AND aazt,LOW*0.90,'【买入】'),colorred;

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map