Tick
struct cAlgo.API
DesktopCLICloud
Represents the Tick object.
Definition
public sealed struct Tick : ValueType
Namespace: cAlgo.API · Group: Ticks
Examples
var tick = MarketData.GetTicks().LastTick;
Print("Tick at {0}, bid: {1}, ask: {2}, spread: {3} pips", tick.Time, tick.Bid, tick.Ask, (tick.Ask - tick.Bid) / Symbol.PipSize);
tick = api.MarketData.GetTicks().LastTick
api.Print(f"Tick at {tick.Time}, bid: {tick.Bid}, ask: {tick.Ask}, spread: {(tick.Ask - tick.Bid) / api.Symbol.PipSize} pips")
Properties
| Name | Description |
|---|---|
AskDesktopCLIClouddouble | Gets the Ask price of tick. |
BidDesktopCLIClouddouble | Gets the Bid price of tick. |
TimeDesktopCLICloudDateTime | Gets the Tick time. |