Login Page - Create Account

Support Board


Date/Time: Mon, 28 Oct 2024 11:17:53 +0000



Post From: Flatten Positions outside of desired time ranges

[2015-07-21 10:50:11]
Sierra Chart Engineering - Posts: 104368
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