当前位置:→ 股海网大智慧公式 → 正文
  • 自动测涨跌幅的公式

  • 相关简介:{ 自动测幅 }{主图叠加} input:KG1(20,1,50),F1(10,1,20); a1:=IF((DATATYPE = 3),1,(IF((DATATYPE = 5),5,(IF((DATATYPE = 7),10,KG1))))); a2:=IF((DATATYPE = 5),1,(IF((DATATYPE = 6),3,(IF((DATATYPE = 7),5,F1))))); a3:=ZIG(4,a1); a4:=PEAK(4,a1,1); a5:=TROUGH(4,a1,1)

  • 文章来源:股海网作者:股海网发布时间:2015-01-05浏览次数:下载次数:0

{ 自动测幅 }{主图叠加}
input:KG1(20,1,50),F1(10,1,20);
 a1:=IF((DATATYPE <= 3),1,(IF((DATATYPE <= 5),5,(IF((DATATYPE <= 7),10,KG1)))));
 a2:=IF((DATATYPE <= 5),1,(IF((DATATYPE = 6),3,(IF((DATATYPE = 7),5,F1)))));
 a3:=ZIG(4,a1);
 a4:=PEAK(4,a1,1);
 a5:=TROUGH(4,a1,1);
 CC:IF((a3 < (REF(a3,1))),a4,a5),linethick0;
 a6:=CROSS((a4 - 0.02),a3);
 a7:=CROSS(a3,(a5 + 0.02));
 a8:=a2 / 100;
 a9:=IF((a3 < (REF(a3,1))),a8,REVERSE(a8));
 a10:=IF((a3 < (REF(a3,1))),a6,a7);
 H1:REF((CC * (1 - (a9 * 1))),BARSLAST(a10)),DOTLINE,linethick0;
 H2:REF((CC * (1 - (a9 * 2))),BARSLAST(a10)),DOTLINE,linethick0;
 H3:REF((CC * (1 - (a9 * 3))),BARSLAST(a10)),DOTLINE,linethick0;
 H4:REF((CC * (1 - (a9 * 4))),BARSLAST(a10)),DOTLINE,linethick0;
 H5:REF((CC * (1 - (a9 * 5))),BARSLAST(a10)),DOTLINE,linethick0;
 H6:REF((CC * (1 - (a9 * 6))),BARSLAST(a10)),DOTLINE,linethick0;
 H7:REF((CC * (1 - (a9 * 7))),BARSLAST(a10)),DOTLINE,linethick0;
 H8:REF((CC * (1 - (a9 * 8))),BARSLAST(a10)),DOTLINE,linethick0;
 H9:REF((CC * (1 - (a9 * 9))),BARSLAST(a10)),DOTLINE,linethick0;
 H10:REF((CC * (1 - (a9 * 10))),BARSLAST(a10)),DOTLINE,linethick0;
 H11:REF((CC * (1 - (a9 * 11))),BARSLAST(a10)),DOTLINE,linethick0;
 H12:REF((CC * (1 - (a9 * 12))),BARSLAST(a10)),DOTLINE,linethick0;
 H13:REF((CC * (1 - (a9 * 13))),BARSLAST(a10)),DOTLINE,linethick0;
 H14:REF((CC * (1 - (a9 * 14))),BARSLAST(a10)),DOTLINE,linethick0;
 H15:REF((CC * (1 - (a9 * 15))),BARSLAST(a10)),DOTLINE,linethick0;
 a11:=BARSLAST((DISPSTATUS = 1)) + 1;
 a12:=HHVALL((HHV(HIGH,a11)));
 a13:=LLVALL((LLV(LOW,a11)));
 a14:=IF((DATATYPE = 2),1.00005,(IF((DATATYPE < 6),1.0005,1.002)));
 STICKLINE(((CC >= a13) AND (CC <= a12)),CC,(CC * a14),10,-1000),colorRed;
 STICKLINE(((CC >= a13) AND (CC <= a12)),H1,H1,5,0),colorGray;
 STICKLINE(((H1 > a13) AND (H1 < a12)),H2,H2,5,0),colorGray;
 STICKLINE(((H2 > a13) AND (H2 < a12)),H3,H3,5,0),colorGray;
 STICKLINE(((H3 > a13) AND (H3 < a12)),H4,H4,5,0),colorGray;
 STICKLINE(((H4 > a13) AND (H4 < a12)),H5,H5,5,0),colorGray;
 STICKLINE(((H5 > a13) AND (H5 < a12)),H6,H6,5,0),colorGray;
 STICKLINE(((H6 > a13) AND (H6 < a12)),H7,H7,5,0),colorGray;
 STICKLINE(((H7 > a13) AND (H7 < a12)),H8,H8,5,0),colorGray;
 STICKLINE(((H8 > a13) AND (H8 < a12)),H9,H9,5,0),colorGray;
 STICKLINE(((H9 > a13) AND (H9 < a12)),H10,H10,5,0),colorGray;
 STICKLINE(((H10 > a13) AND (H10 < a12)),H11,H11,5,0),colorGray;
 STICKLINE(((H11 > a13) AND (H11 < a12)),H12,H12,5,0),colorGray;
 STICKLINE(((H12 > a13) AND (H12 < a12)),H13,H13,5,0),colorGray;
 STICKLINE(((H13 > a13) AND (H13 < a12)),H14,H14,5,0),colorGray;
 STICKLINE(((H14 > a13) AND (H14 < a12)),H15,H15,5,0),colorGray;
 DRAWTEXT(((a10 AND (CC >= a13)) AND (CC <= a12)),H1,''+a2 * 1+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H1 > a13)) AND (H1 < a12)),H2,''+a2 * 2+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H2 > a13)) AND (H2 < a12)),H3,''+a2 * 3+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H3 > a13)) AND (H3 < a12)),H4,''+a2 * 4+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H4 > a13)) AND (H4 < a12)),H5,''+a2 * 5+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H5 > a13)) AND (H5 < a12)),H6,''+a2 * 6+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H6 > a13)) AND (H6 < a12)),H7,''+a2 * 7+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H7 > a13)) AND (H7 < a12)),H8,''+a2 * 8+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H8 > a13)) AND (H8 < a12)),H9,''+a2 * 9+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H9 > a13)) AND (H9 < a12)),H10,''+a2 * 10+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H10 > a13)) AND (H10 < a12)),H11,''+a2 * 11+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H11 > a13)) AND (H11 < a12)),H12,''+a2 * 12+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H12 > a13)) AND (H12 < a12)),H13,''+a2 * 13+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H13 > a13)) AND (H13 < a12)),H14,''+a2 * 14+'%'),ColorC0C0C0;
 DRAWTEXT(((a10 AND (H14 > a13)) AND (H14 < a12)),H15,''+a2 * 15+'%'),ColorC0C0C0;
 a15:=BARSLAST(a6) + 1;
 a16:=BARSLAST(a7) + 1;
 a17:=IF((a16 > a15),a15,a16);
 a18:=IFS((CC = a4),'下行 ','上升 ');
a19:=IFS((DATATYPE = 8),'天 ',IFS((DATATYPE = 9),'周 ',IFS((DATATYPE = 10),'月 ','单位')));
DRAWTEXTREL(-70,40,'目前波段'+a18+a17+a19),ColorCCCCCC;
 DRAWTEXT(a6,CC,''+REF(a17,1)+a19),VALIGN2,ALIGN2,ColorFF99FF;
 DRAWTEXT(a7,(CC * 0.995),''+REF(a17,1)+a19),ALIGN2,Color00EECC;
 
自动测涨跌幅的公式

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

自动测涨跌幅的公式

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

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

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