In the async function buy() and sell() the values of x,x2 and y,y2 change as the for loop itera
buy()
sell()
x
x2
y
y2