Is there a keyword or function that returns the current total account equity?
And the Current account equity available?
Getting Total Account Equity to Calculate Position Size
-
- Posts: 261
- Joined: 28 Feb 2008
- Has thanked: 2 times
- Been thanked: 1 time
- Bruce DeVault
- Posts: 438
- Joined: 19 Jan 2010
- Location: Washington DC
- Been thanked: 2 times
- Contact:
-
- Posts: 261
- Joined: 28 Feb 2008
- Has thanked: 2 times
- Been thanked: 1 time
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times
- Bruce DeVault
- Posts: 438
- Joined: 19 Jan 2010
- Location: Washington DC
- Been thanked: 2 times
- Contact:
This is something that's true of both TS and MultiCharts - an issue in EasyLanguage going back to the 1990s. There's no keyword for the initial equity, or for the current equity. Typically users end up making an input for the initial equity, then add the net as describe above to this to get the current.
I think it's a very reasonable suggestion that MultiCharts should add a keyword for the initial equity, as well as possible the current open equity and current closed equity.
I think it's a very reasonable suggestion that MultiCharts should add a keyword for the initial equity, as well as possible the current open equity and current closed equity.
-
- Posts: 261
- Joined: 28 Feb 2008
- Has thanked: 2 times
- Been thanked: 1 time
- Bruce DeVault
- Posts: 438
- Joined: 19 Jan 2010
- Location: Washington DC
- Been thanked: 2 times
- Contact:
Re: Getting Total Account Equity to Calculate Position Size
It would also be nice to export the realtime equity of each strategy to an spreadsheet or at least having the total equity (all charts together)
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: Getting Total Account Equity to Calculate Position Size
Dear Sirs,
Please take a look at i_OpenEquity, i_ClosedEquity, initialcapital and openpositionprofit keywords.
Please take a look at i_OpenEquity, i_ClosedEquity, initialcapital and openpositionprofit keywords.
Re: Getting Total Account Equity to Calculate Position Size
Openequity just gives the equity of one strategy in one chart.
You can export every openequity to a different file but I couldn't find any way to show all the openequities together (one for each strategy) or to export them all to the same excel sheet.
You can export every openequity to a different file but I couldn't find any way to show all the openequities together (one for each strategy) or to export them all to the same excel sheet.
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: Getting Total Account Equity to Calculate Position Size
Dear skan,Openequity just gives the equity of one strategy in one chart.
You can export every openequity to a different file but I couldn't find any way to show all the openequities together (one for each strategy) or to export them all to the same excel sheet.
You can export these values in Excel using the external dll function. Or you can write them to a text document with delimeters and then export it to Excel. Thus, you won't even need any external dll.
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: Getting Total Account Equity to Calculate Position Size
Dear skan,
Then, you need to write a dll function to export values to Excel in real-time. You can find more information on this subject in Easy Language SDK on the Support --> Help and Tutorials --> Documentation page of the site.
Then, you need to write a dll function to export values to Excel in real-time. You can find more information on this subject in Easy Language SDK on the Support --> Help and Tutorials --> Documentation page of the site.
-
- Posts: 47
- Joined: 03 Jan 2023
- Been thanked: 3 times
Re: Getting Total Account Equity to Calculate Position Size
or you could just create the keyword MC . Also looking for keyword which tells you the current live equity of the total account ( not including active non closed trades) really shocked this isnt available as standard
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: Getting Total Account Equity to Calculate Position Size
Hi ScottishSpeculator,
You can use GetRTAccountEquity and GetRTUnrealizedPL.
You can use GetRTAccountEquity and GetRTUnrealizedPL.