I'm trying to graph leverage and it doesn't seem to work as intended. (I tried Portfolio.TotalHoldingsValue / Portfolio.TotalPortfolioValue and some other things too.) What would the proper expression be?

I couldn't find an answer in the docs or forums, except for this which was worse than mine.

Best,
Haumed

 

P.S. My limit orders also get rounded to the nearest bitcoin, which makes sense for equity but not for crypto.