Table of Contents

Method CalculateEquityHistory

Namespace
ViiSync.AccountApi
Assembly
ViiSync.AccountApi.dll

CalculateEquityHistory(DateTime, EquityTimeframe, bool)

Equity curve sampled every timeframe from from to now (MT5 CalculateEquityHistory): balance from the deal ledger plus the floating P/L of the positions open at each sample, priced at that sample's M1 close. A symbol whose profit currency is not the deposit currency is converted at the HISTORICAL rate of that sample — the M1 close of the conversion pair (direct, inverse, or through USD), as the terminal does; only when the server holds no bar of the pair before a sample does it fall back to the live rate.

public List<EquityPoint> CalculateEquityHistory(DateTime from, EquityTimeframe timeframe = EquityTimeframe.H1, bool excludeSameBars = true)

Parameters

from DateTime
timeframe EquityTimeframe
excludeSameBars bool

Returns

List<EquityPoint>

Remarks

MT5 equivalent

  • MT5API.CalculateEquityHistory(DateTime from, MT5API api, EquityTimeframe timeframe, bool excludeSameBars = True) — full: balance/realized/unrealized sampled from deals + M1 closes at the timeframe; cross-currency P/L converted at the historical M1 rate of the conversion pair