[恒大淘宝]通达信趋势启动指标公式
作者
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_19ANDX_21=X_20ANDX_18>X_22ANDCLOSE>X_21ANDREF(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_19ANDX_21=X_20ANDX_15ANDX_24<=30ANDCLOSE<=X_25ANDCLOSE<=X_26;X_28:=X_27ANDFILTER(X_27,X_24);X_29:=X_18>=X_19ANDX_21=X_20ANDCLOSE/REF(CLOSE,1)>=1.035;X_30:=X_29ANDX_24<=30ANDCLOSE<=X_25ANDCLOSE<=X_26;X_31:=X_30ANDFILTER(X_30,20);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;
目录