Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 16:04:04 +0000



[Programming Help] - Sierra Chart cancelling all working orders and placing them again.

View Count: 145

[2024-10-09 12:48:52]
User921201 - Posts: 4
Hello, I am using ASCIL to trade using Sierra, When I Start my study, there's one market order which get's executed as planned. Then it cancels all the working orders, and then again places a market order, but this time the working orders are still in place, so where I was supposed to get x lot at market price, I end up getting 2x lot at market price. Can you help me understand what is wrong. Didn't face this issue while back testing but facing it on live. I am attaching my trade Activity Log and the setting which I have in my code.

When you check for Order Sent (Order Status) you can see that orders are being sent then cancelled and then placed again for some unknown reason.

Canceling all non-market orders for Symbol and Account during Flatten/Reverse, whereas I am neither flattening or reversing my position. And if there is an error in code then why does it stop at 2x, it should go on forever right?
imageSierra Code.png / V - Attached On 2024-10-09 12:48:17 UTC - Size: 71.57 KB - 32 views
Private File
[2024-10-10 14:26:50]
User921201 - Posts: 4
Is there no update on the same? Please help me understand what is going on, why am I facing this issue, Account Support is asking to post in support board and in support board no one is able to help me?
[2024-10-11 17:51:45]
ForgivingComputers.com - Posts: 959
You could try setting
sc.SupportReversals = false;

However, there is likely something in your code that is causing the order issues. Maybe you are getting reversal signals and don't realize it. Have you tried the Visual Studio Debugger?
[2024-10-15 18:06:01]
User921201 - Posts: 4
Hey, I did try sc.SupportReversals = false and I was facing the same issue, it is not something which I am facing while backtesting which is weird, only facing it while I am live. And yeah maybe I'll try Visual Studio Debugger and see if I can figure it out.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account