通达信趋势启动副图指标 启动决策线 源码 贴图
2023-11-16 10:04:00来源:本站整理浏览:1008
通达信趋势启动副图指标 启动决策线 源码 贴图
X_1:=2*CLOSE;
X_2:=X_1+HIGH;
X_3:=(X_2+LOW)/4;
X_4:=LLV(LOW,34);
X_5:=HHV(HIGH,34);
X_6:=EMA((X_3-X_4)/(X_5-X_4)*100,13);
X_7:=EMA(0.667*REF(X_6,1)+0.333*X_6,2);
X_8:=X_3-X_4;
X_9:=X_5-X_4;
X_10:=X_8/X_9*100;
X_11:=SLOPE(CLOSE,21);
X_12:=X_11*20+CLOSE;
X_13:=MA(HIGH,13);
X_14:=LLV(LOW,20);
X_15:=CLOSE/REF(CLOSE,1)>=1.07;
X_16:=EMA(X_10,8);
X_17:=EMA(X_16,5);
X_18:=EMA(CLOSE,2);
X_19:=EMA(X_12,42);
X_20:=HHV(X_13,13);
X_21:=LLV(X_13,1);
X_22:=EMA(CLOSE,4);
X_23:=X_18>=X_19 AND X_21=X_20 AND X_18>X_22 AND CLOSE>X_21 AND REF(X_21,1)<REF(X_20,1);
X_24:=BARSLAST(X_23)+1;
X_25:=LLV(LOW,X_24)*1.3;
X_26:=X_14*1.418;
X_27:=X_18>=X_19 AND X_21=X_20 AND X_15 AND X_24<=30 AND CLOSE<=X_25 AND CLOSE<=X_26;
X_28:=X_27 AND FILTER(X_27,X_24);
X_29:=X_18>=X_19 AND X_21=X_20 AND CLOSE/REF(CLOSE,1)>=1.035;
X_30:=X_29 AND X_24<=30 AND CLOSE<=X_25 AND CLOSE<=X_26;
X_31:=X_30 AND FILTER(X_30,20);{公式网WWW.GPXIAZAI.COM}
DRAWTEXT_FIX(CLOSE>OPEN,0,0.2,0,10),COLOR666666;
启动决策线:EMA(X_7,5),COLORYELLOW,LINETHICK2;
启动:IF(启动决策线>=REF(启动决策线,1),启动决策线,DRAWNULL),COLORRED,LINETHICK3;
STICKLINE(X_16-X_17>0,X_16,X_17,3,0),COLORRED;
STICKLINE(X_16-X_17<0,X_16,X_17,3,0),COLORA67D3D;
DRAWICON(CROSS(X_16-X_17>0,启动决策线>=REF(启动决策线,1)) AND 启动决策线<50,启动决策线,13);
DRAWTEXT(CROSS(X_16-X_17>0,启动决策线>=REF(启动决策线,1)) AND 启动决策线<50,启动决策线,'趋势启动'),COLORYELLOW;
X_2:=X_1+HIGH;
X_3:=(X_2+LOW)/4;
X_4:=LLV(LOW,34);
X_5:=HHV(HIGH,34);
X_6:=EMA((X_3-X_4)/(X_5-X_4)*100,13);
X_7:=EMA(0.667*REF(X_6,1)+0.333*X_6,2);
X_8:=X_3-X_4;
X_9:=X_5-X_4;
X_10:=X_8/X_9*100;
X_11:=SLOPE(CLOSE,21);
X_12:=X_11*20+CLOSE;
X_13:=MA(HIGH,13);
X_14:=LLV(LOW,20);
X_15:=CLOSE/REF(CLOSE,1)>=1.07;
X_16:=EMA(X_10,8);
X_17:=EMA(X_16,5);
X_18:=EMA(CLOSE,2);
X_19:=EMA(X_12,42);
X_20:=HHV(X_13,13);
X_21:=LLV(X_13,1);
X_22:=EMA(CLOSE,4);
X_23:=X_18>=X_19 AND X_21=X_20 AND X_18>X_22 AND CLOSE>X_21 AND REF(X_21,1)<REF(X_20,1);
X_24:=BARSLAST(X_23)+1;
X_25:=LLV(LOW,X_24)*1.3;
X_26:=X_14*1.418;
X_27:=X_18>=X_19 AND X_21=X_20 AND X_15 AND X_24<=30 AND CLOSE<=X_25 AND CLOSE<=X_26;
X_28:=X_27 AND FILTER(X_27,X_24);
X_29:=X_18>=X_19 AND X_21=X_20 AND CLOSE/REF(CLOSE,1)>=1.035;
X_30:=X_29 AND X_24<=30 AND CLOSE<=X_25 AND CLOSE<=X_26;
X_31:=X_30 AND FILTER(X_30,20);{公式网WWW.GPXIAZAI.COM}
DRAWTEXT_FIX(CLOSE>OPEN,0,0.2,0,10),COLOR666666;
启动决策线:EMA(X_7,5),COLORYELLOW,LINETHICK2;
启动:IF(启动决策线>=REF(启动决策线,1),启动决策线,DRAWNULL),COLORRED,LINETHICK3;
STICKLINE(X_16-X_17>0,X_16,X_17,3,0),COLORRED;
STICKLINE(X_16-X_17<0,X_16,X_17,3,0),COLORA67D3D;
DRAWICON(CROSS(X_16-X_17>0,启动决策线>=REF(启动决策线,1)) AND 启动决策线<50,启动决策线,13);
DRAWTEXT(CROSS(X_16-X_17>0,启动决策线>=REF(启动决策线,1)) AND 启动决策线<50,启动决策线,'趋势启动'),COLORYELLOW;
- 上一篇公式:通达信波段操作启动副图指标 源码 贴图
- 下一篇公式:通达信山峰心理线副图指标 源码 贴图