{'fraction_non_alphanumeric': 0.015116279069767442, 'fraction_numerical': 0.0, 'mean_word_length': 5.239130434782608, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Optimal trading of a basket of futures contracts

We study the problem of dynamically trading multiple futures contracts with different underlying assets. To capture the joint dynamics of stochastic bases for all traded futures, we propose a new model involving a multi-dimensional scaled Brownian bridge that is stopped before price convergence. This leads to the analysis of the corresponding Hamilton–Jacobi–Bellman equations, whose solutions are derived in semi-explicit form. The resulting optimal trading strategy is a long-short policy that accounts for whether the futures are in contango or backwardation. Our model also allows us to quantify and compare the values of trading in the futures markets when the underlying assets are traded or not. Numerical examples are provided to illustrate the optimal strategies and the effects of model parameters.