When creating an exit plan within the the strategy if you move the Profit Target on the chart, when the next bar closes the Profit Target moves itself back to the original value
IS THERE AWAY to be able to adjust the profit target and it remain at the new level?
I am using the below method to send my stoploss and profit target as soon as my new position is created
// stop loss and profit target submit
if ((High[0] != Close[0])
&& (Position.MarketPosition == MarketPosition.Long)
&& (UsePivotsForExit == true))
{
ExitLongStopMarket(Convert.ToInt32(Position.Quanti ty), (Position.AveragePrice + (-StopLoss * TickSize)), @"ProgStopLoss", "");
ExitLongLimit(Convert.ToInt32(DefaultQuantity), (Position.AveragePrice + (ProfitTarget * TickSize)) , @"ProgProfitT", "");
}
is there anything i can add to achieve the desired result
Thanks
Comment