Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 12:48:16 +0000



Post From: sc.CancelOrder() cancelling *ALL* filled orders ALSO?

[2023-05-11 21:33:32]
User133994 - Posts: 80
Support,

Thanks so much for your quick response and debugging idea.

It worked. It turns out sc.CancelOrder() doesn't cancel existing positions like I thought. Instead, the opposite occurred: I exited the existing positions then called sc.CancelOrder().

"The stop/targets for the other 4 orders are 50+ ticks away from the current price when this message is posted in the log also--so no chance a stop/target got hit." -- must be an incorrect statement. Debugging fun, I'm sure you've been there.

Appreciate your help. Always encouraged by the SC staff.
Date Time Of Last Edit: 2023-05-11 21:35:14