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
Best way to retreive account balance
-
- Posts: 18
- Joined: 22 Feb 2014
- Has thanked: 5 times
- Been thanked: 2 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Best way to retreive account balance
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
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
Re: Best way to retreive account balance
HelloHello 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
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