Is there any way to reference the portfolio equity
Foreign("~~~EQUITY", "C") in the buy formula itself? I guess that the portfolio equity is available after running the backtest so it cannot be referenced in the buy formula itself. I've checked the AddToComposite stuff but it is not clear how it can be done. Is there a simple solution for this? Thank you.
