mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-04 10:44:53 +08:00
ENH: Add print of monthly Sharpe to DMA example.
This commit is contained in:
@@ -87,4 +87,7 @@ if __name__ == '__main__':
|
||||
ax2.plot(results.ix[results.sell].index, results.short_mavg[results.sell],
|
||||
'v', markersize=10, color='k')
|
||||
plt.legend(loc=0)
|
||||
|
||||
sharpe = [risk['sharpe'] for risk in dma.risk_report['one_month']]
|
||||
print "Monthly Sharpe ratios:", sharpe
|
||||
plt.gcf().set_size_inches(18, 8)
|
||||
|
||||
Reference in New Issue
Block a user