Class MarketTimer
- Namespace
- StockSharp.Algo
- Assembly
- StockSharp.Algo.dll
The timer, based on trading system time.
public class MarketTimer : Disposable
- Inheritance
-
MarketTimer
- Extension Methods
Constructors
MarketTimer(IConnector, Action)
Initializes a new instance of the MarketTimer.
public MarketTimer(IConnector connector, Action activated)
Parameters
connector
IConnectorThe connection to trading system, from which event MarketTimeChanged will be used.
activated
ActionThe timer processor.
Methods
DisposeManaged()
Release resources.
protected override void DisposeManaged()
Interval(TimeSpan)
To set the interval.
public MarketTimer Interval(TimeSpan interval)
Parameters
Returns
- MarketTimer
The timer.
Start()
To start the timer.
public MarketTimer Start()
Returns
- MarketTimer
The timer.
Stop()
To stop the timer.
public MarketTimer Stop()
Returns
- MarketTimer
The timer.