Login Page - Create Account

Support Board


Date/Time: Tue, 01 Jul 2025 15:59:54 +0000



Post From: Setting to flatten at end of day session in auto trade system

[2016-02-02 04:27:43]
Sierra Chart Engineering - Posts: 104368
Therefore you need to use this function:
Automated Trading From an Advanced Custom Study: sc.FlattenAndCancelAllOrders

This code example here may help you:
http://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#ActionWhenCertainTimeIsEncounteredInMostRecentBar
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