Support Board
Date/Time: Sat, 10 May 2025 14:30:10 +0000
Post From: Flatten Positions outside of desired time ranges
[2015-07-21 10:50:11] |
|
This code must be located outside of the sc.SetDefaults code block and it needs to be changed as shown: if (sc.CurrentSystemDateTime.GetTime() < StartTime.GetTime() || sc.CurrentSystemDateTime.GetTime() > EndTime.GetTime() ) { sc.FlattenAndCancelAllOrders(); } 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 Date Time Of Last Edit: 2015-07-21 10:51:37
|