This is hopefully a simpler way to optimize a long only portfolio weighting on Interactive Brokers with a mix of ETF and currencies.
This works off here listed below
You can learn more how I approach this for Interactive Brokers https://quantlabs.net/blog/contact-us/
https://quant-labs.net/2022/01/22/simple-demo-to-optimize-our-portfolio-weightings/