搏杀生命线主图指标
原理解析:
AMV0赋值:成交量(手)*(开盘价+收盘价)/2
输出博杀生命线:AMV0的88日累和/成交量(手)的88日累和,COLORFF00FF,线宽为2
输出CG:收盘价的17日简单移动平均,COLORFFCC66,线宽为2
FL赋值:2日内CG的最高值
输出博杀持股线:2日内CG的最高值,COLOR00FF00
输出FS:CG-(FL-CG),画黄色,线宽为2
CXH赋值:STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1))
输出WARNING('',CURRENTTIME>180000 AND (CXH=1 OR CXH=6))
DRAWTEXTREL(10 ,10 ,'指标公式')
源码:
AMV0:=VOL*(O+C)/2;
博杀生命线:SUM(AMV0,88)/SUM(VOL,88),COLORFF00FF,LINETHICK2;
CG:MA(C,17),COLORFFCC66,LINETHICK2;
FL:=HHV(CG,2);
博杀持股线:HHV(CG,2),COLOR00FF00;
FS:CG-(FL-CG),COLORYELLOW,LINETHICK2;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式');