Your code suggests that you don't know how function return values work.

A function can only return once with one value. Once it returns, the function is done.

Yet, I see you are returning multiple values from your functions tradeUNO and tradeDOS. Actually, only the first value gets returned.

Worse, you're not even making use of the function return value, where the functions were invoked.

Read this. See the section on return values:
https://zorro-project.com/manual/en/function.htm

Also, learn the difference between global and local variables:
https://zorro-trader.com/manual/en/aarray.htm

At the end of the day, your computer does not do what you want it to do, but what you tell it to do.