I'm new and I'm still learning.  I'm making strategies just to learn the mechanics.  I had some strategies working when I was using market orders, but I want to use GDAX and avoid fees, so I want to use limit orders.   I can't seem to figure out how to make this work.  I don't seem to be able to make the algorythm be aware that it already has an order submitted seems to be the biggest problem, but i would love any comments on everything I'm doing wrong.

I reduced the code down to just the minimum about Limit Orders to hopefully focus the solution.

Thank you.

Author