Are there functions similar as MarketInfo?

Created at 21 Feb 2016, 05:24
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AL

alibaba

Joined 21.02.2016

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...?

 


@alibaba
Replies

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

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