Error in cost calculation for dynamic optimisation #647
Replies: 9 comments 4 replies
-
Probably easier to work backwards here
So these costs are in weight units: cost to trade 100% of capital in notional position for a given instrument. For example, if you want to trade 50% of your capital as a notional positoin, and the cost per trade is 0.01, then it will cost you 0.5% of your capital as a cost. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
What about production? Really shouldn't be duplicate code
|
Beta Was this translation helpful? Give feedback.
-
While the sim is running, notice that the effect of this will be to understate most costs, except for the rare case when the notional value per contract>capital. The smaller the notional value per capital, the bigger the understatement. We're likely to trade more slowly with this change - the only issue is whether we are trading too slowly. |
Beta Was this translation helpful? Give feedback.
-
original benchmark
|
Beta Was this translation helpful? Give feedback.
-
With changes
As expected, but it looks like we are probably now trading too slowly. |
Beta Was this translation helpful? Give feedback.
-
As expected, we are probably trading too little (costs have dropped by a half, turnover ditto). The buffer already feels reasonably tight, so let's play with the shadow cost system.config.small_system['shadow_cost'] = 50
That seems fine let's not get too excited about over optimisation. I've checked this in but need to test the production code (which is a bit messy anyway) |
Beta Was this translation helpful? Give feedback.
-
Production test has worked, so treating this as fixed now. Code does need tidying up though! |
Beta Was this translation helpful? Give feedback.
-
Yes still using it. |
Beta Was this translation helpful? Give feedback.
-
Should divide by weight per contract?
Beta Was this translation helpful? Give feedback.
All reactions