What is the function to check the last closed position, if was long or short and if it was in profit or loss?
Postion.MarketPosition == MarketPosition.Long I check actual position if it is long, if I want to check last closed position?
Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) > 0
Is this correct to check if the actual position it is in gain?
I check the total profit or the profit of actual open position only?
I need to check if the last closed position was in profit or loss.
Thank you

Comment