Framework Reference
WEALTHLAB FRAMEWORK / CLASS REFERENCE

Tick

API documentation, members, signatures, and C# examples.

Search the framework

Find classes, members, and documentation.

NamespaceWealthLab.Core
Parent
Object

The Tick class represents a tick, or single trade, in a market data stream. It contains the trade's price, size, and timestamp. Tick is serializable and provides methods for persisting and restoring its values.

Members

5

Parse

public static void Parse(Tick tick, string s)

Populates the supplied tick instance using the persisted Tick data contained in s. The method restores the Price, Size, and TimeStamp values previously generated by Persist.

Persist

public virtual string Persist()

Returns a string representation of the Tick suitable for persistence. The resulting string contains the Tick's Price, Size, and TimeStamp values and can subsequently be restored using Parse.

Price

public double Price

Contains the price at which the trade occurred. The default value is Double.NaN.

Size

public double Size

Contains the size of the trade, such as the number of shares or contracts traded. The default value is Double.NaN.

TimeStamp

public DateTime TimeStamp

Contains the date and time at which the tick was recorded. The default value is DateTime.Now when the Tick instance is created.

Need help with this API?

Ask the community or explore custom development services.