X_1:=WINNER(CLOSE)*CAPITAL/100;
X_2:=X_1-VOL/100;
Y:SUM(X_2,10)/10-SUM(X_2,30)/30,COLORRED;
Y1:SUM(X_2,20)/20-SUM(X_2,60)/60,COLORMAGENTA;
Y2:SUM(X_2,30)/30-SUM(X_2,10)/10,COLORFF9900;
Y3:SUM(X_2,60)/60-SUM(X_2,20)/20,COLORBLUE;
X_3:=AMOUNT/VOL*100;
Y4:SUM(X_3,10)/10-SUM(X_3,30)/30,COLORRED;
Y5:SUM(X_3,20)/20-SUM(X_3,60)/60,COLORMAGENTA;
Y6:SUM(X_3,30)/30-SUM(X_3,10)/10,COLORFF9900;
Y7:SUM(X_3,60)/60-SUM(X_3,20)/20,COLORBLUE;