Class SessionCompression
- Namespace
- Balsam.Compression
- Assembly
- Balsam.Backtester.dll
Excludes data outside of a particular trading session. Use to transform 24 hour trading into a day session for example.
public class SessionCompression : CompressionProvider, ICompressionProvider
- Inheritance
-
SessionCompression
- Implements
- Inherited Members
- Extension Methods
Constructors
SessionCompression(TimeSpan, TimeSpan)
Initializes a new SessionCompression object using the specified start and end times.
public SessionCompression(TimeSpan startTime, TimeSpan endTime)
Parameters
Properties
EndTime
Gets the end time.
public TimeSpan EndTime { get; }
Property Value
StartTime
Gets the start time.
public TimeSpan StartTime { get; }
Property Value
Methods
OnCompress(ISeries, ICompressor)
Compresses the specified series.
protected override ISeries OnCompress(ISeries series, ICompressor compressor)
Parameters
series
ISeriescompressor
ICompressor