抢筹出击红柱是吸筹阶段通达信公式 副图 源码附图
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;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:9
M1赋值:3
输出出击线:(收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100,LINETHICK2,画红色
出击线的M1日[1日权重]移动平均
MTM赋值:C-1日前的C
VAR1赋值:REF((最低价+OPEN+收盘价+最高价)/4,1)
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
输出低位抢筹:IF(VAR5>1日前的VAR5,VAR5,0),画红色,NODRAW
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2,0 ),COLOR000055
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.6,0 ),COLOR000077
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.5.1,0 ),COLOR000099
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.0,0 ),COLOR0000BB
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.6,0 ),COLOR0000DD
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.3,0 ),COLOR0000FF
输出震仓柱:IF(VAR5<1日前的VAR5,VAR5,0),COLORGREEN,NODRAW
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2,0),COLOR005500
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.6,0),COLOR007700
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.5.1,0),COLOR009900
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.0,0),COLOR00BB00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.6,0),COLOR00DD00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.3,0),COLOR00FF00
V1赋值:10日内最低价最低值
V2赋值:25日内H最高值
价位线赋值:EMA((C-V1)/(V2-V1)*4,4)
DRAWTEXT(价位线上穿0.3,30+6,'★买'),画黄色