通达信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;
{-----------------------------------}