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
Now that you know a little about me, let me tell you about the issue I am
having:
Description of Issue
I'm using zipline-reloaded to backtest a futures time return trend trading strategy similar to the one in the book Trading Evolved by Andreas Clenow. The main difference is that I'm only using the S&P 500 futures ('ES').
The details and source code can be found from https://www.followingthetrend.com/trading-evolved/.
In the code, commissions are set within initialize() using the code below:
comm_model = PerContract(cost=0.85, exchange_fee=1.5)
set_commission(us_futures=comm_model)
What did you expect to happen? I expected that the backtest would take into account the commissions for each contract traded and this would be shown in the "transactions" field in the "perf" output when contracts are traded.
What happened instead? The commission in transactions is always None.
Here is how you can reproduce this issue on your machine:
Reproduction Steps
Ingest some futures data (I'm using Norgate)
Modify the source code for time return trend strategy and change markets to ['ES'] only
Run the backtest for the past 1 year
Inspect the output "perf", specifically the commissions in the transactions column
What steps have you taken to resolve this already?
I tried looking into the documentation for commissions, but I couldn't resolve the issue.
Sincerely,
ktan636
The text was updated successfully, but these errors were encountered:
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
Now that you know a little about me, let me tell you about the issue I am
having:
Description of Issue
I'm using zipline-reloaded to backtest a futures time return trend trading strategy similar to the one in the book Trading Evolved by Andreas Clenow. The main difference is that I'm only using the S&P 500 futures ('ES').
The details and source code can be found from https://www.followingthetrend.com/trading-evolved/.
In the code, commissions are set within initialize() using the code below:
comm_model = PerContract(cost=0.85, exchange_fee=1.5)
set_commission(us_futures=comm_model)
What did you expect to happen? I expected that the backtest would take into account the commissions for each contract traded and this would be shown in the "transactions" field in the "perf" output when contracts are traded.
What happened instead? The commission in transactions is always None.
Here is how you can reproduce this issue on your machine:
Reproduction Steps
What steps have you taken to resolve this already?
I tried looking into the documentation for commissions, but I couldn't resolve the issue.
Sincerely,
ktan636
The text was updated successfully, but these errors were encountered: