当前位置:→ 股海网同花顺公式 → 正文
  • 同花顺美人副图公式 源码

  • 相关简介:同花顺美人副图公式 源码 同花顺 long:=26; m:=9; short:=12; DIFF1:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA1:=EMA(DIFF1,M); MACD:=2*(DIFF1-DEA1); DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorff00ff,linethick2; DEA : EMA(DIFF1,M),colorwhite,linethick2; AH:HHV(DIFF1,

  • 文章来源:股海网作者:股海网发布时间:2013-03-31浏览次数:下载次数:0

同花顺美人副图公式 源码

同花顺


long:=26;   m:=9;   short:=12;
 DIFF1:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
 DEA1:=EMA(DIFF1,M);
 MACD:=2*(DIFF1-DEA1);
 DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorff00ff,linethick2;
 DEA  : EMA(DIFF1,M),colorwhite,linethick2;
 AH:HHV(DIFF1,55),COLOR6600ff,linethick2;
 AL:LLV(DIFF1,55),COLOR248a24,linethick2;
 ●60零上金叉:IF(CROSS(DIFF,DEA) AND DIFF>0,0.3,0),COLOR6600ff,POINTDOT;
 STICKLINE(●60零上金叉,DIFF,ah,4,0),COLOR6600ff;
 ■零下金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.001,0.3,0),colorwhite,POINTDOT;
 STICKLINE(■零下金叉,0.1,0.15,6,0),colorwhite;
 JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
 ■二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,0.2,0),COLOR3C86CC,POINTDOT;
 STICKLINE(■二次金叉,0.15,0.2,6,0),COLOR3C86CC;
 A3:=CROSS(DIFF,DEA) AND DEA<0;
 ■零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10) AND DEA<0,0.05,0),COLORF58F98,POINTDOT;
 STICKLINE(■零下二次金叉,0.25,0.3,6,0),COLORF58F98;
 A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
 ■底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),0.1,0),COLORFFFF00;
 STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),0,AL,4,0),COLOR00FF00;
 STICKLINE(■底背离,0.2,0.25,6,0),COLORFFFF00;
 DRAWLINE(A1=0,DEA,■底背离,DEA,0),coloryellow;
 A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
 STICKLINE(REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),0,DIFF,4,0),colorblack;
 顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
 DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen;
 DD:=C=HHV(C,100);
 EE:=DEA1< REF(DEA1,1) AND REF(DEA1< REF(DEA1,1),1)=1;
 CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背离:(CC AND EE)*AH,STICK,linethick2,COLORff00FF;
 顶背离:(DD AND EE AND DEA1< HHV(DEA1,100))*AH,STICK,LINETHICK2,coloryellow;
 DRAWTEXT(顶背离,DEA1/2,'顶背离'),ALIGN1,coloryellow;
 FF:=C=LLV(C,100);
 GG:= DEA1> REF(DEA1,1) AND REF(DEA1> REF(DEA1,1),1)=1;
 LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背离:(LL AND GG)*AL,STICK,linethick2,colorwhite;
 底背离:(FF AND GG AND DEA1> LLV(DEA1,100))*AL,STICK,LINETHICK2,COLOR6600ff;
 DRAWTEXT(底背离,DEA1/2,'底背离'),ALIGN1,color6600FF;
 g1:IF(diff<0,diff,0),colorff00ff,linethick2;
 g2:IF(diff<0,0,diff),coloryellow,linethick2;
 g3:IF(diff<dea,diff,dea),colorffff00,linethick2;
 g4:IF(diff>dea,dea,dea),colorwhite,linethick2;
 PARTLINE(DEA,DEA>0,RGB(255,0,255)),LINETHICK2;
 PARTLINE(DEA,DEA<0,RGB(255,255,225)),LINETHICK2;
 PARTLINE(DIFF,DIFF>0,RGB(255,255,0)),LINETHICK2;
 PARTLINE(DIFF,DIFF<0,RGB(0,0,255)),LINETHICK2;
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,8,0 ),COLOr008800;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,7,0 ),COLOR009900;
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,6,0 ),COLOR00aa00;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,5,0 ),COLOR00bb00;
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00cc00;
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0 ),COLOR00dd00;
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00ee00;
 STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR00ff00;
 STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,8,0 ),COLOR000088;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,7,0 ),COLOR000099;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,6,0 ),COLOR0000aa;
 STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,5,0 ),COLOR0000bb;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR0000cc;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3,0 ),COLOR0000dd;
 STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0000ee;
 STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR0000ff;
 STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLOR338fdd;
 STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,7,0 ),COLOR339fdd;
 STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,6,0 ),COLOR33afdd;
 STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,5,0 ),COLOR33bfdd;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLOR33cfdd;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLOR33dfdd;
 STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLOR33efdd;
 STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLOR33ffdd;
 STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLORFF4400;
 STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,7,0 ),COLORFF6600;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,6,0 ),COLORFF7700;
 STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,5,0 ),COLORFF8800;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFF9900;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLORFFaa00;
 STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFbb00;
 STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFFcc00;
 VAR1:=HHV(DEA,53);VAR2:=LLV(DEA,30);VAR3:=DEA-(DIFF-DEA);
 UP:IF(DIFF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),COLORbb9a00,LINETHICK2;
 DN:IF(DIFF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2),COLORaa00bb,LINETHICK2;
 美人开眼:=CROSS(DIFF ,DEA ) AND CROSS( DIFF,DN ) AND DN<0;
 美人开眼a:美人开眼*AL,STICK,linethick4,COLOR8080ff;
 DRAWTEXT(美人开眼,dn,'美人开眼'),ALIGN1,COLOR8080FF,linethick2;
 美人收眼:=CROSS(DEA ,DIFF ) AND CROSS( UP,DIFF ) AND DIFF<UP;
 美人收眼a:美人收眼*ah,STICK,linethick4,COLOR9ca010;
 DRAWTEXT(美人收眼,dn,'美人收眼'),ALIGN1,COLOR9ca010,linethick2;
 

 

同花顺美人副图公式 源码

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

同花顺美人副图公式 源码

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2013-03-31
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.