Support Board
Date/Time: Mon, 25 Nov 2024 06:56:43 +0000
Post From: Turn off auto trading in acsil on Friday afternoon
[2013-06-03 19:44:43] |
ejtrader - Posts: 688 |
As Vegasfoster suggested - probably you try this instead (not tested). Alternately - you can try exploring the usage of local time as well (NOW related functions). Thanks sc.SendOrdersToTradeService = SendOrdersToService.GetYesNo(); SCDateTime SCDateTimeVariable = sc.BaseDateTimeIn[sc.Index]; if (sc.SendOrdersToTradeService && SCDateTimeVariable.GetDayOfWeek() == FRIDAY && sc.BaseDateTimeIn[sc.Index].GetHour() == 16 && sc.BaseDateTimeIn[sc.Index].GetMinute() == 00) { if(PositionData.WorkingOrdersExist) sc.FlattenAndCancelAllOrders(); sc.SendOrdersToTradeService = false; } Date Time Of Last Edit: 2013-06-03 19:47:11
|