How to calculate physical cash in my portfolio

i would like amibroker , when backtesting, to calculate the amount of physical cash available by substracting the total value of stocks in my portfolio from the portfolio equity. today i get "cash" as equivalent to "total equity". and since i am a newbie in a sense, would you please write a smple formula for that? thanks

Plot( Foreign( "~~~EQUITY", "L"), "Cash", colorGold );

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.