Hi, when doing backtest, something I found helpful and simple to do in case of multiple entry and exit reasons in your code (e.g. risk management, technical indicator, time of day, wrong president got elected etc. etc. etc.)
After every trade instruction assign a numeric code, enter is + and exit is –
Extra: I was thinking of organising it so: Long entry +ve green, Long exit +ve red and Short entry -ve green, Short exit -ve red…but not got round to it yet.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok