// Set 5
if ((Position.MarketPosition == MarketPosition.Short)
&& (Position.GetUnrealizedProfitLoss(PerformanceUnit. Currency, Close[0]) >= 500))
{
ExitShort(Convert.ToInt32(Position.Quantity), "", "");
}
The problem with this is that it exits when the unrealized position gets to 500, however if i had been in several loosing trades prior, say i lost 100 and 100, id be -200 in realized profits, since my position exited when it reached 500, my total profit is 300. I want it to exit when the total pnl is 500, in this example it should have exited when my unrealized was at $700 because of my two loosing trades.
Thanks

Comment