Skip to Content
ConnectionsMOEXQUIK

Connecting to QUIK

QUIK connects to JetScalp through the QLua API: the JetScalp Lua script runs inside the QUIK trading terminal.

1.Install QUIK

Install the QUIK trading terminal provided by your broker, start it and log in to your trading account.

Make sure that:

  • the terminal is connected to the broker’s server;
  • quotes are displayed;
  • the anonymous trades table is connected;
  • trading symbols are available.

2.Open the anonymous trades table in QUIK

In the QUIK menu, select Create window («Создать окно») → Anonymous trades table («Таблица обезличенных сделок») and configure the table. Make sure anonymous trades start to appear in it.

3.Add the Lua script to QUIK

In the QUIK menu, select Services («Сервисы») → Lua, click Add («Добавить») and open the file:

C:\Program Files\JetScalp\JetScalp.Quik.lua

Select the added script in the table and click Run («Запустить»).

4.Add the connection in JetScalp

Open Settings Settings → Connections, click Add connection below the connection list and click the tile Quik. The connection appears in the list, and its settings appear on the right.

Fill in the connection settings:

FieldValue
NameThe connection name in the list. By default it is the exchange or broker name; you can change it.
QUIK pathThe QUIK folder to connect to: click … to the right of the field and select it. Leave the field empty (the clear button is there too) to connect to any running QUIK.
Receive market dataReceive market data through this connection. On by default; turn it off if quotes come from another connection.

5.Turn on the connection and check

Turn the connection on with the switch on the right of its row in the list. While the Lua script is not running, the connection state is waiting for the QUIK script. The connection is established when the script is running and closes when the script stops; an enabled connection connects again when the script is started.

Check that:

  • QUIK is running and connected to the broker.
  • The JetScalp Lua script is running and is in the Running («Работает») state.
  • QUIK is connected in JetScalp.
  • Quotes are received.
  • The order book and trades are shown.
  • Positions and orders are shown.
  • The balance is shown.
  • Orders are placed and canceled.

If the connection does not work

Port used by another application

The Lua script connects to JetScalp through port 30300 on this computer. If another program uses the port, JetScalp shows “QUIK: port 30300 is used by another application — the QUIK script cannot connect, retrying every 5 s.” and keeps trying until the port is free. Close the program that uses the port.

Last updated on