Thanks for that. I had read that but couldn't quite get to grips with the correct way of accessing an analysers' final value from within the strategy, since the stop method of the analyser needs be called before rets contains any value. eg.
But self.analyzers.mysharpe.stop() only gets called after self.stop()
So I guess my question is: Is there a recommended way to do what I'm trying to do that I have completely missed?