When I run my code for a stock like apple, the trailing stop loss works. However, when I run my code for a cheaper stock like BNGO or GEVO, the stop Market orders fill immediately. I am thinking that it is because the bid-ask spread is to large. How can I solve this problem?

Author