Login Page - Create Account

Support Board


Date/Time: Tue, 01 Jul 2025 09:31:55 +0000



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

View Count: 1082

[2016-02-02 00:12:53]
User68474 - Posts: 202
Is there a way to adjust settings to effect "flatten" and "cancel all" at the end of a day session when using Auto Trading ?
[2016-02-02 02:06:33]
Sierra Chart Engineering - Posts: 104368
Not automatically. You need to program this.

Are you using Spreadsheets or the Advanced Custom Study Interface and Language for automated trading?
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
[2016-02-02 03:05:24]
User68474 - Posts: 202
Custom Study
[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

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

Login

Login Page - Create Account