Login Page - Create Account

Support Board


Date/Time: Fri, 04 Jul 2025 04:54:37 +0000



Post From: During replay back testing I can't close opened position by sc.CancelOrder()

[2015-01-15 17:22:33]
Sierra Chart Engineering - Posts: 104368
You need to enter an opposite order. So you would enter a Sell market order to offset the position. Refer to:
Automated Trading From an Advanced Custom Study: Submitting an Order (Entry and Exit Order Action Functions)
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