Backtesting with stoploss?
Created at 23 Oct 2016, 11:57
Backtesting with stoploss?
23 Oct 2016, 11:57
Is there a way to run a backtest with a stoploss? Another thread said backtesting does not use the stoploss setting, and after hours searching and trying I haven't been able to implement it in code.
I would like to add a small snippet of code to perform this function during backtesting even if it needs to be hard coded. Any help would be appreciated.
As an example I am backtesting the Sample Trend cBot, however large losses occur that a stoploss would avoid.
Replies
... Deleted by UFO ...
croucrou
23 Oct 2016, 13:46
@croucrou