FS:=ma(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); BB:=IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)); NX:=EMA(C,250); DIFF:=EMA((NX-(EMA(C,3)-NX)),5); CC:=IF(BB=FS,BB,BB); XG:crOSS(CC,DIFF);