Commit Graph

10 Commits

Author SHA1 Message Date
AlexCatarino 88b97bd8e4 Adds overload to ScheduleManager.On method that accepts a PyObject parameter
Adding an overload to `ScheduleManager.On` method that accepts a `PyObject` parameter enables python algorithm to pass a method as parameter directly.
- Fixes `ScheduleEventsAlgorithm` to show the new feature in action.
2018-05-07 12:05:00 +01:00
Stefano Raggi 91ba63529b Remove Guid string from ScheduledEvent.Name
Fixes #1674
2018-03-07 21:33:33 +01:00
Stefano Raggi a8fc134c57 Support for scheduled events with same names or date/time rules
Fixes #1061
2018-02-05 11:53:09 +01:00
quant1729 c7ff07d7d5 Added simple event acknowledgement trace lines to ScheduleManager class. Tested using ScheduledEventsAlgorithm code. 2017-02-08 23:15:06 +08:00
snugs 293fc1224a Improves ScheduledEvent usability
Adds Enabled flag to turn event on/off
Adds EventFired event for runtime binding
Schedule builder methods now return ScheduledEvent instance
2015-08-20 18:43:07 -04:00
snugs 33a4db4559 Fixes bug scheduling events on same day 2015-08-20 14:34:13 -04:00
snugs 74d6ab6822 Prevent null ref in ScheduleManager before init 2015-08-20 14:30:22 -04:00
snugs 8380da11cf Adds fluent interface for scheduled events
Algorithms can now use syntax like the following to define events:
Schedule.Event(name).{DateRuleMethod}.{TimeRuleMethod}.Run( lambda )

For example: Schedule.Event(tues).Every(DayOfWeek.Tuesday).AfterMarketOpen(SPY, 20).Run(MyTuesdayHandler);
2015-08-11 10:51:58 -04:00
snugs b68a8be848 Move Date and Time rules to ScheduleManager 2015-08-10 11:38:48 -04:00
snugs 730430b1bb Adds scheduling feature
Adds the ScheduleManager which allows an algorithm to add/remove scheduled events
Check out the ScheduledEventsAlgorithm for syntax
ScheduledEvents are at their core an IEnumerator<DateTime> that defines the event times coupled with a callback
IDateRule defines dates for events
ITimeRule defines time(s) on a given date for events
2015-08-10 10:56:14 -04:00