Skip to content

HistoricalTrade.EntryPrice

property · HistoricalTrade · cAlgo.API

DesktopCLICloud

The VWAP (Volume Weighted Average Price) of the Opening Deals that are closed.

Definition

double EntryPrice {get;}
historicalTrade.EntryPrice: float

Returns double

Examples

var trade = History.FindLast("myLabel");
if (trade != null)
    Print("Entry price {0}, closing price {1}", trade.EntryPrice, trade.ClosingPrice);
trade = api.History.FindLast("myLabel")
if trade is not None:
    api.Print(f"Entry price {trade.EntryPrice}, closing price {trade.ClosingPrice}")