I am trying to close half of my position when my ATR profit target is hit.
However my Strategy always closes both contracts when the profit target is hit. Can you please help? Code is below:
if ((score > 10) && Position.MarketPosition == MarketPosition.Flat)
{
EnterLong(1,"Enter Long Runner");
EnterLong(1,"Enter Long PT");
}
if (score < 5)
{
ExitLong();
}
SetProfitTarget("Enter Long PT", CalculationMode.Currency, multiplier*(2*ATR(6)[0]));

Comment