MM:=BARSLAST(REF(C,1) =REF(MA1,1) AND C MA1)+1;
NN:=BARSLAST(REF(C,1) =REF(MA1,1) AND C MA1);
QQ:=IF((REF(C,1) =REF(MA1,1)) AND (C MA1),
IF(REF(MA1,1) MA1,AA,BB),IF(BARSSINCE(REF(C,1) =REF(MA1,1)
AND C MA1) 0,IF(REF(MA1, MM) REF(MA1,NN),REF(MA1,NN)*0.98,
REF(MA1,MM)*0.98), REF(MA1,1)));
明短支撑:QQ;