Position.GrossProfit
property · Position · cAlgo.API
DesktopCLICloud
Gross profit accrued by the order associated with the position.
Definition
double GrossProfit {get;}
position.GrossProfit: float
Returns double
Examples
var position = Positions.Find("myLabel");
if (position != null)
Print("Gross profit: {0}", position.GrossProfit);
position = api.Positions.Find("myLabel")
if position is not None:
api.Print(f"Gross profit: {position.GrossProfit}")