Support Board
Date/Time: Fri, 31 Oct 2025 17:54:57 +0000
Automated trading - line code to exit a trade at a define time of day?
View Count: 583
| [2020-12-14 12:12:05] | 
| User285018 - Posts: 1 | 
| Hi, I cannot get sierrachart to exit a position before the end of a pit session. For eample, if I am in a position position but would like to get it closed before the pit closes? thank you | 
| [2020-12-14 17:33:15] | 
| John - SC Support - Posts: 42694 | 
| You could use the Global Profit/Loss Management feature and set the time you  want to flatten your trades in the Flatten Positions at Set Time field. Refer to the information here: Global Profit/Loss Management: Flatten Positions at Set Time For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing | 
| [2020-12-14 18:32:28] | 
|  | 
| If you want to close just one position at a particular time, then  use this Trade Window setting: Basic Trading and the Trade Window: A >> Flatten And Cancel at Set Time 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:
