Enter long and set a target. No problem there. If I receive another entry condition before the target is hit, I want to add another contract but reduce the target. I can't figure out how to modify the target when >= 2 contracts are open. I tried
protected override void OnBarUpdate()
{
// Condition set 1
if (Position.GetProfitLoss(Close[0], PerformanceUnit.Points) >= 10)
{
ExitLong("Exit Long", "Long Entry");
}
}}

Comment