Notional Volume (Clip Size) in addition to just "size" #735
sergejlazuk
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
comming from commodities side, it seems the whole notion of "Notional Volume" is not being paid attention to?
For example, if I buy 1MW of monthly Gas TTF.Dec24 contract, I actually get 24x31MWh volume (it delivers 1MW per hour during month of Dec24). And PnL need to be calculated accordingly - 1Eur change in contract price will lead to 24x31=744 Eur PnL on the long position in 1 contract.
One idea how to cater for this:
If user supplies "clip_size" instead of "size" (e.g. in from_signals), and provides a mapping config specifying the standard units and volume for all contracts in "close" dataframe, then those volumes should be applied when placing orders.
Ideally, orders and trades records then need to be extended to contain both "volume" and "size" values, so for example once 1 clip of TTF.Dec24 contract is traded, one gets position of size 1MW and volume of 744MWh.
Would be a great extention, openning the door to vectorbt for commodity traders out there?
Regards
Beta Was this translation helpful? Give feedback.
All reactions