This is an article that shows how to use risk metrics like Value at Risk and Expected Shortfall to decide how to allocate the trading capital across various markets:
https://tradingmatex.com/risk-based-allocation/
https://tradingmatex.com/risk-based-allocation/