实现股市盈利 缠通套利 通达信指标 源码 贴图

2018-06-19 09:08:00来源:本站整理浏览:394

实现股市盈利 缠通套利 通达信指标 源码 贴图

缠通套利 通达信指标 源码 贴图

点击下载缠通套利 通达信指标 源码 贴图


X_1:=MA(CLOSE,5);
X_2:=MA(CLOSE,10);
X_3:=REF(HIGH,5)=HHV(HIGH,11);
X_4:=REF(LOW,5)=LLV(LOW,11);
X_5:=BACKSET(X_3,6)>BACKSET(X_3,5);
X_6:=BACKSET(X_4,6)>BACKSET(X_4,5);
X_7:=IF(BARSLAST(X_5)=BARSLAST(X_6) AND X_1>X_2,X_5,IF(BARSLAST(X_6)>BARSLAST(X_5),X_5,0));
X_8:=IF(BARSLAST(X_5)=BARSLAST(X_6) AND X_2>X_1,X_6,IF(BARSLAST(X_5)>BARSLAST(X_6),X_6,0));
X_9:=X_7 AND HIGH=HHV(HIGH,BARSLAST(X_8));
X_10:=X_8 AND LOW=LLV(LOW,BARSLAST(X_7));
GP:IF(X_9,HIGH,DRAWNULL),CIRCLEDOT,COLORCYAN;
DP:IF(X_10,LOW,DRAWNULL),CIRCLEDOT,COLORCYAN;
X_11:=LOW>REF(HIGH,1) AND DAY!=REF(DAY,1);
X_12:=HIGH<REF(LOW,1) AND DAY!=REF(DAY,1);
X_13:=REF(LOW,BARSLAST(X_11));
X_14:=REF(HIGH,BARSLAST(X_12));
X_15:=REF(HIGH,BARSLAST(X_9));
X_16:=REF(LOW,BARSLAST(X_9));
X_17:=REF(HIGH,BARSLAST(X_9)+1);
X_18:=REF(LOW,BARSLAST(X_9)+1);
X_19:=REF(HIGH,BARSLAST(X_9)+2);
X_20:=REF(LOW,BARSLAST(X_9)+2);
X_21:=REF(HIGH,BARSLAST(X_10));
X_22:=REF(LOW,BARSLAST(X_10));
X_23:=REF(HIGH,BARSLAST(X_10)+1);
X_24:=REF(LOW,BARSLAST(X_10)+1);
X_25:=REF(HIGH,BARSLAST(X_10)+2);
X_26:=REF(LOW,BARSLAST(X_10)+2);
X_27:=IF(X_16<=X_18,X_19,X_17);
X_28:=IF(X_17<X_16,X_16,IF(X_16<=X_18,X_20,X_18));
X_29:=IF(X_24>X_21,X_21,IF(X_21>=X_23,X_25,X_23));
X_30:=IF(X_21>=X_23,X_26,X_24);
X_31:=X_15>X_29 AND X_9;
X_32:=X_22<X_28 AND X_10;
X_33:=X_31 AND X_15>X_21 AND X_16>X_22 AND X_18>X_22;
X_34:=X_32 AND X_22<X_16 AND X_21<X_15 AND X_23<X_15;
X_35:=HIGH<=REF(HIGH,1) AND LOW>=REF(LOW,1) OR (HIGH>=REF(HIGH,1) AND LOW<=REF(LOW,1));
X_36:=COUNT(X_35,BARSLAST(X_10));
X_37:=COUNT(X_35,BARSLAST(X_9));
X_38:=COUNT(X_11,BARSLAST(X_10));
X_39:=COUNT(X_12,BARSLAST(X_9));
X_40:=IF(X_36>0,X_36+2+老笔,IF(X_37,X_37+2+老笔,3));
X_41:=IF(X_38,X_40-X_38,IF(X_39,X_40-X_39,X_40));
X_42:=X_33 AND BARSLAST(X_34)>X_41;
X_43:=X_34 AND BARSLAST(X_33)>X_41;
X_44:=X_9 AND REF(HIGH,BARSLAST(X_9))>=REF(HIGH,BARSLAST(X_42)) AND BARSLAST(X_43)>BARSLAST(X_42) OR (X_31 AND COUNT(X_11,BARSLAST(X_32))>0 AND REF(HIGH,BARSLAST(X_31))>REF(HIGH,BARSLAST(X_42)));
X_45:=X_10 AND REF(LOW,BARSLAST(X_10))<=REF(LOW,BARSLAST(X_43)) AND BARSLAST(X_42)>BARSLAST(X_43) OR (X_32 AND COUNT(X_12,BARSLAST(X_31))>0 AND REF(LOW,BARSLAST(X_32))<REF(HIGH,BARSLAST(X_43)));
X_46:=IF(BARSLAST(X_45)>BARSLAST(X_44),REF(HIGH,BARSLAST(X_44)),REF(HIGH,BARSLAST(X_45)));
X_47:=IF(BARSLAST(X_44)>BARSLAST(X_45),REF(LOW,BARSLAST(X_45)),REF(LOW,BARSLAST(X_44)));
X_48:=X_44 AND HIGH=HHV(X_46,BARSLAST(X_45)+1) AND HIGH>REF(HIGH,1) AND BARSLAST(X_45)>BARSLAST(X_44);
X_49:=X_45 AND LOW=LLV(X_47,BARSLAST(X_44)+1) AND LOW<REF(LOW,1) AND BARSLAST(X_44)>BARSLAST(X_45);
X_50:=X_48 OR (X_9 AND REF(HIGH,BARSLAST(X_9))>REF(HIGH,BARSLAST(X_48)) AND BARSLAST(X_49)>BARSLAST(X_48));
X_51:=X_49 OR (X_10 AND REF(LOW,BARSLAST(X_10))<REF(LOW,BARSLAST(X_49)) AND BARSLAST(X_48)>BARSLAST(X_49));
GPB:IF(X_42,HIGH,DRAWNULL),CIRCLEDOT,COLORYELLOW;
DPB:IF(X_43,LOW,DRAWNULL),CIRCLEDOT,COLORYELLOW;
X_52:=X_50;
X_53:=X_51;
L1:DRAWLINE(X_53,LOW,X_52,HIGH,0),COLORYELLOW;
L2:DRAWLINE(X_52,HIGH,X_53,LOW,0),COLORWHITE;
X_54:=CLOSE;
X_55:=FILTER(BACKSET(FILTER(REF(X_54,10)=HHV(X_54,2*10+1),10),10+1),10);
X_56:=FILTER(BACKSET(FILTER(REF(X_54,10)=LLV(X_54,2*10+1),10),10+1),10);
X_57:=REF(CLOSE,BARSLAST(X_55));
X_58:=REF(CLOSE,BARSLAST(X_56));
X_59:=BARSLAST(X_55)<BARSLAST(X_56) AND NOT(X_55);
X_60:=BARSLAST(X_55)>BARSLAST(X_56) AND NOT(X_56);
波段顶:IF(X_59,X_57,X_57),POINTDOT,COLORLIGREEN,LINETHICK4;
波段底:IF(X_60,X_58,X_58),POINTDOT,COLORMAGENTA,LINETHICK4;

 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式