• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票入门基础知识】通达信源码:股价准备启动,港资持股,防空警报

    发布时间: 2020-04-11 15:22 首页:股票一点通>股票公式>通达信公式> 阅读()
    股价准备启动:

    {股价准备启动 双重红箭头抢}

    VAR1:=3;
    VAR2:=(HIGH+LOW+CLOSE*2)/4;
    VAR3:=EMA(VAR2,17);
    VAR4:=STD(VAR2,17);
    VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
    VAR6:=(EMA(VAR5,5)-25)*1.56;
    VAR7:=(HHV(HIGH,3)+LLV(LOW,3)+CLOSE*2)/4;
    VAR8:=EMA(VAR7,25);
    VAR9:=STD(VAR7,25);
    VAR10:=((VAR7-VAR8)/VAR9*100+200)/4;
    VAR11:=(EMA(VAR10,20)-25)*1.56;
    VAR12:=EMA(CLOSE,12)-EMA(CLOSE,26);
    VAR13:=EMA(VAR12,9);
    VAR14:=(VAR12-VAR13)*2;
    AK:EMA(VAR6,2)*1.22;
    AD:EMA(AK,2);
    AJ:3*AK-2*AD;
    BK:EMA(VAR11,3)*1.22,COLORWHITE;
    BD:EMA(BK,3),COLORLIBLUE;
    BJ:3*BK-2*BD,COLORLIGREEN;
    VAR15:=MA((3*CLOSE+LOW+OPEN+HIGH)/6,3);
    IF(CLOSE>=SAR(4,2,20)*0.98,BD,DRAWNULL),COLORLIRED;
    IF(CLOSE<=SAR(4,2,20)*0.98,BD,DRAWNULL),COLORBLUE;
    VAR16:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
    DRAWICON(CROSS(VAR15,SAR(4,2,20))=1,BD-10,7);
    DRAWICON(CROSS(SAR(4,2,20),VAR15)=1,BD+10,8);
    DRAWICON(CROSS(AD,AK),AD+10,2);
    DRAWICON(CROSS(AK,AD) AND UPNDAY((OPEN+CLOSE)/2,1),AD-10,1);
    DRAWICON(CROSS(AD,AK) AND AKDRAWICON(CROSS(AK,AD) AND AK>BK AND UPNDAY(MA(CLOSE,18),1),AD-15,11);
    LA:100;
    LB:0;
    LC:80;
    LD:20;
    IF(BD>=REF(BD,1) AND VAR14>=0,BD,DRAWNULL),STICK,COLORRED;
    IF(BD<=REF(BD,1) AND VAR14<=0,BD,DRAWNULL),STICK,COLORBLUE;
    股价准备启动:IF(CROSS(VAR16,VAR1),100,0),COLORRED;
    DRAWTEXT_FIX(CLOSE>OPEN,0.05,0.05,0,6),COLORRED;



    港资持股:

    港资持股指标,直接导入

    香港的外资资金持股很多都是打牛股,

    用法:通达信软件,点击左上角的“系统”,再点击其下菜单里的“专业财务数据”,记得每天下载更新这个数据。

    NOTEXT曲线:GPJYVALUE(6,1,1),COLORFFFF00;

    IF((GPJYVALUE(6,1,1)/FINANCE(7))>0.01,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORRED;

    IF((GPJYVALUE(6,1,1)/FINANCE(7))=0,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORWHITE;

    IF((GPJYVALUE(6,1,1)/FINANCE(7))>0 AND (GPJYVALUE(6,1,1)/FINANCE(7))<0.01,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORCYAN;

    持股量:GPJYVALUE(6,1,1)/10000,COLORLIBLUE;

    万股:DRAWNULL;

    占流通比:(GPJYVALUE(6,1,1)/FINANCE(7))*100,NODRAW;

    占总股比:(GPJYVALUE(6,1,1)/FINANCE(1))*100,NODRAW;

    增减万股:(GPJYVALUE(6,1,1)-REF(GPJYVALUE(6,1,1),1))/10000;

    增减:=GPJYVALUE(6,1,1)-REF(GPJYVALUE(6,1,1),1);

    IF(增减<0,增减,DRAWNULL),STICK,LINETHICK4,COLORCYAN;

    IF(增减=0,增减,DRAWNULL),STICK,LINETHICK4,COLORWHITE;

    IF(增减>0,增减,DRAWNULL),STICK,LINETHICK4,COLORRED;




    防空警报

    适合手机版和PC版,黄色进,绿色出,拉响防空警报坚决出( 顶尖财经 股票学院: )

    80,COLOR888888,;
    QW1:=(HIGH+LOW+CLOSE*2)/4;
    QW3:=EMA(QW1,10);
    QW4:=STD(QW1,10);
    QW5:=(QW1-QW3)*100/QW4;
    QW6:=EMA(QW5,5);
    RK7:=EMA(QW6,10);
    涨:EMA(QW6,10)+100/2-5,LINETHICK1,COLORRED,;
    跌:=EMA(涨,4),LINETHICK1,COLORFFFF34,;
    多线:IF(CROSS(涨,跌) AND 跌<-10,30,0),LINETHICK1,COLORFF00FF,;
    空线:IF(CROSS(跌,80),70,100),COLORFF9900,;
    买1:=EMA(跌,4),COLORWHITE,;
    买2:=EMA(买1,4),COLORGREEN,;
    买M3:=EMA(买2,4);
    买M4:=EMA(买M3,4);
    STICKLINE(涨STICKLINE(涨STICKLINE(涨STICKLINE(涨STICKLINE(涨STICKLINE(涨STICKLINE(涨STICKLINE(涨STICKLINE(涨STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),8,0) ,COLOR0011FF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),7,0) ,COLOR0022FF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),6,0) ,COLOR0044FF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR00AAFF,;
    STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),1,0) ,COLOR00BBFF,;
    DRAWICON(多线,30,1);
    DRAWICON(CROSS(跌,80),70,2);
    VAR7B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
    DRAWTEXT(VAR7B>0,60,'★探底 '),COLORYELLOW;
    DRAWTEXT(CROSS(涨,跌) AND 跌<20 AND 跌>-10,40,'买入'),COLORCCFF99;
    DRAWTEXT(多线>0,-20,'看涨'),COLOR0000FF;
    VAR811:=SUMBARS(VOL,(7)*100);
    VAR822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
    VAR883:=(CLOSE-VAR822)/VAR822*100;
    VAR884:=HHV(VAR883,VAR811);
    VAR885:=LLV(VAR883,VAR811);
    VAR886:=(VAR883-VAR885)/(VAR884-VAR885)*100;
    K:=SMA(VAR886,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    MA1:=MA(J,3);
    STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,涨,涨+20,6,0),COLORYELLOW,;
    DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,60,'考虑买进'),COLORFFFFFF;
    VAR2:=MA(CLOSE,194);VAR44:=REF(CLOSE,1);
    VAR45:=SMA(MAX(CLOSE-VAR44,0),6,1)/SMA(ABS(CLOSE-VAR44),6,1)*100;
    STICKLINE(CROSS(84,VAR45),0,VAR2*15+3,3,1),COLORGREEN;
    DRAWTEXT(CROSS(84,VAR45),80,'防空警报'),COLORGREEN;

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

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

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

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