Summary

Current gross profit.

Example

//...
private Position position;
//...
protected override void OnStart()
{
    Trade.CreateBuyMarketOrder(Symbol,10000);
}
protected override void OnTick()
{
    if(position != null)
    {
        Print("The current position's gross profit is: {0}", position.GrossProfit);
    }
}
//...
protected override void OnPositionOpened(Position openedPosition)
{
   position = openedPosition;
}
//...