هنا ما اقصده بعد استخراج
if(B>S){LowBuy=S;HighBuy=B-S;}
else if(B<S){LowSell=B;HighSell=S-B;}