以下是通达信主图安全买入副图指标公式

涨幅:=C/REF(C,1);

X_1:=HHV(HIGH,9);

X_2:=LLV(LOW,9);

X_3:=(X_1-X_2)/100;

X_4:=(CLOSE-X_2)/(X_1-X_2)*100;

X_5:=SMA(X_4,3,1);

X_6:=SMA(X_5,3,1);

X_7:=3*X_5-2*X_6;

X_8:=X_5*X_3+X_2;

X_9:=X_6*X_3+X_2;

X_10:=X_7*X_3+X_2;

X_11:=EMA(CLOSE,12)-EMA(CLOSE,26);

X_12:=EMA(X_11,9);

X_13:=2*(X_11-X_12);

X_14:=1.25*X_11-0.25*X_12;

X_15:=(X_14*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;

X_16:=(X_11*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;

X_17:=(X_12*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;

X_18:=(X_15+X_17)/2;

X_19:=ATAN((X_16-REF(X_16,1))/REF(X_16,1)*100)*180/3.14159;

K:=X_15;

X_20:=X_16;

X_21:=X_18;

Q:=X_17;

X_22:=EMA(K,3);

X_23:=EMA(K,2);

F:=EMA(X_21,1);

安全:CROSS(F,Q) AND 涨幅<1.09,NODRAW,COLORYELLOW;

谨慎:CROSS(F,Q) AND 涨幅>=1.09,NODRAW,COLORRED;

AQ:STICKLINE(安全 ,0,8,1,0),COLORGREEN;

JS:STICKLINE(谨慎 ,0,8,1,0),COLORRED;

DRAWTEXT(安全,5,'安全买入'),COLORYELLOW;

DRAWTEXT(谨慎,5,'谨慎买入'),COLORWHITE;

 

通达信二虎把门主图、安全买入副图指标公式源码

通达信二虎把门主图、安全买入副图指标公式源码

    

      文章来源:通达信二虎把门主图、安全买入副图指标公式源码

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。