Table of Contents

Interface ICompressor

Namespace
Balsam.Compression
Assembly
Balsam.Backtester.dll

Interface for compressing objects to higher timeframes.

public interface ICompressor
Extension Methods

Properties

Count

Gets the number of objects that have been added.

int Count { get; }

Property Value

int

FirstDate

Gets the first date in the compressed object.

DateTime FirstDate { get; }

Property Value

DateTime

LastDate

Gets the last date in the compressed object.

DateTime LastDate { get; }

Property Value

DateTime

Methods

Add(DateTime, object)

Adds the specified date and value to the compressed object.

void Add(DateTime date, object value)

Parameters

date DateTime
value object

GetValue()

Gets the compressed object.

object GetValue()

Returns

object

Reset()

Resets the compresed object back to its original, empty state.

void Reset()