I have basically created a python alpaca trading bot which is supposed to use algorithmic strategies to make trades. Recently I have implemented trailing stop orders which I heard are really useful in algorithmic trading. But the only problem is that the order doesn’t always fill. I see orders that have been made in the morning around 7:40 AM PST and are still not filled as of the time I am writing this post (10:16 AM PST). I was just wondering if others have also experienced this issue and how can I fix this? I have attached an image with my order history.
Here is my code (Python):
order = api.submit_order( symbol=args_list, type="trailing_stop", qty=str(quantity), side="buy", time_in_force='day', trail_percent="0.7" )