mhallsmoore / qstrader

QuantStart.com - QSTrader backtesting simulation engine.
https://www.quantstart.com/qstrader/
MIT License
2.79k stars 842 forks source link

added example of json statistics usage to examples folder, added para… #364

Open calumrussell opened 3 years ago

calumrussell commented 3 years ago

JSONStatistics class was missing documentation for the required variable target_allocation which resulted in an error when used in the same way as TearsheetStatistics.

I added documentation for the variable, and added an example using JSONStatistics to examples/ which makes usage of the class clearer to users.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 69.61% when pulling 83c951ab5ac2fb2ec3eb7ec5a0800d91cbbe202b on calumrussell:stats_json_fix into beab13fd82538728ad12235686ffb9566e6f0a42 on mhallsmoore:master.