Good Evening y'all, 

I was working on this mean reversion strategy and just on some quick tests I noticed that despite USDCAD and USDJPY being set to the same number in setHoldings, the numbers weren't representative of the actualy units the leverage gets you. Allocating 10% of the portfolio to each should have USDCAD with roughly twice as many units as USDJPY, at least through my broker (Oanda). Is there a way to call max units available for purchase from the broker to use for quantity?

Author