@wopr I just saw your post from a while back relating to “Strategy twenty-seven: Safer fast mean reversion” from the AFTS book
I agree, there is most definitely a lookahead error with the equilibrium calculation whereby we are using today’s close in order to calculate order levels for earlier that same day.
Quite extraordinary the difference between using today’s and yesterday’s close makes, where we go from a strategy with a Sharpe of 2.1 to a strategy where every single market consistently loses money over all time frames.
So no I don’t think you’re missing anything as my results also produced one of the most consistently unprofitable backtests I’ve ever seen!
It’s a pity because the underlying strategy logic seems very sound and I’m sure there was definitely no intention by Mr Carver to mislead. In fact he modestly makes several disclaimers …
“ I do not trust a backtested Sharpe ratio over two. There are certainly plenty of reasons not to trust this one.”
“There may well be assumptions or errors in my code that make the results look better than they really would have been.”
“I would advise very careful testing”
Which I think all just goes to reinforce the fact that regardless of an author’s pedigree, one should always do one’s own testing.