首页 > > 详细

通达信缠论套利主图指标 预测趋势拐点 源码附图

X_1:=1;
X_2:=MA(CLOSE,5);
X_3:=MA(CLOSE,10);
X_4:=REF(HIGH,5)=HHV(HIGH,11);
X_5:=REF(LOW,5)=LLV(LOW,11);
X_6:=BACKSET(X_4,6)>BACKSET(X_4,5);
X_7:=BACKSET(X_5,6)>BACKSET(X_5,5);
X_8:=IF(BARSLAST(X_6)=BARSLAST(X_7) AND X_2>X_3,X_6,IF(BARSLAST(X_7)>BARSLAST(X_6),X_6,0));
X_9:=IF(BARSLAST(X_6)=BARSLAST(X_7) AND X_3>X_2,X_7,IF(BARSLAST(X_6)>BARSLAST(X_7),X_7,0));
X_10:=X_8 AND HIGH=HHV(HIGH,BARSLAST(X_9));
X_11:=X_9 AND LOW=LLV(LOW,BARSLAST(X_8));
GP:IF(X_10,HIGH,DRAWNULL),CIRCLEDOT,COLORCYAN;
DP:IF(X_11,LOW,DRAWNULL),CIRCLEDOT,COLORCYAN;
X_12:=LOW>REF(HIGH,1) AND DAY!=REF(DAY,1);
X_13:=HIGH<REF(LOW,1) AND DAY!=REF(DAY,1);
X_14:=REF(LOW,BARSLAST(X_12));
X_15:=REF(HIGH,BARSLAST(X_13));
X_16:=REF(HIGH,BARSLAST(X_10));
X_17:=REF(LOW,BARSLAST(X_10));
X_18:=REF(HIGH,BARSLAST(X_10)+1);
X_19:=REF(LOW,BARSLAST(X_10)+1);
X_20:=REF(HIGH,BARSLAST(X_10)+2);
X_21:=REF(LOW,BARSLAST(X_10)+2);
X_22:=REF(HIGH,BARSLAST(X_11));
X_23:=REF(LOW,BARSLAST(X_11));
X_24:=REF(HIGH,BARSLAST(X_11)+1);
X_25:=REF(LOW,BARSLAST(X_11)+1);
X_26:=REF(HIGH,BARSLAST(X_11)+2);
X_27:=REF(LOW,BARSLAST(X_11)+2);
X_28:=IF(X_17<=X_19,X_20,X_18);
X_29:=IF(X_18<X_17,X_17,IF(X_17<=X_19,X_21,X_19));
X_30:=IF(X_25>X_22,X_22,IF(X_22>=X_24,X_26,X_24));
X_31:=IF(X_22>=X_24,X_27,X_25);
X_32:=X_16>X_30 AND X_10;
X_33:=X_23<X_29 AND X_11;
X_34:=X_32 AND X_16>X_22 AND X_17>X_23 AND X_19>X_23;
X_35:=X_33 AND X_23<X_17 AND X_22<X_16 AND X_24<X_16;
X_36:=HIGH<=REF(HIGH,1) AND LOW>=REF(LOW,1) OR (HIGH>=REF(HIGH,1) AND LOW<=REF(LOW,1));
X_37:=COUNT(X_36,BARSLAST(X_11));
X_38:=COUNT(X_36,BARSLAST(X_10));
X_39:=COUNT(X_12,BARSLAST(X_11));
X_40:=COUNT(X_13,BARSLAST(X_10));
X_41:=IF(X_37>0,X_37+2+X_1,IF(X_38,X_38+2+X_1,3));
X_42:=IF(X_39,X_41-X_39,IF(X_40,X_41-X_40,X_41));
X_43:=X_34 AND BARSLAST(X_35)>X_42;
X_44:=X_35 AND BARSLAST(X_34)>X_42;
X_45:=X_10 AND REF(HIGH,BARSLAST(X_10))>=REF(HIGH,BARSLAST(X_43)) AND BARSLAST(X_44)>BARSLAST(X_43) OR (X_32 AND COUNT(X_12,BARSLAST(X_33))>0 AND REF(HIGH,BARSLAST(X_32))>REF(HIGH,BARSLAST(X_43)));
X_46:=X_11 AND REF(LOW,BARSLAST(X_11))<=REF(LOW,BARSLAST(X_44)) AND BARSLAST(X_43)>BARSLAST(X_44) OR (X_33 AND COUNT(X_13,BARSLAST(X_32))>0 AND REF(LOW,BARSLAST(X_33))<REF(HIGH,BARSLAST(X_44)));
X_47:=IF(BARSLAST(X_46)>BARSLAST(X_45),REF(HIGH,BARSLAST(X_45)),REF(HIGH,BARSLAST(X_46)));
X_48:=IF(BARSLAST(X_45)>BARSLAST(X_46),REF(LOW,BARSLAST(X_46)),REF(LOW,BARSLAST(X_45)));
X_49:=X_45 AND HIGH=HHV(X_47,BARSLAST(X_46)+1) AND HIGH>REF(HIGH,1) AND BARSLAST(X_46)>BARSLAST(X_45);
X_50:=X_46 AND LOW=LLV(X_48,BARSLAST(X_45)+1) AND LOW<REF(LOW,1) AND BARSLAST(X_45)>BARSLAST(X_46);
X_51:=X_49 OR (X_10 AND REF(HIGH,BARSLAST(X_10))>REF(HIGH,BARSLAST(X_49)) AND BARSLAST(X_50)>BARSLAST(X_49));
X_52:=X_50 OR (X_11 AND REF(LOW,BARSLAST(X_11))<REF(LOW,BARSLAST(X_50)) AND BARSLAST(X_49)>BARSLAST(X_50));
GPB:IF(X_43,HIGH,DRAWNULL),CIRCLEDOT,COLORYELLOW;
DPB:IF(X_44,LOW,DRAWNULL),CIRCLEDOT,COLORYELLOW;
X_53:=X_51;
X_54:=X_52;
L1:DRAWLINE(X_54,LOW,X_53,HIGH,0),COLORYELLOW;
L2:DRAWLINE(X_53,HIGH,X_54,LOW,0),COLORWHITE;
X_55:=CLOSE;
X_56:=FILTER(BACKSET(FILTER(REF(X_55,10)=HHV(X_55,2*10+1),10),10+1),10);
X_57:=FILTER(BACKSET(FILTER(REF(X_55,10)=LLV(X_55,2*10+1),10),10+1),10);
X_58:=REF(CLOSE,BARSLAST(X_56));
X_59:=REF(CLOSE,BARSLAST(X_57));
X_60:=BARSLAST(X_56)<BARSLAST(X_57) AND NOT(X_56);
X_61:=BARSLAST(X_56)>BARSLAST(X_57) AND NOT(X_57);
波段顶:IF(X_60,X_58,X_58),POINTDOT,COLORLIGREEN,LINETHICK4;
波段底:IF(X_61,X_59,X_59),POINTDOT,COLORMAGENTA,LINETHICK4;
联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。