Method CalculateOrderProfit
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
CalculateOrderProfit(string, double, double, double, bool)
Profit of a hypothetical trade in the deposit currency (MT5 CalculateOrderProfit) — the engine's
ViiPnl.Profit: (close − open)·dir·contract·lots, converted at the live profit-currency rate.
public double CalculateOrderProfit(string symbol, double openPrice, double closePrice, double lots, bool buy)
Parameters
Returns
Remarks
MT5 equivalent
MT5API.CalculateOrderProfit(string symbol, double openPrice, double closePrice, double lots, bool buy)— full