X_1:=(C-MA(C,20))/MA(C,20)*100;
X_2:=(C-REF(C,1))/REF(C,1)*100;
X_3:=BARSLAST(BARSLAST(X_1 0 AND REF(X_1,1) 0)
X_4:=BARSLAST(BARSLAST(X_1 0 AND REF(X_1,1) 0)
юШхС:IF(X_3 0,SUM(X_2,X_3),0),STICK;
бРхК:IF(REF(X_4,1) 0 AND X_4=0,5,0),STICK,COLORMAGENTA;
бТЁЖ:IF(REF(X_3,1) 0 AND X_3=0,5,0),STICK,COLORCYAN;
Ёж╠р:IF(X_4 0,(-5),0),STICK;
STICKLINE(юШхС 0,юШхС,0,2,0),COLORRED;
STICKLINE(юШхС =0,юШхС,0,2,0),COLORGREEN;
STICKLINE(X_4 0,(-5),0,2,0),COLORYELLOW;
STICKLINE(бРхК 0,5,0,2,0),COLORLIRED;
STICKLINE(бТЁЖ 0,5,0,2,0),COLORLIBLUE;