Your question relates to the stop market order. you need to look at any conditions that use the stop market order. I don't understand why you are bringing up the entry, that is not related to your stoploss having a rejection for having a wrong price.
If you are not able to use prints to output what your stop loss conditions are doing I can only suggest to reach out to a third party developer to have something made for you.
To solve this question you need to use prints to find out more about what prices you calculate for the stop market order.
ExitLongStopMarket(0, true, Position.Quantity, slLongMinMax[1], "SLL", "TLL");

Comment