Maybe I have tomatoes on my eyes,
I can't find a command for code
- account balance
- account equity.
I need it to calculate Risk in my code.
Thank you!
Code question: Account Balance
- Anastassia
- Posts: 179
- Joined: 18 Jan 2010
- Been thanked: 4 times
Hi Henrik
The keyword for account balance is InitialCapital and for account equity is initialcapital + openpositionprofit + netprofit.
Here is the code example for last:
Thank you
The keyword for account balance is InitialCapital and for account equity is initialcapital + openpositionprofit + netprofit.
Here is the code example for last:
Code: Select all
var: _equity(0);
_equity = initialcapital + openpositionprofit + netprofit;
if (_equity < 100000) then buy next bar market;
- Anastassia
- Posts: 179
- Joined: 18 Jan 2010
- Been thanked: 4 times
account balance??
I feel like an idiot, what am I missing?
# The code need to check on my account balance.
# When I start up MC auto-trade the trading yesterday is gone.
How is it possible to check account balance?
Do you have to go in and change the Initial Capital manually every day?
# The code need to check on my account balance.
# When I start up MC auto-trade the trading yesterday is gone.
How is it possible to check account balance?
Do you have to go in and change the Initial Capital manually every day?
- Anastassia
- Posts: 179
- Joined: 18 Jan 2010
- Been thanked: 4 times
Re: Code question: Account Balance
I too greatly need to access account equity in order for my strategy to auto trade. What kind of timeframe are we looking at for the release of MultiCharts 7.0?
Thanks
Adam
Thanks
Adam
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: Code question: Account Balance
Dear Adam333,
MC 7.0 will be released most likely in the middle of November.
MC 7.0 will be released most likely in the middle of November.