update backtest anlaysis cheatsheet
This commit is contained in:
parent
506aa0e3d3
commit
ad98c62329
@ -83,7 +83,7 @@ with filename.open() as file:
|
||||
data = json.load(file)
|
||||
|
||||
columns = ["pair", "profit", "opents", "closets", "index", "duration",
|
||||
"open_rate", "close_rate", "open_at_end"]
|
||||
"open_rate", "close_rate", "open_at_end", "sell_reason"]
|
||||
df = pd.DataFrame(data, columns=columns)
|
||||
|
||||
df['opents'] = pd.to_datetime(df['opents'],
|
||||
@ -98,6 +98,8 @@ df['closets'] = pd.to_datetime(df['closets'],
|
||||
)
|
||||
```
|
||||
|
||||
If you have some ideas for interresting / helpfull backtest data analysis, feel free to submit a PR so the community can benefit from it.
|
||||
|
||||
#### Exporting trades to file specifying a custom filename
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user