Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 09:41:50 +0000



Flatten and cancel order not placed

View Count: 564

[2020-01-07 16:32:17]
User704508 - Posts: 20
Hi,

I have been using the FlattenAndCancelAllOrders() function for a while now and everything was working fine until yesterday.

The algo is set to flatten and cancel at a specific time, but yesterday, nothing happened.

I have no message in the Message Log, Trade Activity or Trade Service Log so I really don't know what could have happened.

I'd appreciate if you could help me on this.

Best regards,
Matt
[2020-01-07 19:23:20]
Sierra Chart Engineering - Posts: 104368
You need to follow the debugging procedure documented here:
Automated Trading From an Advanced Custom Study: Debugging/Troubleshooting Automated Trading Systems
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-01-08 13:21:47]
User704508 - Posts: 20
As I already mentioned, there is no message in either the Message Log, Trade Activity Log or Trade Service Log.

And the Auto Trading is enabled since my algorithm placed the order in the morning.

Any other idea that could help me?
[2020-01-08 14:16:20]
Sierra Chart Engineering - Posts: 104368
What is the error value returned from the function after calling it?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-01-08 15:36:13]
User704508 - Posts: 20
There is no error value. That's what's weird.

The flatten and cancel function was not called but no error appeared.

But it worked fine in the past.
[2020-01-08 22:39:29]
Sierra Chart Engineering - Posts: 104368
If there is no error the order must have been submitted. So do you see it in the Trade Activity Log?:
Trade Activity Log
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account