In a strategy not in real time data but on historical data I used 2 function:
1) SetStopLoss,
2)SetProfitTarget
They are calculated and update in OnBarUpdate with a strategy.
SetStopLoss works well, when the data reach the stop loss, a signal stop loss is generated and exit strategy.
But when SetProfitTarget reach the price target no signal is generated.
Does SetProfitTarget work using historical data?
Thanks

Comment