The only systems and traders that I know of that are consistently successful in the long term are largely non-discretionary, in terms of entry, exit, and money management. To successfully code all those non-discretionary elements in order that it can be backtested is hard in my opinion.