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: Jan 18 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: Jan 18 2010
- Been thanked: 4 times
You are welcome Henrik
Have a nice weekend!
Have a nice weekend!
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: Jan 18 2010
- Been thanked: 4 times
Hi all,
I am sorry i think i misunderstood the question. If you want to get the current account balance and account equity on Broker using keywords then it is not possible. We will implement this option in MultiCharts 7.0.
Thank you
I am sorry i think i misunderstood the question. If you want to get the current account balance and account equity on Broker using keywords then it is not possible. We will implement this option in MultiCharts 7.0.
Thank you
- Dave Masalov
- Posts: 1712
- Joined: Apr 16 2010
- Has thanked: 51 times
- Been thanked: 490 times
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.