Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction Analysis #143

Open
kuatroka opened this issue Dec 9, 2022 · 3 comments
Open

Transaction Analysis #143

kuatroka opened this issue Dec 9, 2022 · 3 comments

Comments

@kuatroka
Copy link

kuatroka commented Dec 9, 2022

Hi, before asking this question, I did try to look for the tool I need in the list, but I couldn't find it.

I'm looking for transaction performance analysis tool in Python. Something where I could input a spreadsheet, CSV file, or dataframe with the real open/buy/sell/add/reduce/exit transactions and have the tool spit out the performance metrics on those transactions. Like what was the best transaction in terms of P/L what was the worst one, how many transactions were there? What was the longest? What was the shortest one, etc.
What I do find multiple tools that create a portfolio metrics on a forecasted/ephemeral by and hold strategy, but not based on real transaction history. Any help in identifying such a tool would be very much appreciated. Thanks

@femtotrader
Copy link
Contributor

Did you have a look at https://github.com/cuemacro/tcapy it's an Open source TCA (transaction cost analysis) Python library for FX spot

@kuatroka
Copy link
Author

Just eyeballing it, it looks more like a transaction cost (brokerage, slippage, etc) analysis and not the P/L analysis. I need the latter. In any case, I'll check it too. Thanks

@ikamanu
Copy link

ikamanu commented Dec 12, 2022

Sharing a thought:

I needed something similar. My need was to generate comprehensive reports for my transaction log after a backtest. I wanted to plot things like trade duration, P/L distribution by day of week (and hour of day), etc.

I couldn't find a tool so i asked ChatGPT to generate python code for me that did what I needed. I described my needs in a few paragraphs, and it worked like a charm. I highly recommend trying it.

Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants