i have 3 different entries at the same time. they all have three different targets.
if (Position.MarketPosition == MarketPosition.Flat && LinRegSlope1[0] < Entry) { EnterLongLimit(Convert.ToInt32(fxToBuy), GetCurrentBid(0), "Target1"); EnterLongLimit(Convert.ToInt32(fxToBuy), GetCurrentBid(0), "Target2"); EnterLongLimit(Convert.ToInt32(fxToBuy), GetCurrentBid(0), "Target3"); CandleOutlineBrush = Brushes.CornflowerBlue; }
if (previousTradeCash > 0 && Position.GetUnrealizedProfitLoss(PerformanceUnit.Currency, Close[0])/previousTradeCash <= -riskProfits) { ExitLong(Convert.ToInt32(Position.Quantity), "ProfitProtect1", "Target1"); ExitLong(Convert.ToInt32(Position.Quantity), "ProfitProtect2", "Target2"); ExitLong(Convert.ToInt32(Position.Quantity), "ProfitProtect3", "Target3"); }
the reason why i needed to give each entry a unique name was because i have multiple profit targets:
SetProfitTarget("Target1", CalculationMode.Ticks, Target1*10); SetProfitTarget("Target2", CalculationMode.Ticks, Target2*10); SetProfitTarget("Target3", CalculationMode.Ticks, Target3*10); SetStopLoss(CalculationMode.Ticks, ST*10);
1) have same entry name and shed that quantity at multiple targets?
2) tell n8 that target1, target2 and target3 are all "one" trade?
3) basically I want n8 to be able to recognize that target1,target2,target 3 are all the same name
thanks
Comment