that is weird. It doesn’t require any target order…do you have any code that you would use a target somewhere? A google search with your error comes up with nothing. Sorry
@FauxBogan I suspect the relevant code isn’t the EnterLong() block. Since EnterLong() is just a market entry, the issue is more likely to be in the code that calculates or submits the profit target after the entry signal.