HJ_1:=IF(CLOSE REF(CLOSE,1),VOL*100,(-VOL)*100);
HJ_2:=IF(CLOSE REF(CLOSE,1)*1.02,HJ_1*1.5,VOL);
HJ_3:=IF(CLOSE REF(CLOSE,1)*1.05,HJ_1*2,VOL);
HJ_4:=IF(CLOSE REF(CLOSE,1)*1.07,HJ_1*2.5,VOL);
HJ_5:=MAX(MAX(HJ_2,HJ_3),HJ_4);
XG:HJ_5/REF(VOL,1)
{-----------------------------------}