Having looked at the SampleScaleOut Strategy, I tried to implement this in my strategy, which is to buy 4 contracts and then sell one at each defined target, however the strategy only seems to do the first "buy". Any ideas?
EnterLong("Buy1");
EnterLong("Buy2");
EnterLong("Buy3");
EnterLong("Buy4");
longCount=1;
SetProfitTarget("Buy1", CalculationMode.Price, targetAValue);
SetProfitTarget("Buy2", CalculationMode.Price, targetBValue);
SetProfitTarget("Buy3", CalculationMode.Price, targetCValue);
SetProfitTarget("Buy4", CalculationMode.Price, targetDValue);

Comment