TimeFrameStrategy

StockSharp.Algo.Strategies

The timeframe based trade strategy.

继承自: Strategy

构造函数

TimeFrameStrategy(TimeSpan)

Initialize TimeFrameStrategy.

timeFrame
The strategy timeframe.

属性

Interval : TimeSpan

The strategy start-up interval. By default, it equals to TimeFrame.

TimeFrame : TimeSpan

The strategy timeframe.

方法

OnProcess() : ProcessResults

The implementation of the trade algorithm.

返回值: The result of trade algorithm one iteration operation.

OnStarted2(DateTime)

The method is called when the Start method has been called and the ProcessState state has been taken the Started value.