BaşlayınÜcretsiz Başlayın

Plot return histograms of a backtest

Continue with the same strategy backtest result from the previous exercise. Now you would like to plot return histograms to further examine the characteristics of the return distribution.

The bt backtest result has been provided in bt_result and is ready to use. In addition, matplotlib.pyplot has been imported as plt.

Bu egzersiz

Financial Trading in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Plot the daily return histogram
bt_result.____(____)
plt.show()
Kodu Düzenle ve Çalıştır