P1:=CLOSE*vol;
P2:=EMA((EMA(P1,3)/EMA(VOL,3)+EMA(P1,6)/EMA(VOL,6)+EMA(P1,12)/EMA(VOL,12)+EMA(P1,24)/EMA(VOL,24))/4,13);
P3:=1.08*P2;
P4:=EMA(P3-(EMA(CLOSE,3)-P3),5);
P5:=IF(P4<=P3,P4,P3),COLORYELLOW,LINETHICK2;
XG:LONGcrOSS(C,P5,5);
ZYG2:=MA(CLOSE,23)+MA(CLOSE,23)*5/100;
ZYG3:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
ZYG4:=CLOSE>REF(CLOSE,1)*1.05;
XG:crOSS(ZYG3,ZYG2)&&ZYG4;

