公式网 股票指标公式源码分享 登录 注册
公式指标平网
未来函数检测
首页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 东财通公式 飞狐公式 操盘手公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式网 > 大智慧公式 > 正文 → 正文

大智慧L2的【真实量价趋势】主图和乖离韵律副图

发布时间:2009/10/9 19:01:50  浏览次数:

大智慧L2的【真实量价趋势】主图和乖离韵律副图

C/C++ Code复制内容到剪贴板
  1. DRAWGBKLAST(C>0,STRIP(RGB(10,160,0),RGB(25,15,0),70));   
  2. MAA:=MA( CLOSE , 5) ;   
  3. A:=AMOUNT / (100 * VOL);【5】:MA(A,5),linethick0,color00FFFF;   
  4. 加权移平均:=wma(【5】,5);   
  5. jnyy:=dma(c,vol/capital);   
  6. 個z:=EMA(jnyy,3);   
  7. 十z:=EMA(jnyy,5);   
  8. 百z:=EMA(jnyy,7);   
  9. 千z:=EMA(jnyy,9);   
  10. 万z:=EMA(jnyy,11);   
  11. PARTLINE(個z,個z<REF(個z,1)),DOTLINE,COLORFFAA11,linethick1;   
  12. PARTLINE(十z,十z<REF(十z,1)),DOTLINE,COLORFFBB22,linethick1;   
  13. PARTLINE(百z,百z<REF(百z,1)),DOTLINE,COLORFFCC33,linethick1;   
  14. PARTLINE(千z,千z<REF(千z,1)),DOTLINE,COLORFFDD44,linethick1;   
  15. PARTLINE(万z,万z<REF(万z,1)),DOTLINE,COLORFFEE55,linethick1;   
  16. PARTLINE(個z,個z>REF(個z,1)),DOTLINE,COLORff00ff,linethick1;   
  17. PARTLINE(十z,十z>REF(十z,1)),DOTLINE,COLORff99ff,linethick1;   
  18. PARTLINE(百z,百z>REF(百z,1)),DOTLINE,COLORff88ff,linethick1;   
  19. PARTLINE(千z,千z>REF(千z,1)),DOTLINE,COLORff77ff,linethick1;   
  20. PARTLINE(万z,万z>REF(万z,1)),DOTLINE,COLORff66ff,linethick1;   
  21. 個:=EMA(MAA,2);十:=EMA(MAA,4) ;百:=EMA(MAA,6);千:=EMA(MAA,8);万:=EMA(MAA,10);   
  22. PARTLINE(個,個<REF(個,1)),DOTLINE,COLOR00AA00,linethick1;   
  23. PARTLINE(十,十<REF(十,1)),DOTLINE,COLOR00BB00,linethick1;   
  24. PARTLINE(百,百<REF(百,1)),DOTLINE,COLOR00CC00,linethick1;   
  25. PARTLINE(千,千<REF(千,1)),DOTLINE,COLOR00DD00,linethick1;   
  26. PARTLINE(万,万<REF(万,1)),DOTLINE,COLOR00EE00,linethick1;   
  27. PARTLINE(個,個>REF(個,1)),DOTLINE,COLOR0000AA,linethick1;   
  28. PARTLINE(十,十>REF(十,1)),DOTLINE,COLOR0000BB,linethick1;   
  29. PARTLINE(百,百>REF(百,1)),DOTLINE,COLOR0000CC,linethick1;   
  30. PARTLINE(千,千>REF(千,1)),DOTLINE,COLOR0000DD,linethick1;   
  31. PARTLINE(万,万>REF(万,1)),DOTLINE,COLOR0000EE,linethick1;   
  32. {阳线上下影}STICKLINE(CLOSE>=OPEN,C,H,0,0), color0000ff;   
  33. STICKLINE(CLOSE>=OPEN,O,L,0,0),  color0000ff;   
  34. STICKLINE((CLOSE > OPEN),OPEN,CLOSE,8,0),color0000FF;   
  35. STICKLINE((CLOSE > OPEN),OPEN,CLOSE,6,0),color0099FF;   
  36. STICKLINE((CLOSE > OPEN),OPEN,CLOSE,4,0),color00CCFF;   
  37. STICKLINE((CLOSE > OPEN),OPEN,CLOSE,2,0),color00FFFF;   
  38. {阴线上下影}STICKLINE(CLOSE<OPEN,O,H,0,0), ColorFFFF66;   
  39. STICKLINE(CLOSE<OPEN,C,L,0,0), ColorFFFF66;   
  40. STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,8,0),colorCC0033;   
  41. STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,6,0),colorFF9966;   
  42. STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,4,0),colorFFCC66;   
  43. STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,2,0),colorFFFF66; 
  44.  
  45.  
  46. 真实量价趋势:

    DRAWGBKLAST(C>0,STRIP(RGB(10,160,0),RGB(25,15,0),70));
    MAA:=MA( CLOSE , 5) ;
    A:=AMOUNT / (100 * VOL);【5】:MA(A,5),linethick0,color00FFFF;
    加权移平均:=wma(【5】,5);
    jnyy:=dma(c,vol/capital);
    個z:=EMA(jnyy,3);
    十z:=EMA(jnyy,5);
    百z:=EMA(jnyy,7);
    千z:=EMA(jnyy,9);
    万z:=EMA(jnyy,11);
    PARTLINE(個z,個z<REF(個z,1)),DOTLINE,COLORFFAA11,linethick1;
    PARTLINE(十z,十z<REF(十z,1)),DOTLINE,COLORFFBB22,linethick1;
    PARTLINE(百z,百z<REF(百z,1)),DOTLINE,COLORFFCC33,linethick1;
    PARTLINE(千z,千z<REF(千z,1)),DOTLINE,COLORFFDD44,linethick1;
    PARTLINE(万z,万z<REF(万z,1)),DOTLINE,COLORFFEE55,linethick1;
    PARTLINE(個z,個z>REF(個z,1)),DOTLINE,COLORff00ff,linethick1;
    PARTLINE(十z,十z>REF(十z,1)),DOTLINE,COLORff99ff,linethick1;
    PARTLINE(百z,百z>REF(百z,1)),DOTLINE,COLORff88ff,linethick1;
    PARTLINE(千z,千z>REF(千z,1)),DOTLINE,COLORff77ff,linethick1;
    PARTLINE(万z,万z>REF(万z,1)),DOTLINE,COLORff66ff,linethick1;
    個:=EMA(MAA,2);十:=EMA(MAA,4) ;百:=EMA(MAA,6);千:=EMA(MAA,8);万:=EMA(MAA,10);
    PARTLINE(個,個<REF(個,1)),DOTLINE,COLOR00AA00,linethick1;
    PARTLINE(十,十<REF(十,1)),DOTLINE,COLOR00BB00,linethick1;
    PARTLINE(百,百<REF(百,1)),DOTLINE,COLOR00CC00,linethick1;
    PARTLINE(千,千<REF(千,1)),DOTLINE,COLOR00DD00,linethick1;
    PARTLINE(万,万<REF(万,1)),DOTLINE,COLOR00EE00,linethick1;
    PARTLINE(個,個>REF(個,1)),DOTLINE,COLOR0000AA,linethick1;
    PARTLINE(十,十>REF(十,1)),DOTLINE,COLOR0000BB,linethick1;
    PARTLINE(百,百>REF(百,1)),DOTLINE,COLOR0000CC,linethick1;
    PARTLINE(千,千>REF(千,1)),DOTLINE,COLOR0000DD,linethick1;
    PARTLINE(万,万>REF(万,1)),DOTLINE,COLOR0000EE,linethick1;
    {阳线上下影}STICKLINE(CLOSE>=OPEN,C,H,0,0), color0000ff;
    STICKLINE(CLOSE>=OPEN,O,L,0,0),  color0000ff;
    STICKLINE((CLOSE > OPEN),OPEN,CLOSE,8,0),color0000FF;
    STICKLINE((CLOSE > OPEN),OPEN,CLOSE,6,0),color0099FF;
    STICKLINE((CLOSE > OPEN),OPEN,CLOSE,4,0),color00CCFF;
    STICKLINE((CLOSE > OPEN),OPEN,CLOSE,2,0),color00FFFF;
    {阴线上下影}STICKLINE(CLOSE<OPEN,O,H,0,0), ColorFFFF66;
    STICKLINE(CLOSE<OPEN,C,L,0,0), ColorFFFF66;
    STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,8,0),colorCC0033;
    STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,6,0),colorFF9966;
    STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,4,0),colorFFCC66;
    STICKLINE((CLOSE <= OPEN),CLOSE,OPEN,2,0),colorFFFF66;


    乖离韵律:

    DRAWGBKLAST(C>0,STRIP(RGB(25,15,0),RGB(60,200,0),70));
    stickline(HHV(HIGH,5)>=REF(HHV(HIGH,5),1),-40,40,0.5,0),POINTDOT,color808080;
    B5:=(C-MA(C,5))/MA(C,5)*100;{5天乖离}
    B10:=(C-MA(C,10))/MA(C,10)*100;{10天乖离}
    Bj10:=ma(B10,3);
    B55:=(C-MA(C,55))/MA(C,55)*100;{N天乖离,取55}
    Bj55:= MA(B55,8);
    {-----------------【图解模板】---------------------}
    {填色}
    FILLRGN(Bj55,0,Bj55>0 and Bj55>ref(Bj55,1)),ColorFF55FF;
    FILLRGN(Bj55,0,Bj55<0 and Bj55<ref(Bj55,1)),colorblue;
    FILLRGN(Bj55,0,Bj55>0 and Bj55<ref(Bj55,1)),Color00FF00;
    FILLRGN(Bj55,0,Bj55<0 and Bj55>ref(Bj55,1)),COLORFF55FF;
    {背离}
    A1:=BARSLAST(REF(CROSS(B55,Bj55),1));
    底背离:=REF(C,A1+1)>C AND B55>REF(B55,A1+1) AND CROSS(B55,Bj55);
    DRAWLINE(A1=0,Bj55,底背离,Bj55,0),Color0098FF,linethick3;
    A2:=BARSLAST(REF(CROSS(Bj55,B55),1));
    顶背离:=REF(C,A2+1)<C AND REF(Bj55,A2+1)>B55 AND CROSS(Bj55,B55);
    DRAWLINE(A2=0,Bj55,顶背离,Bj55,0),COLORGREEN,DOTLINE;
    {乖离}
    乖离5:=B5;
    均离10:=Bj10;
    乖离55:B55,PRECIS2,LINETHICK2,COLORWHITE;
    均离55:Bj55,PRECIS2,LINETHICK2,COLOR0000FF;
      

 

资源下载链接   资源大小:5KB

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZX.COM.CN ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识