# MQL4 SymbolInfoDouble()

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/platforms/metatrader-4/functions/mql4-symbolinfodouble, written from the same records as that page.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Returns one floating point property of a symbol, chosen by an identifier.

- Function: `SymbolInfoDouble()`
- Interface: MQL4
- Group: Prices and bars
- Status: verified. Source: [docs.mql4.com](https://docs.mql4.com/marketinformation/symbolinfodouble), checked 2026-10-12.

This is an MQL4 function, not an HTTP endpoint. It has no method, no path and no address to send a request to: it runs inside the MetaTrader 4 terminal, in a program written in MQL4. It is in no OpenAPI file on this site and the request builder does not list it.

Note: For the latest prices the page recommends SymbolInfoTick() instead: it says that until a first quote has arrived after the terminal connects, a price read this way has no settled value.

## Signature

The 2 forms of the call on the vendor's page, with the vendor's comments taken out.

```mql4
double SymbolInfoDouble(
  string name,
  ENUM_SYMBOL_INFO_DOUBLE prop_id
)
```

```mql4
bool SymbolInfoDouble(
  string name,
  ENUM_SYMBOL_INFO_DOUBLE prop_id,
  double& double_var
)
```

## Arguments

- `name` (type string, required): The symbol's name.
- `prop_id` (type ENUM_SYMBOL_INFO_DOUBLE, required): Which property to return, as a value of the ENUM_SYMBOL_INFO_DOUBLE enumeration.
- `double_var` (type double&, required): Only in the second form: the double variable that receives the value.

## Return value

- Type: `double, or bool in the second form`
- What comes back: The page gives two forms: one returns the value itself, the other returns true or false and writes the value into a variable passed by reference. The page points to GetLastError() for the reason.

## Sample

Written by this site from the signature and arguments recorded on this page. It has not been run against a terminal, a server or an account, and the values in it are placeholders. It holds no credential and needs none: the program runs inside a terminal that is already logged in to an account. Nothing is entered on this site.

```mql4
void OnStart()
  {
   PrintFormat("bid %.5f, ask %.5f",SymbolInfoDouble(Symbol(),SYMBOL_BID),SymbolInfoDouble(Symbol(),SYMBOL_ASK));
  }
```

## Related MQL4 functions: Prices and bars

- [CopyRates()](https://openbrokerapi.com/platforms/metatrader-4/functions/mql4-copyrates): Copies historical bars of a symbol and timeframe into an array of MqlRates structures, by start position and count, by start time and count, or between two times.
- [iClose()](https://openbrokerapi.com/platforms/metatrader-4/functions/mql4-iclose): Returns the close price of one bar of a symbol and timeframe, counted back from the current bar.
- [MarketInfo()](https://openbrokerapi.com/platforms/metatrader-4/functions/mql4-marketinfo): Returns one item of data about a symbol in the Market Watch window, chosen by a request identifier: a price, or a dealing property such as the stop level.
- [RefreshRates()](https://openbrokerapi.com/platforms/metatrader-4/functions/mql4-refreshrates): Refreshes the predefined price variables and series arrays that a running program holds its own copy of.
- [SymbolInfoTick()](https://openbrokerapi.com/platforms/metatrader-4/functions/mql4-symbolinfotick): Writes the current prices of a symbol, with the time they were last updated, into an MqlTick structure.

## More on MetaTrader 4

- [All MetaTrader 4 functions](https://openbrokerapi.com/platforms/metatrader-4/functions): 28 documented here, grouped by what they do.
- [All MetaTrader 4 error codes](https://openbrokerapi.com/errors/mt4)
- [MetaTrader 4 API page](https://openbrokerapi.com/platforms/metatrader-4): The full record: access, authentication, limits and the source for each.

## Licence and how to cite

The records behind this page are all rights reserved. This file is the page itself, at its own address, in another format. It is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data. Quote from it with a link to the page.

Cite as: MQL4 SymbolInfoDouble(). Broker API Hub, https://openbrokerapi.com/platforms/metatrader-4/functions/mql4-symbolinfodouble, newest check 2026-10-12.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
