{公式名称: 撑压线模拟版 公式描述: 根据ZGL群主思路模拟
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
X_1:=STRCAT(HYBLOCK,14);
X_2:=STRCAT(X_1,DYBLOCK);
X_3:=STRCAT(X_2,13);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_3,GNBLOCK)),COLOR00C0C0;
X_4:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_5:=EMA(X_4,9);
X_6:=(X_4-X_5)*2;
X_7:=CLOSE>REF(CLOSE,4);
X_8:=BARSLASTCOUNT(X_7);
X_9:=X_8=9;
X_10:=ISLASTBAR AND BETWEEN(X_8,1,8);
X_11:=(BACKSET(X_9>0,9) OR BACKSET(X_10>0,X_8))*X_8;
DRAWTEXT(X_11>0,HIGH*1.05,VAR2STR(X_11,0)),COLORMAGENTA;
DRAWTEXT(X_8=9,HIGH*1.05,3),COLORGREEN;
X_12:=CLOSE<REF(CLOSE,4);
X_13:=BARSLASTCOUNT(X_12);
X_14:=X_13=9;
X_15:=ISLASTBAR AND BETWEEN(X_13,1,8);
X_16:=(BACKSET(X_14>0,9) OR BACKSET(X_15>0,X_13))*X_13;
DRAWTEXT(X_16>0,LOW*0.95,VAR2STR(X_16,0)),COLORMAGENTA;
DRAWTEXT(X_13=9,LOW*0.95,3),COLORRED;
X_17:=BACKSET(LLV(LOW,5)<REF(LLV(LOW,4),1),4);
X_18:=BACKSET(X_17=0 AND REF(X_17,1)=1,2);
X_19:=IF(X_18=1 AND REF(X_18,1)=0,(-1),0);
X_20:=BACKSET(HHV(HIGH,5)>REF(HHV(HIGH,4),1),4);
X_21:=BACKSET(X_20=0 AND REF(X_20,1)=1,2);
X_22:=IF(X_21=1 AND REF(X_21,1)=0,1,0);
X_23:=IF(LOW>REF(HIGH,1),1,IF(HIGH<REF(LOW,1),(-1),0));
X_24:=BARSLAST(X_22=1);
X_25:=BARSLAST(X_19=(-1));
X_26:=LOWRANGE(LOW);
X_27:=TOPRANGE(HIGH);
X_28:=IF(X_19=(-1) AND REF(X_24,1)>REF(X_25,1) AND LLV(LOW,X_24+1)<REF(LLV(LOW,X_24+1),1),(-1),0);
X_29:=IF(X_19=(-1) AND REF(X_24,1)<REF(X_25,1) AND (X_24>=4 OR LLV(X_23,X_24)=(-1) OR LOW<REF(LLV(LOW,X_25+1),1)),(-1),0);
X_30:=X_24<4 AND HHV(X_23,X_24)!=(-1);
X_31:=X_19=(-1) AND REF(X_24,1)<REF(X_25,1);
X_32:=X_26>REF(X_27,X_24+1) AND X_26>REF(X_27,X_24) AND X_26>REF(X_26,REF(BARSLAST(X_19=(-1)),X_25+1)+X_25+1);
X_33:=X_30 AND X_31 AND X_32;
X_34:=IF(X_28=(-1) OR X_29=(-1) OR X_33,(-1),0);
X_35:=IF(X_22=1 AND REF(X_25,1)>REF(X_24,1) AND HHV(HIGH,X_25+1)>REF(HHV(HIGH,X_25+1),1),1,0);
X_36:=IF(X_22=1 AND REF(X_25,1)<REF(X_24,1) AND (X_25>=4 OR HHV(X_23,X_25)=1),1,0);
X_37:=X_25<4 AND HHV(X_23,X_25)!=1 OR REF(X_34,X_25)=0;
X_38:=X_22=1 AND REF(X_25,1)<REF(X_24,1);
X_39:=X_27>REF(X_26,X_25+1) AND X_27>REF(X_26,X_25) AND X_27>REF(X_27,REF(BARSLAST(X_22=1),X_24+1)+X_24+1);
X_40:=X_37 AND X_38 AND X_39;
X_41:=IF(X_35=1 OR X_36=1 OR X_40,1,0);
X_42:=BARSLAST(X_41=1);
X_43:=BARSLAST(X_34=(-1));
X_44:=IF(X_34=(-1) AND REF(X_42,1)>REF(X_43,1) AND LLV(LOW,X_42+1)<REF(LLV(LOW,X_42+1),1),(-1),0);
X_45:=IF(X_34=(-1) AND REF(X_42,1)<REF(X_43,1) AND (X_42>=4 OR LLV(X_23,X_42)=(-1) OR LOW<REF(LLV(LOW,X_43+1),1)),(-1),0);
X_46:=X_42<4 AND HHV(X_23,X_42)!=(-1);
X_47:=X_34=(-1) AND REF(X_42,1)<REF(X_43,1);
X_48:=X_26>REF(X_27,X_42+1) AND X_26>REF(X_27,X_42) AND X_26>REF(X_26,REF(BARSLAST(X_34=(-1)),X_43+1)+X_43+1);
X_49:=X_46 AND X_47 AND X_48;
X_50:=IF(X_44=(-1) OR X_45=(-1) OR X_49,(-1),0);
X_51:=IF(X_41=1 AND REF(X_43,1)>REF(X_42,1) AND HHV(HIGH,X_43+1)>REF(HHV(HIGH,X_43+1),1),1,0);
X_52:=IF(X_41=1 AND REF(X_43,1)<REF(X_42,1) AND (X_43>=4 OR HHV(X_23,X_43)=1),1,0);
X_53:=X_43<4 AND HHV(X_23,X_43)!=1 OR REF(X_34,X_43)=0;
X_54:=X_41=1 AND REF(X_43,1)<REF(X_42,1);
X_55:=X_27>REF(X_26,X_43+1) AND X_27>REF(X_26,X_43) AND X_27>REF(X_27,REF(BARSLAST(X_41=1),X_42+1)+X_42+1);
X_56:=X_53 AND X_54 AND X_55;
X_57:=IF(X_51=1 OR X_52=1 OR X_56,1,0);
X_58:=BARSLAST(X_57=1);
X_59:=BARSLAST(X_50=(-1));
X_60:=IF(X_50=(-1) AND REF(X_58,1)>REF(X_59,1) AND LLV(LOW,X_58+1)<REF(LLV(LOW,X_58+1),1),(-1),0);
X_61:=IF(X_50=(-1) AND REF(X_58,1)<REF(X_59,1) AND (X_58>=4 OR LLV(X_23,X_58)=(-1) OR LOW<REF(LLV(LOW,X_59+1),1)),(-1),0);
X_62:=X_58<4 AND HHV(X_23,X_58)!=(-1);
X_63:=X_50=(-1) AND REF(X_58,1)<REF(X_59,1);
X_64:=X_26>REF(X_27,X_58+1) AND X_26>REF(X_27,X_58) AND X_26>REF(X_26,REF(BARSLAST(X_50=(-1)),X_59+1)+X_59+1);
X_65:=X_62 AND X_63 AND X_64;
X_66:=IF(X_60=(-1) OR X_61=(-1) OR X_65,(-1),0);
X_67:=IF(X_57=1 AND REF(X_59,1)>REF(X_58,1) AND HHV(HIGH,X_59+1)>REF(HHV(HIGH,X_59+1),1),1,0);
X_68:=IF(X_57=1 AND REF(X_59,1)<REF(X_58,1) AND (X_59>=4 OR HHV(X_23,X_59)=1),1,0);
X_69:=X_59<4 AND HHV(X_23,X_59)!=1 OR REF(X_50,X_59)=0;
X_70:=X_57=1 AND REF(X_59,1)<REF(X_58,1);
X_71:=X_27>REF(X_26,X_59+1) AND X_27>REF(X_26,X_59) AND X_27>REF(X_27,REF(BARSLAST(X_57=1),X_58+1)+X_58+1);
X_72:=X_69 AND X_70 AND X_71;
X_73:=IF(X_67=1 OR X_68=1 OR X_72,1,0);
X_74:=BARSLAST(X_73=1);
X_75:=BARSLAST(X_66=(-1));
X_76:=REF(BARSLAST(X_73=1),X_74+1)+X_74+1;
X_77:=REF(BARSLAST(X_66=(-1)),X_75+1)+X_75+1;
X_78:=BACKSET(X_66=(-1) AND REF(X_74,1)<REF(X_75,1),X_74+1);
X_79:=BACKSET(X_66=(-1) AND REF(X_74,1)>REF(X_75,1),X_77+1);
X_80:=BACKSET(X_73=1 AND REF(X_74,1)>REF(X_75,1),X_75+1);
X_81:=BACKSET(X_73=1 AND REF(X_74,1)<REF(X_75,1),X_76+1);
X_82:=BACKSET(NOT(X_66=(-1) OR X_73=1) AND X_74>X_75 AND X_75>=5 AND CLOSE>REF(LOW,X_75),X_75+1);
X_83:=BACKSET(NOT(X_66=(-1) OR X_73=1) AND X_74<X_75 AND X_74>=5 AND CLOSE<REF(LOW,X_74),X_74+1);
X_84:=IF(X_66=(-1) AND (X_78+X_80=2 OR X_79+X_80=2 OR X_78+X_81=2 OR X_82=1),(-1),0);
X_85:=IF(X_73=1 AND (X_78+X_80=2 OR X_79+X_80=2 OR X_78+X_81=2 OR X_83=1),1,0);
NOTEXT1A:DRAWLINE(X_85=1,HIGH,X_84=(-1),LOW,0),DOTLINE,COLORGRAY;
NOTEXT2A:DRAWLINE(X_84=(-1),LOW,X_85=1,HIGH,0),DOTLINE,COLORGRAY;
X_86:=IF(X_66=(-1) AND (X_78+X_80=2 OR X_79+X_80=2 OR X_78+X_81=2),(-1),0);
X_87:=IF(X_73=1 AND (X_78+X_80=2 OR X_79+X_80=2 OR X_78+X_81=2),1,0);
NOTEXT1:DRAWLINE(X_87=1,HIGH,X_86=(-1),LOW,0),COLORGRAY;
NOTEXT2:DRAWLINE(X_86=(-1),LOW,X_87=1,HIGH,0),COLORGRAY;
NOTEXT极点:IF(X_86=(-1),LOW,IF(X_87=1,HIGH,DRAWNULL)),CIRCLEDOT,COLOR00CCCC;
X_88:=REF(BARSLAST(X_86=(-1)),1)+1;
X_89:=REF(BARSLAST(X_86=(-1)),X_88+1)+X_88+1;
X_90:=REF(BARSLAST(X_87=1),1)+1;
X_91:=REF(BARSLAST(X_87=1),X_90+1)+X_90+1;
X_92:=ATAN((REF(LOW,X_88)-REF(LOW,X_89))/REF(LOW,X_89)/(X_89-X_88)*100)/3.141593*180;
X_93:=ATAN((REF(HIGH,X_90)-REF(HIGH,X_91))/REF(HIGH,X_91)/(X_91-X_90)*100)/3.141593*180;
X_94:=X_86=(-1) AND BACKSET(ISLASTBAR,X_89+1);
X_95:=X_86=(-1) AND BACKSET(ISLASTBAR,X_88+1);
X_96:=X_87=1 AND BACKSET(ISLASTBAR,X_91+1);
X_97:=X_87=1 AND BACKSET(ISLASTBAR,X_90+1);
支撑线:DRAWLINE(X_94,LOW,X_95,LOW,1),COLORRED;
压力线:DRAWLINE(X_96,HIGH,X_97,HIGH,1),COLORGREEN;
X_98:=X_92>=0 AND X_88<X_90 AND REF(HHV(CLOSE,X_90),1)<=REF(HIGH,X_90) AND CLOSE>REF(HIGH,X_90);
DRAWICO |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!