Suoranta.Finance Namespace
Suoranta.Finance - Developer API

ITimeScale Interface

Represents a time span. Primarily used to define the width of bars (candles).

Namespace:  Suoranta.Finance
Assembly:  Suoranta.Finance (in Suoranta.Finance.dll)

Syntax


public interface ITimeScale : IComparable<ITimeScale>, 
	IEquatable<TimeSpan>, IFormattable

Remarks


  • ITimeScales do not behave identically with TimeSpan in all scenarios because markets have variable number of trading hours and days.
  • Advisable to use DivideBy(ITimeScale) and GetRatioTo(ITimeScale) to find ratio of two values, as these take into account the actual numbers of trading hours and days.