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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue