资金仓位 通达信副图指标 源码 贴图
2019-02-24 09:37:00来源:本站整理浏览:1161
资金仓位 通达信副图指标 源码 贴图
X_1:=5.5;
DRAWTEXT_FIX(X_1=5.5,0,0.08,0,75);
X_2:=MA(CLOSE,5);
X_3:=MA(CLOSE,15);
X_4:=MA(CLOSE,20);
X_5:=MA(CLOSE,45);
说明:120,POINTDOT;
满仓:100,POINTDOT,COLORRED;
八成:80,POINTDOT,COLORRED;
半仓:50,POINTDOT,COLORRED;
三成:30,POINTDOT;
空仓:0,POINTDOT;
X_6:=CLOSE<X_2 AND CLOSE<X_3 AND CLOSE<X_4 AND CLOSE<X_5;
X_7:=CLOSE>X_2 AND CLOSE<X_3 AND CLOSE<X_4 AND CLOSE<X_5;
X_8:=CLOSE>X_2 AND CLOSE>X_3 AND CLOSE<X_4 AND CLOSE<X_5;
X_9:=CLOSE>X_2 AND CLOSE>X_3 AND CLOSE>X_4 AND CLOSE<X_5;
X_10:=CLOSE>X_2 AND CLOSE>X_3 AND CLOSE>X_4 AND CLOSE>X_5;
X_11:=CLOSE<X_2 AND CLOSE>X_3 AND CLOSE>X_4 AND CLOSE>X_5;
X_12:=CLOSE<X_2 AND CLOSE<X_3 AND CLOSE>X_4 AND CLOSE>X_5;
X_13:=CLOSE<X_2 AND CLOSE<X_3 AND CLOSE<X_4 AND CLOSE>X_5;
X_14:=CLOSE<X_2 AND CLOSE>X_3 AND CLOSE>X_4 AND CLOSE<X_5;
X_15:=CLOSE<X_2 AND CLOSE>X_3 AND CLOSE<X_4 AND CLOSE<X_5;
X_16:=CLOSE>X_2 AND CLOSE<X_3 AND CLOSE>X_4 AND CLOSE>X_5;
X_17:=CLOSE>X_2 AND CLOSE=X_3 AND CLOSE>X_4 AND CLOSE>X_5;
X_18:=CLOSE>X_2 AND CLOSE<X_3 AND CLOSE<X_4 AND CLOSE>X_5;
X_19:=CLOSE<X_2 AND CLOSE<X_3 AND CLOSE>X_4 AND CLOSE<X_5;
X_20:=CLOSE>X_2 AND CLOSE<X_3 AND CLOSE>X_4 AND CLOSE<X_5;
X_21:=CLOSE>X_2 AND CLOSE>X_3 AND CLOSE<X_4 AND CLOSE>X_5;
STICKLINE(X_6,0,0,3,0),COLORGREEN;
STICKLINE(X_7 OR X_18 OR X_19 OR X_21,0,20,3,0),COLORGREEN;
STICKLINE(X_8 OR X_20,0,50,3,0),COLORRED;
STICKLINE(X_9,0,80,3,0),COLORRED;
STICKLINE(X_10,0,100,3,0),COLORRED;
STICKLINE(X_11,0,80,3,0),COLORRED;
STICKLINE(X_12,0,50,3,0),COLORRED;
STICKLINE(X_13,0,20,3,0),COLORGREEN;
STICKLINE(X_14 OR X_15 OR X_16 OR X_17,0,50,3,0),COLORRED;