Trade Management Information
Once trade is in profit $104 the stop loss should move to breakeven
when the trade is equal or greater to $580 then stop loss is moved into profit to secure $20
lastly once unrealized profit is $1100 then stop loss is set to secure $700.
my initial stop loss is $330
6/10 the stop loss is moved to breakeven
0/10 stop loss is moved to secure $20 after it reaches $580
2/10 stop loss is moved to secure profit of $700 once $1100 unrealized profit is being reached.
Here’s what I have so far
}
ManageTrades();
}
private void ManageTrades()
{
double currentProfitLoss = Position.GetUnrealizedProfitLoss(PerformanceUnit.C urrency, Close[0]);
if (Position.MarketPosition == MarketPosition.Long)
{
if (currentProfitLoss >= ProfitTargetA)
{
double newStopPrice = Position.AveragePrice + ProfitTargetB;
SetStopLoss(CalculationMode.Price, newStopPrice);
}
else if (currentProfitLoss >= MoveToBreakevenProfit)
{
double breakevenPrice = Position.AveragePrice;
SetStopLoss(CalculationMode.Price, breakevenPrice);
}
}
else if (Position.MarketPosition == MarketPosition.Short)
{
if (currentProfitLoss >= ProfitTargetA)
{
double newStopPrice = Position.AveragePrice - ProfitTargetB;
SetStopLoss(CalculationMode.Price, newStopPrice);
}
else if (currentProfitLoss >= MoveToBreakevenProfit)
{
double breakevenPrice = Position.AveragePrice;
SetStopLoss(CalculationMode.Price, breakevenPrice);
}
}
}

Comment