Excel and RTD function
How to export Real-Time data to Excel
Last updated
How to export Real-Time data to Excel
Last updated
Starting from version 1.39 Quantower supports Real-Time Data (RTD) for sending data and other market information to Microsoft Excel®. This feature opens up many opportunities for creating custom displays and other ways to manage your workflow better.
RTD is a newer protocol that offers several advantages over DDE, including more flexibility and better performance and reliability.
We prepared the spreadsheet that outlines the basic syntax of RTD formulas with details of more complex formulas. A collection of popular RTD formulas is included, which you can copy and paste into your spreadsheet. Download the sample file.
Here is the General Syntax for getting symbol info via RTD function:
For the function to work properly, Quantower platform and Excel must have the same version — 64-bit or 32-bit
Launch Excel and open the Task Manager to check the version of Excel (32-bit or 64-bit). The platform should have the same version to work with the RTD function correctly.
Go to the General Settings of the platform, then to the Excel RTD section, and tick off "Enable Microsoft Excel RTD"
Also in the settings, there are two important settings:
Custom RTD formula name — depending on the language of your operating system, the name of the RTD function in Excel may be called differently. The original name of the function in the English version of Excel is RTD, but for the Russian version it's called "ДРВ".
Custom argument separator — the separator that participates in the formula. It depends on the localization of your operating system. Get to know how to check argument separator in your system.
For the RTD function to work correctly, you need to download and extract the 'tradingplatform.rtdserver.zip' archive as an administrator. You can find the file at https://updates.quantower.com/misc/RTD/tradingplatform.rtdserver.zip.
Important! The archive must be extracted to any convenient location on your PC and should not be deleted. All current and future updates of Quantower will use these files.
After unpacking the archive, run 'register.cmd' as an administrator. It's important to ensure that Excel is closed during this process!
Once you've completed the previous steps, you can launch Excel and begin using the RTD function with Quantower.
The easiest way to get data to Excel is to copy the necessary data through the panel context menu. For example, after activating RTD, an additional item in the context menu will appear in the Watchlist panel — Copy RTD Formula.
Select a necessary symbol or multiple symbols, right-click and select Copy RTD Formula. You can copy formulas for specific columns or for all columns.
Go to Excel and paste the copied formulas. Now the data will be updated automatically.
You may notice that the data is updated with some delay. This is a throttling interval that is set by default in Excel (2000 milliseconds). If you want to increase the speed of updating data, read the instructions on how to do it.
When retrieving instrument data using RTD, you need to specify the ID of the instrument and the properties you want to retrieve.
RTD formula uses the following basic structure:
The second parameter is the name of the external server running the RTD Server. As the Quantower RTD Server always runs locally, you must omit a value for the second parameter or supply an empty string (“”). However, you must account for the parameter in the formula.
Examples of the most popular RTD formulas are described below with description of the basic syntax by the example of Binance exchange. Using them, you can get exactly the data you need for analysis and paste into your spreadsheet. You can also download these examples from this Excel file.
Provides access to specific symbol information such as Description, ExchangeName, NettingType and others. You can simply copy/paste this formula for use in Excel files or get it directly from the Symbol Information panel for the selected symbol. Right-click on the panel and select the menu option: "Copy RTD Formula" -> "Value".
Provides access to specific account information such as name, balance, NettingType, and others. You can simply copy/paste this formula for use in Excel files or get it directly from the Account Information panel for the selected account. Right-click on the pane and select the menu option: "Copy RTD Formula" -> "Value".
Provides access to Tier 2 data for a specific symbol. You can simply copy/paste this formula and use it in your Excel files.
Options
Returns the history for the specified character, aggregation and date range. You can simply copy/paste this formula and use it in your Excel files.
Options
For Windows 10:
go to Start >type Control Panel and press enter > Region
click Additional Settings
for List Separator check the argument. It must be the same as in RTD settings.
Options
Description
"TradingPlatform"
Quantower RTD server name. You can use it in all formulas.
"GetSymbolInfo"
Name of method
"BTCUSDT"
The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.
"SymbolType"
Specifies the type of data you want to receive. For example: Name, Description.
"Binance USDT-M Futures"
The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection.
Options
Description
"TradingPlatform"
Quantower RTD server name. You can use it in all formulas.
"GetMarketData"
Name of method
"BTCUSDT"
The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.
"Bid"
Specifies the type of data you want to receive. For example: Bid, Ask, Last, Open, High
"Binance USDT-M Futures"
The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection.
Options
Description
"TradingPlatform"
Quantower RTD server name. You can use it in all formulas.
"GetLevel2Data"
Name of method
"BTCUSDT"
The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.
"BidSize"
Указанный тип данных, которые вы хотите получать. Например: Bid, Ask, BidSize, AskSize.
"0"
The sequence number of the level in the Depth of Market. Starts with 0.
"Binance USDT-M Futures"
The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection.
Options
Описание
"TradingPlatform"
Quantower RTD server name. You can use it in all formulas.
"GetHistory"
Name of method
"BTCUSDT"
The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.
"1Day"
Aggregation type: 1 day, 3 days, 5 minutes, etc. Available aggregates:Tick, Second, Minute, Hour, Day, Week, Month, Year.
"Close"
Specifies the type of data you want to receive. For example: Open, High, Low, Close, Volume, Bid, Ask.
"10Day"
Required history range: 10 days, 300 minutes, etc. Available ranges: Minute, Hour, Day, Month, Year.
"0"
The index of the bar / tick in the returned history array. 0 means the newest bar.
"Last"
Bid, Ask, Last history type. Leave the field empty to get the default history for the specified character.
"Binance USDT-M Futures"
The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection.