pmms keyword for portfolio cash balance

Questions about MultiCharts and user contributed studies.
BossHog
Posts: 19
Joined: Apr 09 2024
Has thanked: 1 time
Been thanked: 1 time

Jun 18 2024

What is the pmms keyword for portfolio cash balance?

thank you,
David

User avatar
Polly MultiCharts
Posts: 264
Joined: Jul 20 2022
Has thanked: 1 time
Been thanked: 67 times

Jun 26 2024

Hello

You can use this code sample to check the available balance for trading:

Code: Select all

InitialCapital + Portfolio_NetProfit - Portfolio_InvestedCapital
Or you can use this pre-built function:
Portfolio_Equity

Code: Select all

Portfolio_Equity = InitialCapital + Portfolio_NetProfit + Portfolio_OpenPositionProfit;
For more info about Portfolio keywords please see this page.