通达信抢筹出击指标公式
2021/4/22 20:33:35
N:=9;
M1:=3;
出击线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2,COLORRED;
阵地防御:SMA(出击线,M1,1),COLORWHITE;
MTM:=C-REF(C,1);
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
低位抢筹:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2,0 ),COLOR000055;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.6,0 ),COLOR000077;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5.1,0 ),COLOR000099;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.0,0 ),COLOR0000BB;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.6,0 ),COLOR0000DD;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
震仓柱:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2,0),COLOR005500;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.6,0),COLOR007700;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5.1,0),COLOR009900;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.0,0),COLOR00BB00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.6,0),COLOR00DD00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),30+6,'★买'),COLORYELLOW;
投 股票网 www.t ou18.cn
[源码翻译]通达信软件动态翻译的结果
N赋值:9
M1赋值:3
输出出击线:(收盘价-N日内最低价的最低值)/(N日内最高价的最高值-N日内最低价的最低值)*100,线宽为2,画红色
输出阵地防御:出击线的M1日[1日权重]移动平均,画白色
MTM赋值:收盘价-1日前的收盘价
VAR1赋值:1日前的(最低价+开盘价+收盘价+最高价)/4
VAR2赋值:最低价-VAR1的绝对值的13日[1日权重]移动平均/最低价-VAR1和0的较大值的10日[1日权重]移动平均
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内最低价的最低值
VAR5赋值:如果最低价<=VAR4,返回VAR3,否则返回0的3日指数移动平均
输出低位抢筹:如果VAR5>1日前的VAR5,返回VAR5,否则返回0,画红色,NODRAW
当满足条件VAR5>1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR000055
当满足条件VAR5>1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为1.6,0不为0则画空心柱.,COLOR000077
当满足条件VAR5>1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为1.5.1,0不为0则画空心柱.,COLOR000099
当满足条件VAR5>1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为1.0,0不为0则画空心柱.,COLOR0000BB
当满足条件VAR5>1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,COLOR0000DD
当满足条件VAR5>1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,COLOR0000FF
输出震仓柱:如果VAR5<1日前的VAR5,返回VAR5,否则返回0,画绿色,NODRAW
当满足条件VAR5<1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR005500
当满足条件VAR5<1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为1.6,0不为0则画空心柱.,COLOR007700
当满足条件VAR5<1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为1.5.1,0不为0则画空心柱.,COLOR009900
当满足条件VAR5<1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为1.0,0不为0则画空心柱.,COLOR00BB00
当满足条件VAR5<1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,COLOR00DD00
当满足条件VAR5<1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,COLOR00FF00
V1赋值:10日内最低价的最低值
V2赋值:25日内最高价的最高值
价位线赋值:(收盘价-V1)/(V2-V1)*4的4日指数移动平均
当满足条件价位线上穿0.3时,在30+6位置书写文字,画黄色
股市公式下载推荐