Best way to retreive account balance

Questions about MultiCharts .NET and user contributed studies.
Bentley Wilburforce
Posts: 18
Joined: 22 Feb 2014
Has thanked: 5 times
Been thanked: 2 times

Best way to retreive account balance

Postby Bentley Wilburforce » 25 Mar 2014

Hi,
I want to be calculate position size based on the current account equity for each new trade. What is the best way to retrieve the current equity in Multicharts.net?

Thanks

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Best way to retreive account balance

Postby Henry MultiСharts » 26 Mar 2014

Hello Bentley,

You can access the actual equity in backtesting at any given time this way: IStrategy.InitialCapital Property + ClosedEquity + OpenEquity.
In realtime you can access the Account.Equity Property

Sutho
Posts: 1
Joined: 23 May 2014

Re: Best way to retreive account balance

Postby Sutho » 23 May 2014

Hello Bentley,

You can access the actual equity in backtesting at any given time this way: IStrategy.InitialCapital Property + ClosedEquity + OpenEquity.
In realtime you can access the Account.Equity Property
Hello

I'm fairly new at programming and automated trading, so I have trouble getting started without examples. Would you help me please by showing the code I'd use in VB to get the account balance for both realtime and backtesting?

Many thanks

Sutho


Return to “MultiCharts .NET”