Skip to content

Get more than one statistic when optimize #1147

@edofe99

Description

@edofe99

When I optimize a strategy I can get only a chosen statistic to see for every combinations, for example:

stats, heatmap = bt.optimize(dc_period = range(3,30,3),close_after = range(3,30,3),maximize = 'Return [%]',return_heatmap=True)

If I print(heatmap) I get:

dc_period  close_after
3          3             0.91800
           6             1.65825
           9             1.37100
           12            1.11650
           15            2.13875
                           ...  
27         15            0.46700
           18            1.14275
           21            0.91300
           24            1.07525
           27            1.50150
Name: Return [%], Length: 81, dtype: float64

So I see the two parameters and corresponding return of that combination, but say I also want to see winrate and average trade % of every combination? How can I do that?

Thank's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis is not a (valid) bug report

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions