通达信资金仓位副图源码
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;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标
相关指标公式
X_1赋值:5.5
当满足条件X_1=5.5时,在横轴0纵轴0.08位置书写文字
X_2赋值:收盘价的5日简单移动平均
X_3赋值:收盘价的15日简单移动平均
X_4赋值:收盘价的20日简单移动平均
X_5赋值:收盘价的45日简单移动平均
输出说明:120,POINTDOT
输出满仓:100,POINTDOT,画红色
输出八成:80,POINTDOT,画红色
输出半仓:50,POINTDOT,画红色
输出三成:30,POINTDOT
输出空仓:0,POINTDOT
X_6赋值:收盘价X_7赋值:收盘价>X_2 AND 收盘价X_8赋值:收盘价>X_2 AND 收盘价>X_3 AND 收盘价X_9赋值:收盘价>X_2 AND 收盘价>X_3 AND 收盘价>X_4 AND 收盘价X_10赋值:收盘价>X_2 AND 收盘价>X_3 AND 收盘价>X_4 AND 收盘价>X_5
X_11赋值:收盘价X_3 AND 收盘价>X_4 AND 收盘价>X_5
X_12赋值:收盘价X_4 AND 收盘价>X_5
X_13赋值:收盘价X_5
X_14赋值:收盘价X_3 AND 收盘价>X_4 AND 收盘价X_15赋值:收盘价X_3 AND 收盘价X_16赋值:收盘价>X_2 AND 收盘价X_4 AND 收盘价>X_5
X_17赋值:收盘价>X_2 AND 收盘价=X_3 AND 收盘价>X_4 AND 收盘价>X_5
X_18赋值:收盘价>X_2 AND 收盘价X_5
X_19赋值:收盘价X_4 AND 收盘价X_20赋值:收盘价>X_2 AND 收盘价X_4 AND 收盘价X_21赋值:收盘价>X_2 AND 收盘价>X_3 AND 收盘价X_5
当满足条件X_6时,在0和0位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色
当满足条件X_7ORX_18ORX_19ORX_21时,在0和20位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色
当满足条件X_8ORX_20时,在0和50位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色
当满足条件X_9时,在0和80位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色
当满足条件X_10时,在0和100位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色
当满足条件X_11时,在0和80位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色
当满足条件X_12时,在0和50位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色
当满足条件X_13时,在0和20位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色
当满足条件X_14ORX_15ORX_16ORX_17时,在0和50位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色