You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The profit and drawdown can be more accurate because the fees for each trade (open and close) are not taken into account.
Describe the solution you'd like
The possibility to add a custom value in the parameters for the broker fees depending on the type of entry (for example if the entries are in market and the exits in limit have the possibility to have different fees).
It would also be great to have the total number of fees paid in the backtest result like the example below.
PS : love your work!
The text was updated successfully, but these errors were encountered:
Very good suggestions! The commissions scheme is something I've been wanting to improve for a little while now, and what you have suggested is a great start. Commissions are currently calculated on both the open and closing trades of a position, but they do not take into account the trade type. The fees are also not applied until the trade is closed.
I will aim to implement your suggestions in a future release. For the meantime, I have added the total fees to the printout (you will need to update to v0.5.22):
The fee on each trade can also be viewed via the trade summary:
Version 0.7 now allows specifying maker_commission and taker_commission arguments in the AutoTrader.virtual_account_config method. Additionally, trading costs will be calculated differently for market vs. limit orders.
Make sure to read the docs and changelog if upgrading, there have been a lot of changes!
Is your feature request related to a problem? Please describe.
The profit and drawdown can be more accurate because the fees for each trade (open and close) are not taken into account.
Describe the solution you'd like
The possibility to add a custom value in the parameters for the broker fees depending on the type of entry (for example if the entries are in market and the exits in limit have the possibility to have different fees).
It would also be great to have the total number of fees paid in the backtest result like the example below.
PS : love your work!
The text was updated successfully, but these errors were encountered: