• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【炒股入门知识学习】通达信源码精选:动量买卖,风险评测,顶和底

    发布时间: 2022-05-03 11:07 首页:股票一点通>股票公式>通达信公式> 阅读()
    1、动量买卖

    {动量买卖}

    VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
    S:=SMA(VAR1,5,1);
    VAR2:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
    X:SMA(VAR2,2,1),COLORFF00FF ;
    VR4:=SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1);
    底部动量:IF(EMA(IF(L<=LLV(L,30),VR4,0),3)*10<100,EMA(IF(L<=LLV(L,30),VR4,0),3)*10,100),COLOR004DF5;
    AA:=INTPART(底部动量);
    DD:=IF(AA>REF(HHV(AA,120),1),AA,0);
    VR2:=LLV(LOW,10);
    VR3:=HHV(HIGH,25);
    动力线:=IF(EMA((CLOSE-VR2)/(VR3-VR2)*4,4)*25<100,EMA((CLOSE-VR2)/(VR3-VR2)*4,4)*25,100);
    STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),2 ,0),COLORRED;
    STICKLINE(动力线<=REF(动力线,1) ,动力线 ,REF(动力线,1),2 ,1),COLOR00FF00;
    VAR3:=1/WINNER(CLOSE);
    VAR4:=EMA(CLOSE,13);
    VAR5:=100-ABS((CLOSE-VAR4)/VAR4)*100;
    黄金坑:=(100-IF(VAR3>10,IF(VAR3<100,VAR3,VAR5-90),0));
    100,POINTDOT;
    70,POINTDOT;
    30,POINTDOT,COLORFF00FF ;
    VAR1A:=WINNER(CLOSE);
    VAR2A:=VOL/CAPITAL;
    VAR3A:=VAR2A/VAR1A;
    JJ:=IF(VAR1A<50/100 ,VAR3A,0)*100;
    财神线:=IF(JJ<100,JJ,0);
    STICKLINE(财神线>=0,0,底部动量,0.01,0),COLOR00FFFF;
    JHH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSESTICKLINE(ABS(JHH/WINNER(C))>1000000000,0,0,0,0),COLORFF00FF,LINETHICK5;
    DRAWTEXT((S-X)>=70 AND X<7,10,'★'),COLORRED;
    VARC:=CLOSE*50/100;
    VARD:=MA(VARC,30)*0.83;
    VARE:=MA(VARC/VARD,3);
    DRAWTEXT(FILTER(VARE<1.04,3),10,'★'),COLORYELLOW ;
    DRAWTEXT(CROSS(X,底部动量) AND 动力线>REF(动力线,1) AND C>L*1.03,100,'★'),COLORGREEN;
    DRAWTEXT(X>动力线*2 AND X>=80,90,'●');


    2、风险评测

    RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));
    VAR21:=SMA(RSVA2,9,1)+100;
    VAR11:=SMA(RSVA1,3,1);
    VAR51:=SMA(VAR11,3,1)+100;
    顶底线:=VAR51-VAR21+50;
    VAR2:=LLV(LOW,33);
    VAR3:=HHV(HIGH,21);
    VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;
    趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);
    STICKLINE(C,100,90,4,0),COLORFFCC33;
    STICKLINE(C,90,80,4,0),COLORFF9933;
    STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLOR9999FF;
    STICKLINE(顶底线STICKLINE((趋势>REF(趋势,1) AND 顶底线STICKLINE((趋势REF(顶底线,1)),20,80,4,0),COLOR009966;
    STICKLINE(C,20,10,4,0),COLORFF6633;
    STICKLINE(C,10,0,4,0),COLORFF3333;
    底线:10,COLORWHITE;
    顶线:90,COLORWHITE;
    趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK2,COLORBLUE;
    当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED;
    DRAWTEXT(CURRBARSCOUNT=6,5,'高安全区'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=6,15,'安全区'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=6,45,'绿区持币'),COLORFFC000;
    DRAWTEXT(CURRBARSCOUNT=6,50,'(投资区)'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=6,55,'粉区持股'),COLORFFC000;
    DRAWTEXT(CURRBARSCOUNT=6,85,'风险区'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=6,95,'高风险区'),COLORWHITE;
    {强拉升}
    Y1:=LLV(L,17);
    Y2:=SMA(ABS(L-REF(L,1)),17,1);
    Y3:=SMA(MAX(L-REF(L,1),0),17,2);
    Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));
    STICKLINE(CROSS(Q,0),15,0,4,0), , COLORYELLOW;
    强拉升: IF(CROSS(Q,0),1,0),COLORYELLOW;
    Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00,LINETHICK2;
    STICKLINE(CROSS(Q1,-24),20,0,4,0), , COLORMAGENTA;
    加强拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;
    VAR22:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
    天:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));
    地:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));
    STICKLINE(地>天 AND 地<0,10,0,1,0),COLORRED;
    开始拉升:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLORRED;
    {<<波段绝品>>}
    VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
    VAR2B:=SMA(VAR1B,9,1)+100;
    VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    VAR4B:=SMA(VAR3B,3,1);
    VAR5B:=SMA(VAR4B,3,1)+100;
    VAR6B:=VAR5B-VAR2B;
    趋势1: IF(VAR6B>45,VAR6B-45,0),COLOR00FFFF,LINETHICK2;
    VAR2Q:=REF(LOW,1);
    VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
    VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
    VAR5Q:=LLV(LOW,30);
    VAR6Q:=HHV(VAR4Q,30);
    VAR7Q:=IF(MA(CLOSE,58),1,0);
    VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;
    火焰山:=IF(VAR8Q>100,100,VAR8Q);
    STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,3.5,0 ),COLOR4444FF;
    STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,2.5,0 ),COLOR5555FF;
    STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,1.5,0 ),COLOR7777FF;
    STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,0.5,0 ),COLOR9999FF;
    STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR000033;
    STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR000055;
    STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR000077;
    STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR000099;
    STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR0000DD;
    STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR003300;
    STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR005500;
    STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR007700;
    STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR009900;
    STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR00DD00;
    逃顶:=CROSS(82,RSI);
    STICKLINE( 逃顶,逃顶,10,3.5,0),COLORFF5500;
    STICKLINE( 逃顶,逃顶,15,2.5,0),COLORFF8800;
    STICKLINE( 逃顶,逃顶,20,1.5,0),COLORFFAA00;
    STICKLINE( 逃顶,逃顶,25,0.5,0),COLORFFCC00;
    STICKLINE( 逃顶,逃顶,30,0.1,0),COLORFFFF00;
    D1:=(C+L+H)/3;
    D2:=EMA(D1,6);
    D3:=EMA(D2,5);
    BBUY:=CROSS(D2,D3);
    强弱线:50,COLORGREEN,POINTDOT;
    DRAWICON(BBUY,20,1);
    VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
    DRAWICON(CROSS(82,VARR1),10,15);
    DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;
    {股民学院 整理}



    3、顶和底,最简单的提示 最明确的顶和底的信号

    最简单的提示 最明确的顶和底的信号,公式没未来函数

    VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
    持币区域:VAR1,COLORGREEN;
    持股区域:IF(VAR1>0,VAR1,0),COLORMAGENTA;
    短顶:STICKLINE(VAR1>9 AND FILTER(VAR1大顶:STICKLINE(VAR1>20 AND FILTER(VAR1VAR2:=HHV(VAR1>20,10);
    危险: STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,0,2,0);
    注意止损:STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),6)
    AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);
    短底:STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),VAR1-2,0,2,0),COLORRED;
    大底:STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,0,2,0),COLORYELLOW;
    买入准备:VAR1<-9 AND VAR1>REF(VAR1,1),COLORRED;
    DRAWTEXT(VAR1>9 AND FILTER(VAR1DRAWTEXT(VAR1>20 AND FILTER(VAR1DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,'危险'),COLORMAGENTA;
    DRAWTEXT(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'注意止损'),COLORFF00FF;
    DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),VAR1-2,'短底'),,COLOR0000FF;
    DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,'大底'),;
    DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),1,'买入准备');


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

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

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

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