if (_currentPosition == CurrentPos.Long)
{
_stop = entryPrice - StopTicks * TickSize;
_profit = entryPrice + ProfitTicks * TickSize;
_profitOrder = ExitLongLimit(2, true, _posSize, _profit, ProfitLong, EnterLongName);
_stopOrder = ExitLongStopMarket(2, true, _posSize, _stop, StopLong, EnterLongName);
}
Currently StopTicks = 15 and ProfitTicks =6. However I would like to dynamically adjust the stop depending on market conditions so for example if going countertrend:
if(countertrend == true)
{
StopTicks = 4;
}
else
{
StopTicks=6;
}
Can stops and targets be dynamically adjusted depending on conditions in this manner? I have been using fixed stops/targets until now.
Comment