﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">connect_quik. StockSharp</title>
  <id>https://stocksharp.ru/handlers/atom.ashx?category=tag&amp;id=connect_quik&amp;type=forum</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-14T20:16:20Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=tag&amp;id=connect_quik&amp;type=forum" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/topic/8668/</id>
    <title type="text">Как определить, что Connector получил все инструменты из Quik</title>
    <published>2017-09-28T11:23:24Z</published>
    <updated>2017-09-28T12:21:23Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <category term="Quik" />
    <category term="connect_quik" />
    <content type="html">&lt;p&gt;Здравствуйте.&lt;/p&gt;
&lt;div class="spoiler"&gt;&lt;p&gt;QuikTrader trader = new QuikTrader
{
LuaFixServerAddress = &amp;quot;127.0.0.1:5001&amp;quot;.To&lt;EndPoint&gt;(),
LuaLogin = &amp;quot;quik&amp;quot;,
LuaPassword = &amp;quot;quik&amp;quot;.To&lt;SecureString&gt;()
};
trader.NewSecurity += security =&amp;gt; Filter(security);
trader.Connect();&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Как определить, что security является последним инструментом, который я получу?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <id>https://stocksharp.ru/topic/8432/</id>
    <title type="text">Проблема при подключении к Quik (Lua)</title>
    <published>2017-07-21T15:03:09Z</published>
    <updated>2017-07-26T14:56:36Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <category term="connect_quik" />
    <category term="QuikLua" />
    <content type="html">&lt;p&gt;Здравствуйте.&lt;/p&gt;
&lt;p&gt;var trader = new QuikTrader
{
LuaFixServerAddress=&amp;quot;127.0.0.1&amp;quot;.To&lt;EndPoint&gt;(),
LuaLogin=&amp;quot;quik&amp;quot;,
LuaPassport=&amp;quot;quik&amp;quot;.To&lt;SecureString&gt;()
}&lt;/p&gt;
&lt;p&gt;trader.Connect();&lt;/p&gt;
&lt;p&gt;После подключения появляется исключение
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---&amp;gt; ...&lt;/p&gt;
&lt;p&gt;Переустановил References в решении - появилось новое исключение
No connection could be made because the target machine refused it 127.0.0.1:5001.&lt;/p&gt;
&lt;p&gt;Отключал firewall, антивирус. Менял порт - ничего не помогает.&lt;/p&gt;
&lt;p&gt;После смены порта (на 127.0.0.1:5005) - System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Возвращаю порт (на 127.0.0.1:5001) - No connection could be made because the target machine refused it 127.0.0.1:5001.&lt;/p&gt;
&lt;p&gt;Перезапустил Quik  - порт (на 127.0.0.1:5001) - System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.&lt;/p&gt;
&lt;p&gt;2017/07/21 17:25:48.963|       |LuaServer |OnInit
2017/07/21 17:25:48.988|       |FixServer |Server 0.0.0.0:5001 started.
2017/07/21 17:25:48.989|       |FixServer |FixServer started.
2017/07/21 17:25:48.993|       |FixServer |FixServer outgoing thread started.
2017/07/21 17:25:48.994|       |LuaServer |OnInit done
2017/07/21 17:25:49.002|       |LuaServer |Main
2017/07/21 17:26:15.233|       |FixServer |Connected '127.0.0.1:56736' to '0.0.0.0:5001'.
2017/07/21 17:26:15.902|       |FixServer |Received first byte from '127.0.0.1:56736'.
2017/07/21 17:26:15.934|       |FixServer |From : Logon
2017/07/21 17:26:15.943|       |FixServer |Connected '127.0.0.1:56737' to '0.0.0.0:5001'.
2017/07/21 17:26:15.944|       |FixServer |Received first byte from '127.0.0.1:56737'.
2017/07/21 17:26:15.944|       |FixServer |From : Logon&lt;/p&gt;
&lt;p&gt;Пример из github по пути StockSharp-master\Samples\Quik\SampleQuik - выдаёт аналогичное исключение (System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.). Запуск Quik и VS производился с правами администратора.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="stocksharp-quik-lua-fix-server-c-2017-httpstocksharp.com"&gt;--  StockSharp QUIK Lua Fix Server (c) 2017 &lt;a href="http://stocksharp.com"&gt;http://stocksharp.com&lt;/a&gt;      --&lt;/h2&gt;
&lt;p&gt;-- Для изменения настроек раскоментируйте строку параметра.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="section"&gt;--  Настройки логирования&lt;/h2&gt;
&lt;p&gt;-- Уровень логирования.
-- 1 - Debug
-- 2 - Info
-- 3 - Warning
-- 4 - Error
LogLevel=2&lt;/p&gt;
&lt;h2 id="logfilestocksharp.quiklua.log"&gt;-- Название текстового файла, в который будут сохраняться лог-сообщения.
LogFile=&amp;quot;StockSharp.QuikLua.log&amp;quot;&lt;/h2&gt;
&lt;hr /&gt;
&lt;h2 id="quik-lua-fix"&gt;--  Настройки QUIK Lua Fix сервера&lt;/h2&gt;
&lt;p&gt;-- Адрес, на котором FIX сервер будет обрабатывать транзакции.
TransactionAddress=&amp;quot;127.0.0.1:5001&amp;quot;&lt;/p&gt;
&lt;p&gt;-- Адрес, на котором FIX сервер будет рассылать маркет-данные.
MarketDataAddress=&amp;quot;127.0.0.1:5001&amp;quot;&lt;/p&gt;
&lt;p&gt;-- Логин, с которым разрешено подключение к FIX серверу.
-- Если логин не указан, разрешаются подключения с любым
-- пользователем и паролем (включая нескольких пользователей).
ServerLogin=&amp;quot;quik&amp;quot;&lt;/p&gt;
&lt;p&gt;-- Пароль, с которым разрешено подключение к FIX серверу.
ServerPassword=&amp;quot;quik&amp;quot;&lt;/p&gt;
&lt;p&gt;-- &lt;a href="https://forum.quik.ru/forum10/topic1218/" rel="nofollow" target="_blank"&gt;https://forum.quik.ru/forum10/topic1218/&lt;/a&gt;
-- SingleSlash=false&lt;/p&gt;
&lt;p&gt;-- Конвертировать кириллицу в латиницу.
-- ConvertToLatin=true&lt;/p&gt;
&lt;h2 id="ignoretransactionduplicatestrue"&gt;-- Игнорировать дубликаты по транзакциям.
-- IgnoreTransactionDuplicates=true&lt;/h2&gt;
&lt;hr /&gt;
&lt;h2 id="section-1"&gt;--  Настройки маркет-данных&lt;/h2&gt;
&lt;h2 id="incrementaldepthupdatesfalse"&gt;-- Отправлять изменения по стакану. Если выключено, отправляется
-- стакан целиком.
-- По умолчанию, включено.
-- IncrementalDepthUpdates=false&lt;/h2&gt;
&lt;hr /&gt;
&lt;h2 id="lua"&gt;--  Общие настройки Lua (не изменять)&lt;/h2&gt;
&lt;p&gt;package.path = &amp;quot;&amp;quot;
package.cpath = getScriptPath() .. &amp;quot;\StockSharp.QuikLua.dll&amp;quot;&lt;/p&gt;
&lt;h2 id="requirestocksharp"&gt;require(&amp;quot;StockSharp&amp;quot;)&lt;/h2&gt;
&lt;p&gt;VS 2017 Community Edition
Windows 10
Quik 7.12.1.10
StockSharp 4.3.25&lt;/p&gt;
</content>
  </entry>
  <entry>
    <id>https://stocksharp.ru/topic/6968/</id>
    <title type="text">Ошибка при коннекте quik</title>
    <published>2016-11-14T18:23:33Z</published>
    <updated>2016-11-15T17:22:11Z</updated>
    <author>
      <name>ypanfilov</name>
      <uri>https://stocksharp.ru/users/96282/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <category term="connect_quik" />
    <content type="html">&lt;p&gt;Приветствую,&lt;/p&gt;
&lt;p&gt;при попытке установить соединение через lua-скрипт с квиком посредством утилиты Verifier возникает ошибка как на скрине 3. Скрипт в квике запущен без ошибок(скрин 2). В параметрах скрипта указан корректный адрес сервера на котором торгую - скрин 4.
Если закомментить в скрипте MarketDataAddress или TransactionAddress, то возникает ошибка как на скрине 1(т.е. параметры скрипта учитываются и передаются для обработки).
Также в квик были экспортированы настройки таблиц из файла info.wnd.
При настройке квика руководствовался мануалом по ссылке &lt;a href="http://stocksharp.ru/forum/4608/nastroika-konnektora-quiklua/"&gt;http://stocksharp.ru/forum/4608/nastroika-konnektora-quiklua/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Подскажите пожалуйста, как можно разрешить эту ситуацию?&lt;/p&gt;
&lt;p&gt;версия s#  4.3.18
винда 7
студия 2015
пробовал на двух брокерах: открытие и втб24, ситуация аналогичная.&lt;/p&gt;
</content>
  </entry>
</feed>