• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【炒股入门知识学习】通达信源码:钱龙3号,趋势为王,MACD顶底优化版

    发布时间: 2022-05-06 16:43 首页:股票一点通>股票公式>通达信公式> 阅读()
    1、钱龙3号,抄底类

    很好的看盘公式,钱龙3号可以协助您分析哪个是黄金坑。
    比较形象的模拟大资金进场曲线,是100%安全区的进场资金。用来寻找上证指数的安全区是最好的指标,30.60.90.120分钟都起作用。
    一旦趋势线黄线小于0进入0轴以下,都是黄金坑。
    好东西不能分享的太多,不然就没有了价值,大家可以试用几个月,感觉好还会推出选股指标。
    声明,看大盘非常不错的指标,个股要看基本面以及大盘具体走势!( 顶尖 财经 股票学院: )
    含有两个财务指标 流通盘和收盘获利盘比例 介意的绕行。出自一大师手笔,再次感恩
    {钱龙3号}
    A01:=DYNAINFO(7);
    A03:=BARSCOUNT(CLOSE);
    A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);
    A05:=IF((A03 > 20),A04,0);
    A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));
    A07:=DMA(A06,(VOL / CAPITAL)) * 60;
    A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);
    VAR1:=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);
    VAR2:=EMA(VAR1,8);
    VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
    WWW58188COM:=EMA(VAR3,3)-10;
    趋势:=WWW58188COM;
    机构建仓区:0,LINETHICK0,COLORFFFF00;
    VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;
    VAR5:=FILTER((趋势<=13 AND VAR4>13),10);
    STICKLINE(趋势>=90 AND VAR4,0,30,5,0),COLORGRAY;
    VAR6:=FILTER((趋势>=90 AND VAR4),10);
    VAR7:=LLV(LOW,30);
    VAR8:=HHV(HIGH,30);
    VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;
    STICKLINE(VAR9>90,100,105,10,2),COLORRED;
    VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
    VAR12:=HHV(VAR11,30)*8;
    资金开始进场:EMA(IF(LOW<=VAR7 AND 趋势<40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK2;
    STICKLINE(资金开始进场>0,0 ,资金开始进场*1.2,8,0 ),COLORRED;
    VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
    VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
    趋势线: 趋势,COLORYELLOW,LINETHICK2;
    VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;
    VAR17:=EMA(VAR16,5);



    2、趋势为王

    公式用法解释:

    红色线为拉升线,紫色为趋势线,从底部向上可以放心持股。
    可以从空间上看整体位置,低位安全高位风险。
    越接近0周越安全,数值越大越危险。

    A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;
    A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3;
    A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3;
    A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3;
    A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3;
    A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3;
    A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;
    { 顶尖 财经 股票学院: }
    VAR1:=FORCAST(A1,6);
    VAR2:=FORCAST(A2,6);
    VAR3:=FORCAST(A3,6);
    VAR4:=FORCAST(A4,6);
    VAR5:=FORCAST(A5,6);
    VAR6:=FORCAST(A6,6);
    VAR7:=FORCAST(A7,6);
    IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),POINTDOT,COLORFF00FF;
    IF(VAR1IF(VAR2>REF(VAR2,1),VAR2,DRAWNULL),POINTDOT,COLORFF00FF;
    IF(VAR2IF(VAR3>REF(VAR3,1),VAR3,DRAWNULL),POINTDOT,COLORFF00FF;
    IF(VAR3IF(VAR4>REF(VAR4,1),VAR4,DRAWNULL),POINTDOT,COLORFF00FF;
    IF(VAR4IF(VAR5>REF(VAR5,1),VAR5,DRAWNULL),POINTDOT,COLORFF00FF;
    IF(VAR5IF(VAR6>REF(VAR6,1),VAR6,DRAWNULL),POINTDOT,COLORFF00FF;
    IF(VAR6IF(VAR7>REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLORFF00FF;
    IF(VAR7TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);
    DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));
    DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));
    STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF;
    STICKLINE(TOWERC



    3、MACD顶底优化版

    本公式的特点:
    比传统的MACD更为详细,可以直观的看出金叉与死叉的分界线,同时成交量的高低也更为直观明确。

    公式的用法:
    黄色笑脸金叉信号,补仓或进场,( 顶尖 财经 股票学院: )
    绿色钻石是死叉信号,清仓或者离场。


    {优化MACD顶底}
    DIFF:EMA(CLOSE,7) - EMA(CLOSE,19);
    DEA:EMA(DIFF,9);
    DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));
    MACD:2*(DIFF-DEA),COLORSTICK;
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
    B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
    A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
    B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
    C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);
    C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
    D2:=REF(C,C2+1)"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
    C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
    D3:=REF(C,C3+1)"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
    STICKLINE(B1>0,-0.1,0,1,0),COLORRED;
    STICKLINE(B2>0,-0.1,0,1,0),COLORFF00FF;
    STICKLINE(B3>0,-0.1,0,1,0),COLORYELLOW;
    STICKLINE(D1>0,0.1,0,1,0),COLOR00FF00;
    STICKLINE(D2>0,0.1,0,1,0),COLORFFCC66;
    STICKLINE(D3>0,0.1,0,1,0),COLORWHITE;
    STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;
    STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORYELLOW;
    STICKLINE(MACDSTICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;
    STICKLINE(C>0,0,0,50,1),COLORBLUE;
    MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;
    KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;
    RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;
    MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;
    KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;
    RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;
    强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED,LINETHICK2;
    弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
    DRAWICON(CROSS(DIFF,DEA),DEA,5);
    DRAWICON(CROSS(DEA,DIFF),DEA,27);
    A:=REF(DIFF,1)REF(DIFF,1);
    B:=REF(DIFF,1)>REF(DIFF,2) AND REF(DIFF,2)>REF(DIFF,3) AND DIFFDRAWICON(A,DIFF,1);
    DRAWICON(B,DIFF,2);
    STICKLINE((MACD > 0),0,MACD,0.1,0),COLOR0000CC;
    STICKLINE((MACD > 0),0,MACD*0.9,0.1,0),COLOR0000EE;
    STICKLINE((MACD > 0),0,MACD*0.8,0.1,0),COLOR0011FF;
    STICKLINE((MACD > 0),0,MACD*0.7,0.1,0),COLOR0033FF;
    STICKLINE((MACD > 0),0,MACD*0.6,0.1,0),COLOR0055FF;
    STICKLINE((MACD > 0),0,MACD*0.5,0.1,0),COLOR0077FF;
    STICKLINE((MACD > 0),0,MACD*0.4,0.1,0),COLOR0099FF;
    STICKLINE((MACD > 0),0,MACD*0.3,0.1,0),COLOR00BBFF;
    STICKLINE((MACD > 0),0,MACD*0.2,0.1,0),COLOR00DDFF;
    STICKLINE((MACD > 0),0,MACD*0.1,0.1,0),COLOR00FFFF;
    STICKLINE((MACD < 0),0,MACD,0.1,0),COLORCC0033;
    STICKLINE((MACD < 0),0,MACD*0.9,0.1,0),COLOREE0033;
    STICKLINE((MACD < 0),0,MACD*0.8,0.1,0),COLORFF1133;
    STICKLINE((MACD < 0),0,MACD*0.7,0.1,0),COLORFF3333;
    STICKLINE((MACD < 0),0,MACD*0.6,0.1,0),COLORFF5533;
    STICKLINE((MACD < 0),0,MACD*0.5,0.1,0),COLORFF7733;
    STICKLINE((MACD < 0),0,MACD*0.4,0.1,0),COLORFF9933;
    STICKLINE((MACD < 0),0,MACD*0.3,0.1,0),COLORFFBB33;
    STICKLINE((MACD < 0),0,MACD*0.2,0.1,0),COLORFFDD33;
    STICKLINE((MACD < 0),0,MACD*0.1,0.1,0),COLORFFFF33;


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

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

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

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