PLEASE NOTE! The platform features an ability to connect multiple Quik accounts (both demo and real accounts) at the same time! Instructions to connect a second account are provided in the Configuration of the Second Quik Connection to ATAS section.
Creation of a Quik connection to ATAS
IMPORTANT: This connection is supported by QUIK terminal version 6.15 or later.
To configure the connection, please follow the steps listed below:
I. Launch the QUIK trading terminal.
II. Open the following tables if they are not yet opened. Columns and their order in tables can be arbitrary.
Quotes (in older versions, this is known as the Current Parameter Table):
Time and Sales (in older versions, this is known as the All Trades
table):
IMPORTANT: Add the instruments you need into the Time and Sales (All Trades) table and make sure that trades are broadcastotherwise, online data will not be fed to the ATAS. If trades are not broadcast, please contact your broker and ask it to enable these data.
III. In the Services menu select Lua scripts (in older versions, go toTables –– Lua and select Available scripts)
●Then click the Add button in the window that opens:
- Open the ATAS platform installation folder.
- Locate the ATAS.lua file in the folder and double-click on it with the left mouse button to display this file in the Available scripts window.
* the default file path is C:\Program Files (x86)\Advanced Time And Sales\ATAS.Lua
- Next, select the file and click the Run button.
* Wait until the script is fully launched. This step needs to be done only oncewhen you run Quik in the future, the script will run automatically.
- This concludes the configuration of the Quik terminal.
IV. To configure Quik connection to the ATAS platform, please choose one of the following options:
1. In the main program window, select the Settings menu itemthen select Connection to DataFeed.
2. Click on the connections indicator in the main platform window.
This will open the connections window:
V. To add a new connection, click Add in the window that opens.
This will open a window with a list of available accounts and quotes sources:
Select the QUIK connection from the list and click the Next button.
This will open the agreement conclusion window:
OCO (one cancels other) orders for the Quik connection are locally emulated on your computer. This means that the platform must be connected to your broker for OCO orders to function properly. If you are disconnected and an OCO order is filled, the other orders of the same group WILL NOT BE CANCELED!
If you agree, click “I Accept, Please continue”.
VI. This will open the Quik connection windowfill out all the fields and click Next.
- In the connection window, enter your Quik Login and Password.
- In the Path field, specify the path to start the Quik program.
* The path to the demo version of Quik by default is c:\Program Files\QUIK-Junior\info.exe
- Processing of external transactions in Quik must be enabled (go to Trades ->External transactions). In the window that opens, click the “Start processing” button and check “Run external transaction processing automatically” box)
- Host: this field specifies the connection server address (IP and Port of the PC) where Quik is installed and runs. To connect to Quik (for a locally installed single account), do not change this parameter.
* Logging level - logging level selected by the user ! The choice of the level depends on the degree of technical detail of the information to the merchant server is displayed in the logs. 4 logging levels are available
- Debug
- Info
- Warning
- Error
If the login and the password parameters are set and a connection occurs with disabled Quik, ATAS will automatically launch Quik and perform authorization in it. These fields can be left blank if this is not necessary.
IMPORTANT: Removing and modification of applications in the ATAS platform is available only for those applications that were opened directly through the ATAS. Removal and modification of applications open through QUIK or other software is not supported.
Configuration of the Second Quik Connection to ATAS
To create a second connection for Quik to ATAS, use another Quik session (download and install the new Quik to another folder if two Quik applications are to work on the same computer)
Next, perform the following steps:
1) Copy ATAS.lua to the ATAS installation folder and save it under a different name (for example: ATAS1.lua) (both files must be located in the same ATAS folder).
* the default file path is C:\Program Files (x86)\Advanced Time And Sales\ATAS.Lua
2) Open the second copied file (ATAS1.lua, in our example) in a Notepad.
3) Locate the port and log_name settings and change them as needed (in our example: port = 30998, log_name =Lua1 )then, save the file.
4) Add a new Quik connection to ATAS as described above.
5) In the Host field of the Quik connection window on the ATAS platform, change the port to the value indicated for the port parameter (in our example, port = 30998) in the duplicate file (in our example: ATAS1.lua).
.
6) In the Path field, specify the path to the start of the second Quik program (navigate to the second Quik installation folder).
7) In the second Quik, add the duplicate Lua script file (in our example: ATAS1.lua) as described at the beginning of the instruction, and run it.
8) Connect to the created connection in ATASby clicking the Connect button.
* After the configuration is complete, the connection will appear in the list of connections as a separate row:
1. Type - this option indicates the connection source.
2. State. After a new connection has been added, its default state will be Disconnected. To connect, click Connect.
3. Quotes Source - this option allows selecting a quotes source.
IMPORTANT! Only one quotes source must be connected for Russian and US markets!
4. If you need the connection to be run automatically when the platform is launched, activate the “Connect on startup” option.
5. Connection configuration button.
6. Connection removal button.
7. Connection activation button.
8. New connection adding button.
9. Configuration saving button.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article