Rendering CSV with Additional Fields #848
Unanswered
fiftyghosts
asked this question in
Q&A
Replies: 2 comments 2 replies
-
You could try adding extra columns "sl" and "tp" here: backtesting.py/backtesting/_stats.py Lines 58 to 69 in 8c13d00 Please report your findings and whether that should be added. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thank you for your response!
I've moved to another task, but this is in my queue. I'll let you know
what happens.
…On Thu, Dec 29, 2022 at 10:03 AM kernc ***@***.***> wrote:
See #56 <#56>.
—
Reply to this email directly, view it on GitHub
<#848 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A46SYG4ACCKUXU5UERAL7XTWPWY5JANCNFSM6AAAAAATJYFVRY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add the stop loss price and tp profit price to the CSV rendered during this call:
stats['_trades'].to_csv(csv_filename)
I know they were separate orders, I need those values for a stats db I'm building. I want those values whether they were hit, or not.
I'm currently trying to alter the
_close_trade()
method inbacktesting.py
file where theself.closed_trades.append()
is called. I've been able to get the fields to render in the CSV file, but not any values.Any ideas?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions