Example:
EnterLong(10, Cond1) "Buy 10 due to Cond1 rules"
EnterLong(10, Cond2) "Buy 10 due to Cond2 rules"
Cond2 entry has an UnrealizedPnL of 10% while Cond1 is 1%.
So ExitLong Cond2 shares while leaving Cond1 shares open.
Using Position.AveragePrice and Position.GetUnrealizedProfitLoss(PerformanceUnit.P ercent, Close[0]) is only used for the overall position and not unique entries.
Is there a method for doing this?
Thanks,
Comment