Are there functions similar as MarketInfo?
Created at 21 Feb 2016, 05:24
Are there functions similar as MarketInfo?
21 Feb 2016, 05:24
for example
In MT4, I can get market information from MarketInfo, such as ask, bid, thread, digtit length,can I get these data at cAlgo?
MarketInfo(Symbol, MODE_BID);
MarketInfo(Symbol, MODE_ASK);
MarketInfo(Symbol, MODE_DIGITS);
also, AccountBalance, AccountName, AccountNumber, AccountProfit, TimeLocal, TimeCurrent, TerminalCompany, TerminalName...?
Replies
Spotware
24 Feb 2016, 15:38
Dear Trader,
Please have a look at the following code snippet and at the API Reference section of cTDN.
double balance = Account.Balance; string currency = Account.Currency; double equity = Account.Equity; double freemargin = Account.FreeMargin; double margin = Account.Margin; double? marginlevel = Account.MarginLevel; int leverage = Account.Leverage;
@Spotware
kricka
21 Feb 2016, 05:34
alibaba,
some of the information you are after like Account Balance, Account Name, Account Number, Account Profit can be had with the Broker 1.0 cBot.
It's free to download and use. Download link: Broker 1.0
@kricka