nautilus_trader
nautilus_trader copied to clipboard
Performance Stats in streaming feather
Feature Request
It would be nice to have Performance Stats (engine.portfolio.analyzer.get_performance_stats_returns()
) in streaming feather. This will help analyse how the strategy is performing over-time in rolling manner.
Also allowing to specifiy the custom period will be allow more flexibility to request updated stats within Strategy and include performance in decision making i.e. in case the Strategy is under-performing.
Hey @rsmb7z yep this is a great idea. Chris and I have spoken about something kind of similar.
We just need to decide where it gets calculated. While we decide, and If you wanted something sooner, I think you could achieve something similar with an actor.
We could probably add some portfolio configuration to calculate and publish performance stats continuously on some interval. It has access to the message bus, will have a think.
@cjdsellers thanks for taking this. Yes interval shall be okay once a day (or configurable timedelta). I was having thought on while trading specially Live, we will have single portfolio, so if we can have these stats per strategy.