返回顶部
  • 发帖数516
  • 粉丝0

此人很懒,什么也没有留下

  • 最佳新人

  • 活跃会员

    经常参与各类话题的讨论,发帖内容较有主见
  • 热心会员

    经常帮助其他会员答疑
  • 终身成就

    为论坛做出突出贡献的会员
  • 爆料达人

    发帖爆料达人
开启左侧

[技巧] 期货波段多头空头副图指标源码附图

[复制链接]
股票大数据 首发之星 显示全部楼层 发表于 2022-4-27 22:53:16 |阅读模式 打印 上一主题 下一主题
灵通疑期货波段多头空头副图目标源码附图(无源码的请下载附件导进)

SJTJ:=1;
XA_1:=IF(1=1 OR 1=3,HIGH,CLOSE);
XA_2:=IF(1=1 OR 1=3,LOW,CLOSE);
XA_3:=3=1 OR 3=2 OR 3=3;
XA_4:=3=2 OR 3=3;
XA_5:=3=3;
XA_6:=C;
XA_7:=IF(XA_6=1,REF(XA_6,1)-1,IF(XA_6=(-1),REF(XA_6,1)+1,XA_6));
XA_8:=IF(XA_7<0,XA_7+1,XA_7-1);
XA_9:=TROUGHBARS(3,3,1);
XA_10:=PEAKBARS(3,3,1);
XA_11:=IF(XA_9=0,(-1),IF(XA_10=0,1,0));
XA_12:=IF(XA_9=0,XA_10,IF(XA_10=0,-XA_9,IF(XA_9>XA_10,XA_10,-XA_9)));
XA_13:=H;
XA_14:=BARSLAST(XA_13<0);
XA_15:=BARSLAST(XA_13>0);
XA_16:=IF(XA_14=0,(-1),IF(XA_15=0,1,0));
XA_17:=IF(XA_14=0,XA_15,IF(XA_15=0,-XA_14,IF(XA_14>XA_15,XA_15,-XA_14)));
XA_18:=IF(1=2,XA_11,IF(1=3,XA_16,XA_6));
XA_19:=IF(1=2,XA_12,IF(1=3,XA_17,XA_8));
XA_20:=IF(XA_19<0,-XA_19,XA_19);
周期:XA_20,NODRAW,COLORWHITE;
XA_21:=IF(XA_19>0,100*(XA_2/REF(XA_1,XA_20)-1),100*(XA_1/REF(XA_2,XA_20)-1));
涨跌幅:XA_21,NODRAW,COLORWHITE;
XA_22:=INBLOCK(1)=1 AND NOT(NAMEINCLUDE(2));
XA_23:=IF(0=0,XA_20,MIN(XA_20,0));
XA_24:=IF(XA_19>0,100*(XA_2/REF(XA_1,XA_23)-1),100*(XA_1/REF(XA_2,XA_23)-1));
XA_25:=IF(XA_22,AMOUNT/100000000,VOL/100);
XA_26:=SUM(XA_25,XA_23);
XA_27:=XA_26/XA_24/1;
速率挚帻:XA_27,NODRAW,COLORWHITE;
DRAWLINE(XA_3 AND XA_18=(-1),XA_2,XA_3 AND XA_18=1,XA_1,0),DOTLINE,COLORYELLOW;
DRAWLINE(XA_3 AND XA_18=1,XA_1,XA_3 AND XA_18=(-1),XA_2,0),DOTLINE,COLORYELLOW;
DRAWNUMBER(XA_4 AND XA_18=1,HIGH,ROUND(XA_27)),COLORWHITE,LINETHICK9;
DRAWNUMBER(XA_4 AND XA_18=(-1),LOW,ROUND(XA_27)),COLORWHITE;
XA_28:=BARSLAST(XA_18=1);CHAGULA:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
XA_29:=BARSLAST(XA_18=(-1));
XA_30:=IF(XA_28=0 OR XA_29=0,DRAWNULL,(REF(XA_1,XA_28)+REF(XA_2,XA_29))/2);
R50%:IF(XA_5,XA_30,DRAWNULL),POINTDOT,COLORWHITE;
XA_31:=IF(HIGH<REF(LOW,1),REF(LOW,1),HIGH);
XA_32:=IF(LOW>REF(HIGH,1),REF(HIGH,1),LOW);
XA_33:=HHV(XA_31,3);
XA_34:=LLV(XA_32,3);
XA_35:=BARSLAST(XA_34<REF(XA_34,1));
XA_36:=BARSLAST(XA_33>REF(XA_33,1));
XA_37:=IF(HHV(XA_31,XA_36+1)=XA_31,1,0);
XA_38:=IF(LLV(XA_32,XA_35+1)=XA_32,1,0);
XA_39:=BARSLAST(XA_37);
XA_40:=REF(LLV(XA_32,3),XA_39);
XA_41:=BARSLAST(XA_38);
XA_42:=REF(HHV(XA_31,3),XA_41);
XA_43:=VALUEWHEN(XA_42>0,XA_42);
XA_44:=VALUEWHEN(XA_40>0,XA_40);
XA_45:=IF(CLOSE>XA_43,(-1),IF(CLOSE<XA_44,1,0));
XA_46:=VALUEWHEN(XA_45!=0,XA_45);
XA_47:=BARSLAST(CROSS(0,XA_46));
XA_48:=BARSLAST(CROSS(XA_46,0));
XA_49:=IF(XA_46=1,IF(LLV(XA_43,XA_48+1)=XA_43,XA_43,LLV(XA_43,XA_48+1)),XA_43);
XA_50:=IF(XA_46=(-1),IF(HHV(XA_44,XA_47+1)=XA_44,XA_44,HHV(XA_44,XA_47+1)),XA_44);
XA_51:=IF(CLOSE>XA_49,(-1),IF(CLOSE<XA_50,1,0));
XA_52:=VALUEWHEN(XA_51!=0,XA_51);
XA_53:=BARSLAST(CROSS(0,XA_51));
XA_54:=BARSLAST(CROSS(XA_51,0));
XA_55:=IF(XA_52=1,IF(LLV(XA_49,XA_54+1)=XA_49,XA_49,LLV(XA_49,XA_54+1)),IF(HHV(XA_50,XA_53+1)=XA_50,XA_50,HHV(XA_50,XA_53+1)));
多头行益:IF(XA_5 AND XA_52<0,XA_55,DRAWNULL),COLORMAGENTA,LINETHICK3;
空头行益:IF(XA_5 AND XA_52>0,XA_55,DRAWNULL),COLORCYAN,LINETHICK3;


STICKLINE(XA_5 AND XA_52<0,LOW,HIGH,1,1),COLORRED;
STICKLINE(XA_5 AND XA_52<0,CLOSE,OPEN,1,1),COLORRED;
STICKLINE(XA_5 AND XA_52>0,LOW,HIGH,1,0),COLORCYAN;
STICKLINE(XA_5 AND XA_52>0,CLOSE,OPEN,1,0),COLORCYAN;





上一篇:潜伏回升副图/选股预警 源码 附图
下一篇:回踩支撑位主图指标源码
您需要登录后才可以回帖 登录 | 立即注册 用百度帐号登录

本版积分规则

首发之家社区成立于2011年3月,内容涉及3C家电、数码生活智能电视,股票软件,4K,体育,软件,教育,游戏等资源指标公式论坛。
  • 官方手机版

  • 抖音号

  • 商务合作

  • Powered by Discuz! X3.4 | Copyright © 2011-2021, Tencent Cloud. | 首发之家社区
  • |网站地图 | mp4d@qq.com|小黑屋|手机版|