通达信FS放量买卖 源码
HJ_1:=IF(CLOSE>REF(CLOSE,1),VOL,0);
HJ_2:=CONST(REF(HHV(HJ_1,249),FROMOPEN));
HJ_3:=CONST(REF(HHV(HJ_1,FROMOPEN),0));
HJ_4:=HJ_3/HJ_2;{}
HJ_5:=IF(CLOSE<=REF(CLOSE,1),VOL,0);
量线:CONST(REF(HHV(HJ_5,239),FROMOPEN)),COLORYELLOW;
突破力度:HJ_3/量线,NODRAW;
HJ_6:=IF(CLOSE/OPEN<1.04 AND CLOSE>REF(CLOSE,1) AND CLOSE/DYNAINFO(3)>VOL/HJ_2*1.5 AND CLOSE/DYNAINFO(3)<VOL/HJ_2*2.2 AND VOL/HJ_2<2 AND CLOSE>REF(HHV(CLOSE,239),FROMOPEN) AND VOL>REF(HHV(VOL,FROMOPEN),1),1,0);
STICKLINE(HJ_6=1,0,HHV(VOL,FROMOPEN+239)*1.5,2,(-1)),COLORLIRED;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0,0),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0,0),COLORGREEN;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,0,0),COLORWHITE;
HJ_7:=CROSS(VOL,量线);
DRAWTEXT(HJ_7 AND CLOSE>REF(CLOSE,10),量线,1101),COLORRED;
DRAWTEXT(HJ_7 AND CLOSE<REF(CLOSE,10),量线,1102),COLORGREEN;
{-----------------------------------}
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HJ_1赋值:IF(收盘价>1日前的收盘价,成交量,0)
HJ_2赋值:CONST(REF(249日内HJ_1最高值,FROM开盘价))
HJ_3赋值:CONST(REF(FROM开盘价日内HJ_1最高值,0))
HJ_4赋值:HJ_3/HJ_2
{}
HJ_5赋值:IF(收盘价<=1日前的收盘价,成交量,0)
输出
量线:CONST(REF(239日内HJ_5最高值,FROM开盘价)),画黄色
输出
突破力度:HJ_3/量线,NODRAW
HJ_6赋值:IF(收盘价/开盘价<1.04 AND 收盘价>1日前的收盘价 AND 收盘价/DYNAINFO(3)>成交量/HJ_2*1.5 AND 收盘价/DYNAINFO(3)<成交量/HJ_2*2.2 AND 成交量/HJ_2<2 AND 收盘价>REF(239日内收盘价最高值,FROM开盘价) AND 成交量>REF(FROM开盘价日内成交量最高值,1),1,0)
STICKLINE(HJ_6=1,0,FROM开盘价+239日内成交量最高值*1.5,2,(-1)),COLORLIRED
STICKLINE(收盘价>1日前的收盘价,0,成交量,0,0),画红色
STICKLINE(收盘价<1日前的收盘价,0,成交量,0,0),画绿色
STICKLINE(收盘价=1日前的收盘价,0,成交量,0,0),画白色
HJ_7赋值:成交量上穿量线
DRAWTEXT(HJ_7 AND 收盘价>10日前的收盘价,量线,1101),画红色
DRAWTEXT(HJ_7 AND 收盘价<10日前的收盘价,量线,1102),画绿色
{-----------------------------------}