hft trading. StockSharphttps://stocksharp.com/handlers/atom.ashx?category=tag&id=hft trading&type=communityCopyright @ StockSharp Platform LLC 2010 - 20242024-03-19T03:04:57Zhttps://stocksharp.com/images/logo.pnghttps://stocksharp.com/topic/11141/Large base of knowledge!2019-11-05T21:13:41Z2020-04-29T06:25:58ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comHello Friends!<br />We would like You to know more about trading as <b> as possible</b>. That is why we have started to create <b>a large knowledge base</b>, in which you can find many useful articles that will help to understand the intricacies of trading. <br />We want you to discover <b>new knowledge</b> and find answers to the questions you need. <br />We have already published some articles.The list of topics and the order of articles is as follows:<br /><br /><b>Trading for beginners:</b><br />1. <a href="https://stocksharp.com/articles/11684/Trading-for-beginners-Stock-market/" title="https://stocksharp.com/articles/11684/Trading-for-beginners-Stock-market/">Trading for beginners. Stock market.</a><br />2. <a href="https://stocksharp.com/articles/11748/Trading-for-beginners-Where-to-start/" title="https://stocksharp.com/articles/11748/Trading-for-beginners-Where-to-start/">Trading for beginners. Where to start?</a><br /><br />Basic concepts and principles of trading:<br />1. <a href="https://stocksharp.com/articles/11383/Arbitrage-trading-Principles-types/" title="https://stocksharp.com/articles/11383/Arbitrage-trading-Principles-types/">Arbitrage trading. Principles, types.</a><br />2. <a href="https://stocksharp.com/articles/11401/Hedge-The-essence-and-its-types/" title="https://stocksharp.com/articles/11401/Hedge-The-essence-and-its-types/">Hedge. The essence and its types.</a><br />3. <a href="https://stocksharp.com/articles/11418/What-are-futures-and-options-and-how-to-make-money-on-them/" title="https://stocksharp.com/articles/11418/What-are-futures-and-options-and-how-to-make-money-on-them/">What are futures and options, and how to make money on them?</a><br />4. <a href="https://stocksharp.com/articles/11436/Forward-contract-The-essence-and-its-types/" title="https://stocksharp.com/articles/11436/Forward-contract-The-essence-and-its-types/">Forward contract. The essence and its types.</a><br />5. <a href="https://stocksharp.com/articles/11449/What-is-Stop-Loss-and-Take-Profit/" title="https://stocksharp.com/articles/11449/What-is-Stop-Loss-and-Take-Profit/">What is Stop-Loss and Take Profit?</a><br />6. <a href="https://stocksharp.com/articles/11471/Pyramiding-in-trading/" title="https://stocksharp.com/articles/11471/Pyramiding-in-trading/">Pyramiding intrading.</a><br />7. <a href="https://stocksharp.com/articles/11483/SAPI-and-SShell-is-your-step-in-trading/" title="https://stocksharp.com/articles/11483/SAPI-and-SShell-is-your-step-in-trading/">S#.API and S#.Shell is your step in trading.</a><br />8. <a href="https://stocksharp.com/articles/11542/Market-data-timeframe-tick/" title="https://stocksharp.com/articles/11542/Market-data-timeframe-tick/">Market data, timeframe, tick.</a><br />9. <a href="https://stocksharp.com/articles/11569/SDesigner-is-a-simple-way-to-start-a-successful-trade/" title="https://stocksharp.com/articles/11569/SDesigner-is-a-simple-way-to-start-a-successful-trade/">S#.Designer is simple way to start a successful trade.</a><br />10. <a href="https://stocksharp.com/articles/11594/S-Data-download-market-data-in-two-steps/" title="https://stocksharp.com/articles/11594/S-Data-download-market-data-in-two-steps/">S#. Data-download market data in two steps.</a><br />11. <a href="https://stocksharp.com/articles/11629/Trend-and-countertrend!-Dont-choose-to-use-it-together/" title="https://stocksharp.com/articles/11629/Trend-and-countertrend!-Dont-choose-to-use-it-together/">Trend and countertrend! Don't choose to use it together.</a><br /><br /><b>FAQ on FIX Protocol: </b><br />1. <a href="https://stocksharp.com/forum/11019/FAQ-on-FIX-Protocol-History-of-creation/" title="https://stocksharp.com/forum/11019/FAQ-on-FIX-Protocol-History-of-creation/">History of creation.</a><br />2. <a href="https://stocksharp.com/forum/11042/FAQ-on-FIX-Protocol-Scope-of-FIX-Protocol/" title="https://stocksharp.com/forum/11042/FAQ-on-FIX-Protocol-Scope-of-FIX-Protocol/">Scope of the FIX Protocol.</a><br />3. <a href="https://stocksharp.com/forum/11063/FAQ-on-FIX-Protocol-FIX-message-transmission-system/" title="https://stocksharp.com/forum/11063/FAQ-on-FIX-Protocol-FIX-message-transmission-system/">FIX message transmission system.</a><br />4. <a href="https://stocksharp.com/forum/11113/FAQ-on-FIX-Protocol-Limit-orders-when-working-through-FIX-Protocol/" title="https://stocksharp.com/forum/11113/FAQ-on-FIX-Protocol-Limit-orders-when-working-through-FIX-Protocol/">Limit orders when working through FIX Protocol.</a><br />5. <a href="https://stocksharp.com/articles/11166/FAQ-on-FIX-Protocol-Limit-orders-FOK-and-IOC-(FAK)/" title="https://stocksharp.com/articles/11166/FAQ-on-FIX-Protocol-Limit-orders-FOK-and-IOC-(FAK)/">Limit orders FOK and IOC (FAK).</a><br />6. "Black box" algotrading when working on the FIX Protocol.<br />7. Learn more about algotrading via FIX connection<br />8. Use of unique trading systems when connected via FIX Protocol.<br />9. Fix Protocol in Russia.<br />10. Other connection protocols.<br /><a href='https://stocksharp.com/file/110027/fix-protocol-exchange_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110027/fix-protocol-exchange_jpg/?size=500x500" alt="fix-protocol-exchange.jpg" title="fix-protocol-exchange.jpg" /></a><br /><br /><b>FAQ on Algorithmic trading: </b><br />1. <a href="https://stocksharp.com/articles/11274/FAQ-on-Algorithmic-trading-What-is-Algorithmic-trading/" title="https://stocksharp.com/articles/11274/FAQ-on-Algorithmic-trading-What-is-Algorithmic-trading/">What is Algorithmic trading?</a><br />2. <a href="https://stocksharp.com/forum/11355/FAQ-on-Aalgorithmic-trading-The-history-of-algorithmic-trading/" title="https://stocksharp.com/forum/11355/FAQ-on-Aalgorithmic-trading-The-history-of-algorithmic-trading/">The history of the emergence of algorithmic trading.</a><br />3. Algo trading in the Stock market Part 1.<br />4. The algorithmic trading in Stock market conditions Part 2.<br />5. Algorithmic Forex trading.<br />6. Algorithms for trading strategies while algorithmic trading Part 1.<br />7. Algorithms for trading strategies while algorithmic trading Part 2.<br />8. Review of software for algorithmic trading.<br />9. Stock trading players and HFT traders.<br />10. The main conclusions of algorithmic trading.<br /><a href='https://stocksharp.com/file/110028/hft-trading-system_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110028/hft-trading-system_jpg/?size=500x500" alt="HFT-trading-system.jpg" title="HFT-trading-system.jpg" /></a><br /><br /><b>Crypto trading FAQ: </b><br />1. <a href="https://stocksharp.com/articles/11226/FAQ-on-Crypto-trading-rypto-trading-what-is-it/" title="https://stocksharp.com/articles/11226/FAQ-on-Crypto-trading-rypto-trading-what-is-it/">Crypto trading what is it?</a><br />2. Crypto trading - where to start?<br />3. General information about the crypto trade.<br />4. How to invest in cryptocurrency?<br />5. Briefly about bitcoin.<br />6. Cryptocurrency trading method.<br />7. Cryptocurrency market risks.<br />8. Index in crypto trading.<br />9. Investing in indices.<br />10. Volatility of the cryptocurrency market.<br /><a href='https://stocksharp.com/file/110030/crypto-trading-system_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110030/crypto-trading-system_jpg/?size=500x500" alt="Crypto-trading-system.jpg" title="Crypto-trading-system.jpg" /></a><br /><br /><b>FAQ on Trading robots: </b><br />1. What is a trading robot?<br />2. The history of the emergence of trading robots.<br />3. The basic rules of trading a trading robot.<br />4. Advantages of trading robots.<br />5. Cons of trading robots.<br />6. The Holy Grail for Forex.<br />7. What you need to understand before starting development.<br />8. Programming of the trading robot.<br />9. Trading robot constructor.<br />10. To trade or not to trade a robot?<br /><a href='https://stocksharp.com/file/110031/trading-robots-system_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110031/trading-robots-system_jpg/?size=500x500" alt="trading-robots-system.jpg" title="trading-robots-system.jpg" /></a><br /><br /><b>Interactive Brokers FAQ: </b><br />1. <a href="https://stocksharp.com/articles/11255/Interactive-Brokers-FAQ-INTERACTIVE-BROKERS-who-are-they/" title="https://stocksharp.com/articles/11255/Interactive-Brokers-FAQ-INTERACTIVE-BROKERS-who-are-they/">INTERACTIVE BROKERS-who are they?</a><br />2. The history of the broker.<br />3. The reliability of the broker Interactive Brokers.<br />4. Minimum Deposit in Interactive Brokers.<br />5. Especially if you are working with Interactive Brokers Part 1.<br />6. Especially if you are working with Interactive Brokers Part 2.<br />7. How to Fund your Interactive Brokers account <br />8. About the commissions of Interactive Brokers.<br />9. Leverage from Interactive Brokers.<br />10. The results of Interactive Brokers.<br /><a href='https://stocksharp.com/file/110032/interactive-brokers-algotrade-platform_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110032/interactive-brokers-algotrade-platform_jpg/?size=500x500" alt="Interactive-Brokers-algotrade-Platform.jpg" title="Interactive-Brokers-algotrade-Platform.jpg" /></a><br /><br /><b>Plaza II connector FAQ: </b><br />1. Introduction to Plaza II.<br />2. Plaza II pros and cons.<br />3. The architecture of Plaza II.<br />4. The scheme of data transmission Protocol Plaza II Part 1.<br />5. The scheme of data transmission Protocol Plaza II Part 2.<br />6. Work with data streams connections Plaza II Part 1.<br />7. Work with data streams connections Plaza II Part 2.<br />8. Types of logins of the Plaza II connector.<br />9. Technical implementation of the gateway Plaza II.<br />10. Synthesis under Protocol Plaza II.<br /><a href='https://stocksharp.com/file/110033/plaza-moex-trade_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110033/plaza-moex-trade_jpg/?size=500x500" alt="Plaza-moex-trade.jpg" title="Plaza-moex-trade.jpg" /></a><br /><br />b]FAQ on S#.Designer: [/b]<br />1. <a href="https://stocksharp.com/articles/10642/How-to-download-market-data-to-the-Designer/" title="https://stocksharp.com/articles/10642/How-to-download-market-data-to-the-Designer/">How to download market data to the Designer?</a> <br />2. <a href="https://stocksharp.com/articles/10679/Designer---create-a-strategy-based-on-MACD-Start-with-simple/" title="https://stocksharp.com/articles/10679/Designer---create-a-strategy-based-on-MACD-Start-with-simple/">Designer - create a strategy based on MACD. Start with simple.</a><br />3. Construction of composite indicators in S#.Designer.<br />4. How to create conditions in S#.Designer.<br />5. Selecting a tool for testing in S#.Designer. <br />.<br /><b>Hydra FAQ: </b><br />1. Upload all data from Hydra to the desired format.<br />2. <a href="https://stocksharp.com/forum/10917/How-to-plot-the-indicator-in-the-program-Hydra/" title="https://stocksharp.com/forum/10917/How-to-plot-the-indicator-in-the-program-Hydra/">How to plot the indicator in the program Hydra.</a><br />3.The Analytics feature in Hydra?<br /><br />We would like that in the future, replenishment of knowledge base we did together with you. So write, what else would You was wondering.[nerd]https://stocksharp.com/topic/11483/S#.API and S#.Shell is your step in trading.2020-03-17T20:31:25Z2020-03-17T20:31:25ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comGood afternoon!<br />It was no accident that we decided to tell you about two products of our company that are part of the basic software from S#.<br />Our choice was made based on the opinions of our users, who are interested in learning a little more about the purpose of programs, how they work and how they are used in trading.<br />It should be noted that <b>S#.Shell</b> and <b>S#.API</b> is a <b>comprehensive solution for creating trading robots in C#</b>. However, the use of these programs is not limited to creating trading robots.<br /><br /><u>So, first let's look at what S#.API.</u><br /><br /><b>The term API, according to Wikipedia, means:</b><br /><em>The Application programming interface (API) is a description of the ways (a set of classes, procedures, functions, structures, or constants) that one computer program can interact with another program. It is usually included in the description of an Internet Protocol, software framework, or standard for calling operating system functions. It is often implemented by a separate software library or operating system service. It is used by programmers when writing various applications.</em><br /><br /><br />S#.API is a completely free library that allows novice and experienced traders with even basic programming knowledge to use it to create their own trading systems in the field of algotrading.<br />The library is based on the C# language, with the ability to use it in the <em>Visual Studio</em> programming environment. The library is designed for the user to create their own unique trading systems: from positional strategies with a long timeframe to high-frequency strategies (<em>HFT</em>) that use direct access (DMA) to stock trading.<br />The uniqueness of this product is that it is based on the work of all the basic products of StockSharp, such as: <a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/">S#.Designer</a>, <a href="https://stocksharp.com/products/hydra/" title="https://stocksharp.com/products/hydra/">S#.Data</a>, as well as the <a href="https://stocksharp.com/products/pricing/#sources" title="https://stocksharp.com/products/pricing/#sources">S#MatLab</a>.<br /><br /><a href='https://stocksharp.com/file/111782/trade-terminal-system_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/111782/trade-terminal-system_png/?size=500x500" alt="trade-terminal-system.png" title="trade-terminal-system.png" /></a><br /><br />For example, the use of library elements is widely used to create <a href="https://doc.stocksharp.com/html/20a8932b-09cb-4f13-bade-770a68ac96fd.htm" title="https://doc.stocksharp.com/html/20a8932b-09cb-4f13-bade-770a68ac96fd.htm">unique cubes</a> in the Designer program. in fact, the user takes a ready-made component represented by the program code, combines it with other components, or modifies it and applies it in the designer trading robot constructor, placing it in their own cubes.<br /><br /><a href='https://stocksharp.com/file/111787/source-code-designer_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/111787/source-code-designer_jpg/?size=500x500" alt="source-code-designer.jpg" title="source-code-designer.jpg" /></a><br /><br /><b>The Mechanism Of S#.API is based on the use of messages.</b><br /><u>This mechanism consists of three elements:</u><br /><em>- <b>message Message,</b><br />-<b> message adapter MessageAdapter</b><br />- <b>IMessageChannel transport channel.</b></em><br />The message acts as an agent that transmits information.<br /><u>Messages can be outgoing and incoming.</u><br /><em>- Outgoing messages - messages that are sent to an external system. These are usually commands that the program generates, such as the ConnectMessage message, a command requesting a connection to the server.<br />- Incoming messages - messages coming from an external system. These are messages that transmit information about market data, transactions, portfolios, connection events, and so on.</em><br /><br /><a href='https://stocksharp.com/file/111783/shell-title-frimework-api_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/111783/shell-title-frimework-api_png/?size=500x500" alt="Shell-Title-frimework-api.png" title="Shell-Title-frimework-api.png" /></a><br /><br />This mechanism allows you to unify the work on developing adapters, while at the same time allowing the user to create their own connections to various trading systems.<br /><u>Let's look at the main advantages of using S#.API:</u><br /><em>- Independence of the trading robot created by the user from the API of the broker or exchange used. in fact, the created trading robot can work with any connection. This way the user can easily connect their trading robot to Quik, Transaq, or FOREX without changing the program code.<br />- S # library today.The API supports more than <b>70 connections </b>(Connectors (Russia), Connectors (America), Forex Connectors, and Cryptocurrency Connectors).<br />- The library's versatility allows it to be used by private traders, small development teams, as well as large investment companies and banks.<br />- An important indicator is high performance, which allows you to simultaneously execute hundreds of strategies for any instrument.<br />- High speed of processing applications in S#.API allows you to reduce the processing time to a few microseconds.<br />- The library can use direct access to trade, such as: <em>Plaza II, Micex Bridge, and also supports the FIX Protocol,</em> which allows you to reduce the processing time of orders.<br />- The definition of real slippage is achieved through realistic testing, which is carried out using ticks and glasses. This allows the user to minimize the risk of possible losses and more flexibly and accurately configure their trading strategy.<br />- The widespread use of the C# language used in creating the library and<em> Visual Studio</em> environment simplifies the user's work, due to excessive information about their capabilities.</em><br /><br /><b>For the convenience of working with S#.API is divided into blocks, which allows the user to easily find the section that interests them.<br />The ease of installation on a computer, the prevalence of the programming language and the use environment make the library S#.API is a universal way to develop trading robots. Once a user has created a trading robot, they can connect it to any chosen trading platform or broker.</b><br />Also, knowledge of working with the library allows you to develop the user's programming skills.<br /><br /><b>We have considered the main element-the S#.API that all the basic StockSharp software products are built on.<br />Great, now it is clear that with the use of the S#.API users can create their own trading robots and use them in trading.<br />However, using the Visual Studio development environment is not very convenient for working with created trading systems, let alone testing trading systems.</b><br />For convenience and ease of operation, StockSharp has developed a ready-made graphical framework with the ability to quickly change to the needs of the user - trader, while open source, created in C# - S#.Shell.<br /><u>Let's look at the main advantages of this graphical framework:</u><br /><em>- The main advantage of the product is open source code. What does this give the user?</em><br /><br /><a href='https://stocksharp.com/file/111785/gui-shell-source-code_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/111785/gui-shell-source-code_jpg/?size=500x500" alt="gui-shell-source-code.jpg" title="gui-shell-source-code.jpg" /></a><br /><br />The open source code of the program allows the user to use all the features of the product, complementing it with their own add-ons. The user can set up their own control panels, use ready-made elements, or create their own. Easy configuration increases the speed of preparing the program for launch.<br />Availability of S#modulations.Shell, allows you to create a user-friendly environment that is understandable to them.<br /><br /><a href='https://stocksharp.com/file/111784/shell-title-frimework_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/111784/shell-title-frimework_png/?size=500x500" alt="Shell-Title-frimework.png" title="Shell-Title-frimework.png" /></a><br /><br />Thus, the use of open source code does not just allow the user to create a convenient individual interface, but it is ideal for creating custom trading robots, and this expands the scope of the user's knowledge, opening up a resource for additional earnings.<br /><em>- The next undisputed advantage of S#.Shell supports more than 70 different connections to global exchanges (Connectors (Russia), Connectors (America), Forex Connectors, Cryptocurrency connectors, General).<br /><br /></em><br /><a href='https://stocksharp.com/file/111781/gui-shell-connector-exchange_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/111781/gui-shell-connector-exchange_jpg/?size=500x500" alt="gui-shell-connector-exchange.jpg" title="gui-shell-connector-exchange.jpg" /></a><br /><br /><em>- S#.Shell allows the user to fully test their trading systems before entering real trading. Convenient statistics, Equity curves, and a detailed report on the testing process allow the user to take into account possible risks at the development and testing stage and make changes to the trading robot code.</em><br /><br /><a href='https://stocksharp.com/file/111786/gui-shell-equti-exchange_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/111786/gui-shell-equti-exchange_png/?size=500x500" alt="gui-shell-equti-exchange.png" title="gui-shell-equti-exchange.png" /></a><br /><br /><em>- The user can also save backup copies of their trading robots, restore settings and compare changes with the original code of the trading robot.<br />- A very important and convenient S#function.Shell is a simultaneous launch of strategies. What does this mean? The user is no longer limited to a single platform for work and can also apply a set of several strategies that can operate separately from each other, or can be applied as a set of strategies.</em><br />Such complexes allow you to compensate or insure each other, conduct a policy of hedging and arbitration.<br />At the same time, the user receives detailed information about the course of trading, receiving information about orders, transactions, positions, profits, logs, and other information, the output of which can be configured in the program.<br />The user can also set up a scheduled strategy launch by setting a clear schedule for each of the launched trading strategies.<br />S#.Shell is a convenient and multifunctional software solution that can be customized for the user.<br /><br />To sum up, we can say the following, that the use of the complex from the<b> S#.API </b>and <b>S#.Shell</b>, allows the user to get a fully customizable shopping complex for their needs. The user gets not just a shell for trading, but a solution for testing, trading, and complex interaction of their created strategies with different markets simultaneously or separately.<br />Ease of use is obvious, it not only reduces the time to prepare and trade, but also allows the user to develop solutions for sale, which increases revenue.<br />A convenient<a href="https://stocksharp.com/edu/" title="https://stocksharp.com/edu/"> training course from StockSharp</a> allows you to quickly master both programs, learn how to program and earn money. <b>S# source code already included in the price</b> S#.Shell and additional trading systems reduce the user's costs and allow you to start trading immediately.https://stocksharp.com/topic/11166/FAQ on FIX Protocol. Limit orders FOK and IOC (FAK).2019-11-15T18:04:12Z2019-11-15T18:04:32ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comEarlier, we said that the <b>FIX Protocol</b> not only increased the<b> speed of traders</b> in the market, but also provided an opportunity for market participants to use <b>limit orders</b>, which reduced the risks of trading. Let's take a closer look at two types of limit orders. <br />Let's start with the <em>FOK</em> order.<br />Literally, its name stands for - <em>'Fill Or Kill'</em>. The essence of this order is that it is<b> executed immediately</b> and in <b>full at the stated price</b>, or will not be executed at all, which eliminates the possibility of slippage. Thus, if your order<b> cannot be executed in full</b>, then the order is<b> simply rejected</b>, if the order <b>can be executed in full</b>, then the <b>order is executed in full at the specified price</b>. [nerd] This type of order is very <b>convenient</b> for <b>scalping</b> or <b>arbitrage strategies</b>, as they <b>eliminate the risk of slippage</b>. In fact, we can say that the <a href="https://stocksharp.com/robot/18/edward-scissorhands/" title="https://stocksharp.com/robot/18/edward-scissorhands/">"Edward – Scissorhands"</a><b> arbitrage strategy</b> from StockSharp <b>eliminates risks</b>. Below is an example of the rejection of the <em>FOK</em> order in the <em>CME</em> system, due to the fact that the <b>order size is 20</b>, and the<b> book contains only 19</b>, so the order <b>can not be executed completely</b>, and the system cancels it. <br /><br /><a href='https://stocksharp.com/file/110086/fok-orde-fix-protocol_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110086/fok-orde-fix-protocol_jpg/?size=500x500" alt="FOK-orde-FIX-protocol.jpg" title="FOK-orde-FIX-protocol.jpg" /></a><br /><br />The next type of limit orders are <em>IOC</em> orders. <br />The name <em>'Immediate OR Cancel' </em>means that the <b>order is executed in whole or in part at the set price</b>, otherwise the order will be canceled. For example, if the <b>order size is 100 units</b>, only <b>50 units can be sold at the set price</b>. If we use an order of type <em>FOK</em>, the system will cancel it, as it can not be fully executed. When using the <em>IOC</em> <b>limit order</b>, the order will be <b>executed for 50 units</b>, and the <b>remaining ones will be canceled</b>. <em>IOC</em> also has another name <em>FAK</em>, which stands for <em>'Fill And Kill'</em>, executed and discarded the remainder.[nerd]<br />For example, an <em>IOC</em> order will be partially executed (in the <em>CME</em> system, its name is <em>FAK</em>). If we <b>buy 15</b>, and the book <b>contains only 10</b>, then we <b>buy 10</b>, and the <b>remaining 5</b> are rejected, so this order can be called partially executable:<br /><br /><a href='https://stocksharp.com/file/110085/iok-order-fix-protocol_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110085/iok-order-fix-protocol_jpg/?size=500x500" alt="IOK-order-FIX-protocol.jpg" title="IOK-order-FIX-protocol.jpg" /></a><br /><br /><b>Limit orders</b> when working through the <b>FIX Protocol</b> allow the trader to <b>reduce risks</b>, and in some cases, especially when working with <b>arbitrage strategies</b> to <b>reduce them to zero</b>. Our company provides a range of programs to work in the market through <b>FIX connect</b>, such as: designer trading strategies <a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/">Designer</a>, trading program <a href="https://stocksharp.com/products/terminal/" title="https://stocksharp.com/products/terminal/">Terminal</a>. We also provide a full range of connectors for connection to trades, including FIX. Flexible system of discounts and reliability of connection, makes us one of leaders in the market. The full range of connectors and software can be found on our <a href="https://stocksharp.com/products/pricing/" title="https://stocksharp.com/products/pricing/">website</a>.<br />https://stocksharp.com/topic/11125/What is a trading robot?2019-10-28T14:49:18Z2019-10-29T11:25:12ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comThe growth of activity in the world markets among traders, as well as the constant progress of technology, led to an increase in the <b>speed of actions</b> carried out by players on the trading floor.<br />Today, many traders actively <b>working with various financial instruments</b> prefer <b>trading robots</b> rather than manual trading. This is largely due to the <b>speed of operations </b>and their volume.<br />Let's see, what is a trading robot? A <b>trading robot</b> is a <b>special program</b> created by a <b>special algorithm</b>, according to which it conducts trading operations. [nerd]<br />Let's take a closer look at the features of such programs.<br />The <b>trading robot program</b> allows you to <b>fully or partially take over the process of working</b> on the trading floor. The trader, as the operator of the trading robot, has the possibility of <b>full control</b> over it, which allows the robot to adjust the trading robot, <b>make changes to the program code or change the algorithm</b>.<br />The trading robot in Autonomous operation independently <b>makes decisions </b>on orders and transactions, according to the established criteria of its algorithm, with intervention in the user's process, operations can be carried out in<b> manual mode</b>.<br />The<b> program code</b> of the trading robot is <b>based on calculated and thought-out mathematical sequences</b>. Keeping track of different data such as <b>indexes, indicators and other market data</b> obtained from the exchange. The trading robot program decides whether to buy or sell certain assets. The <em>speed of reaction to market changes</em>, allows the trading robot to make much more transactions, respectively, potentially bring greater profits and reduce losses. [nerd]<br /><br /><a href='https://stocksharp.com/file/109967/algorithmic-trading-forex_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109967/algorithmic-trading-forex_jpg/?size=500x500" alt="algorithmic-trading-forex.jpg" title="algorithmic-trading-forex.jpg" /></a><br /><br />Let's return to the main task of the trading robot. We can say that the task of a trading robot to simplify trading for a trader is not the main one. The <b>main task</b> of the trading robot is to be able to <b>implement through programming trading algorithms</b> that are difficult or impossible to implement in manual trading. Simply put, a trading robot is a set sequence of actions for making a trade.<br /><br />From the total mass of trading robots, it is necessary to distinguish three main groups that differ in the algorithm of work or the type of strategy.<br />- <em>Trend (directional) or directional;</em><br />- <em>Countertrend</em>;<br />- <em>Arbitral</em>.<br /><br /><a href='https://stocksharp.com/file/109976/trade-robot-strategy_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109976/trade-robot-strategy_jpg/?size=500x500" alt="trade-robot-strategy.jpg" title="trade-robot-strategy.jpg" /></a><br /><br />Let us consider in more detail the features of each type of trading robots.<br />1. <em>Trend or directional robots</em>. The purpose of the robot is the <b>fastest response to the trend of the market</b>, in other words to track in which direction the market has turned. Depending on the direction, the trading robot automatically opens a position either by selling or buying. Accordingly, if the market changes its direction, the trading robot performs the opposite action as quickly as possible, opening a position.<br />2. <em>Countertrend trading robots</em>. Their goal is to<b> track price rollbacks</b>. This trading robot monitors price rollbacks occurring in the flat position of the market and places orders based on the established algorithm.<br />3. <em>Arbitrage trading robot</em>. This trading robot is <b>almost the most popular type</b>. A trading robot such as "<u><a href="https://stocksharp.com/robot/18/edward-scissorhands/" title="https://stocksharp.com/robot/18/edward-scissorhands/">Edward"</a></u>, for example, makes a profit by <b>determining price</b> differences between similar or identical instruments in different markets. In fact, he buys in one market, sells in another, compensating for the difference and making a profit.<br /><br /><a href='https://stocksharp.com/file/109964/trade-robot-api_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109964/trade-robot-api_png/?size=500x500" alt="trade-robot-api.png" title="trade-robot-api.png" /></a><br /><br />Another way is the separation of robots:<br />- <em>Candlestick</em>. These are trading robots that use <b>candlestick data </b>to determine signals for placing orders.<br />- <em>Indicator</em>. These robots use <b>indicator data</b> to open an order.<br /><br />Let's talk about building a trading robot. The very <b>writing of program code</b> <b>is not a difficult task</b>, reduced to the knowledge of programming languages. It is much more difficult to find the <b>right way to create a trading algorithm</b> on the basis of which a trading robot is created.<br />Today, up to 50% of transactions on trading platforms are made by trading robots. Trading robots are rightfully considered one of the most reliable and effective trading tools. There's an explanation :<br />- <em>Trading robot simplifies the work of transactions with a large volume of the lot, dividing the application into smaller parts and making transactions in parts;</em><br />- <em>Trading robot reduces the labor of the trader, making trading operations automatically. This contributes to an increase in the volume of transactions, increase the profits that trade brings, and, importantly, reduces the possible loss;<br />- While remaining automatic, the trading robot can always be switched to manual mode, that is, it remains completely under the control of its owner;<br />- A huge list of tools and methods that can be used by a trading robot, allow us to say that the trading robot makes it possible to realize the most complex mathematical problems for trading;<br />- The trading robot does not have the criterion of emotionality, in fact, it soberly operates its inherent mechanism. Does not panic in a stressful situation.</em><br /><br /><a href='https://stocksharp.com/file/109966/hft-trade-forex_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109966/hft-trade-forex_jpg/?size=500x500" alt="HFT-trade-forex.jpg" title="HFT-trade-forex.jpg" /></a><br /><br />When analyzing trading robots, a trader must choose the <b>right path for himself</b>, on the basis of which he will be able to choose a robot for himself. A trader should understand that a <b>trading robot is not decision for 100% success</b>. In addition to the trader, it is important to know the platform for the implementation of such trading robots. There are quite a lot of them (TSlab, <u><a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/">S#.Designer</a></u>).<br /><br /><a href='https://stocksharp.com/file/109963/holy-grail-forex_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109963/holy-grail-forex_jpg/?size=500x500" alt="holy-grail-forex.jpg" title="holy-grail-forex.jpg" /></a> <a href='https://stocksharp.com/file/109968/exchange-trade-strategy_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109968/exchange-trade-strategy_png/?size=500x500" alt="exchange-trade-strategy.png" title="exchange-trade-strategy.png" /></a><br /><br /><br />Summing up, we can say that the <b>trading robot is reliable and convenient functionality</b> in the arms of the trader, the most important thing is to use it correctly when conducting exchange trading.<br /><br />https://stocksharp.com/topic/11121/Familiarity with algorithmic trading.2019-10-23T12:31:08Z2019-10-23T12:31:08ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comBefore you start talking about <b>algo trading</b>, you need to define it.<br />So, what is algo trading? There is a <b>different definition</b> of this concept, only its essence and the principles on which the work is <b>based remain unchanged</b>. Algo trading-trading, which takes place through a fully automated algorithm, which prescribes the trader, the execution of which potentially brings profit to the trader. In fact, it is a program that carries a sequence of actions. [nerd]<br /><br /><a href='https://stocksharp.com/file/109909/trading_robot_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109909/trading_robot_jpg/?size=500x500" alt="trading_robot.jpg" title="trading_robot.jpg" /></a><br /><br />The trader himself <b>makes and determines</b> the sequence of applications for purchase or sale, indicating the order of management of his funds.<br />The money management conditions set by the trader as <b>program parameters</b> determine the necessary or optimal size of investments, for example, purchased securities. Similarly, this system manages the allowable loss or risk at which the size of the loss will be acceptable. In this case, risk management is performed by setting the <b>stop loss</b> algorithm.<br />The absence of feelings and emotions in the <b>algorithmic program </b>allows to avoid nervous breakdowns or other emotional outbursts. This is certainly a plus, since the work of a trader often occurs on the verge of nervous tension, and sometimes a person can lose his nerves, which will entail a rash step and as a consequence of loss. At the same time, the trader has the <b>opportunity </b>to intervene in the work of the trading strategy, <b>making the necessary adjustments</b>. [laugh]<br />The<em> task of algo trading</em> is the exact execution of the instructions of its system. Often in some sources you can see the name of <em>mechanical trading systems (MTS)</em>, but algo trading is the most common name. In fact, the algorithm is <b>" mechanically " executed by the program</b>, excluding judgments about the market situation and the state of various instruments. I must say that the "mechanical" system is <b>not always automated</b>. The latter, unlike the first, independently makes transactions, with the participation of a person is not required or minimized.<br /><br /><a href='https://stocksharp.com/file/109902/trade_systems_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109902/trade_systems_jpg/?size=500x500" alt="trade_systems.jpg" title="trade_systems.jpg" /></a><br /><br />Experts note that the algorithmic trading consists of <b>two stages</b>. Let's take a closer look at them.<br />At the <b>level of the first stage</b>, the trader creates his "mechanical" strategy. After creation, the process of<b> testing on the market data</b>, and subsequently, when the strategy reaches the desired level of potential <b>profit</b>, testing goes into real time or real trading. Note that the last stage takes place when using <b>minimal capital</b>, as it is testing, and some traders prefer it to <em>"trade on paper"</em>. At the same time, profitability is not the only criterion that gives an assessment of the efficiency of the strategy.<br />Let's talk about the means of creating and then testing the created strategies. Such tools may include <b>special programs</b> designed for technical analysis of algorithmic systems created. The most famous are: carried out using specialized programs: <em>MetaStock, S#.Designer, Wealth-Lab, Tslab</em> and others.<br />The strategy program is written in various programming languages such as: <em>C#, C++, LUA </em>and others. The recorded algorithm makes it possible to use the <b>downloaded market data </b>to test the strategy, and in the future allows you to place orders in the programs used for trading. It is worth noting that strategies can be created as in constructor programs for example: <em><u><a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/">S#.Designer</a></u>, Tslab</em>, in which the strategy is created on the basis of cubes, and the program is a scheme, and in programs where direct programming is used <em>MetaStock, Wealth-Lab</em>, including using ready-made libraries, such as <u><em><a href="https://stocksharp.com/products/api/" title="https://stocksharp.com/products/api/">S#.API</a></em></u>.<br />The<b> second stage</b> of development begins after the trader's strategy has been fully tested and is ready for <b>real trading</b>. The second stage is implemented approach strategy or a trading robot that will trade the set algorithm or the trader selects the manual bidding process on a signal received from created strategy.<br />The trader connects the e<b>xport of stock market data</b> obtained in real time to the program in which his trading strategy is created. The strategy processes the data and based on the result, sends a signal to submit applications.<br />Again, what alarm action strategy can be done manually by a trader, and can be delegated to a <b>trading robot</b>, which places bids automatically according to the algorithm, for example in systems like <em>S#.Designer, MT4, TSlab</em>.<br /><br /><a href='https://stocksharp.com/file/109903/trade_strategy_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109903/trade_strategy_jpg/?size=500x500" alt="Trade_Strategy.jpg" title="Trade_Strategy.jpg" /></a><br /><br />It should be <b>remembered</b> that the creation of a trading robot does not relieve the <b>trader of responsibility</b> for the trade itself. The trader must <b>constantly monitor the work</b> of his robot, edit the terms of transactions according to the changing situation in the market. [nerd] Should be said, when <b>working on long time frames</b>, comparable, for example, with an hour, the automation of placing orders may disappear, since the trader is able to correlate and manage the trade on <b>long periods</b>.<br />Any chosen direction of algo trading can undoubtedly bring profit to the trader, but the approach should be deep, not just at the level of the chosen algorithm, it is necessary to take into account the tools on which the trade will be conducted, the software. An important rule is analysis and testing, it <b>always minimizes your losses</b>.https://stocksharp.com/topic/11113/FAQ on FIX Protocol. Limit orders when working through FIX Protocol.2019-10-21T13:10:12Z2019-10-21T13:10:12ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comAs mentioned earlier, an<b> important advantage</b> of working through <b>FIX Protocol</b> is the ability to use limit orders <em>FOK ('Fill or Kill')</em> and <em>IOC ('Immediate Or Cancel')</em>. Their advantage over simple market orders is the absence of <b>price slippage</b>. In fact, for arbitrage strategies, such as <a href="https://stocksharp.com/robot/" title="https://stocksharp.com/robot/">"Edward-Scissorhands"</a> from <a href="https://stocksharp.com" title="https://stocksharp.com">StockSharp</a>, this means almost <b>zero risk</b>. Consider how the orders <em>FOK</em> and <em>IOC</em> FIX Protocol on the example of comparing them with conventional orders.<br />Before making a trade, the trader has the opportunity to <b>sell or buy</b> the selected asset using a limit or market order. The option chosen by the trader determines the level of control over the execution price. <br />Thus, a market order determines its execution in the shortest possible time and at the best available price. [smile] For example, if you buy 100 units on a market order, the order will be executed entirely at the price that is available on the market. Accordingly, 50 units can be conditionally at a favorable price, and the rest at a price less favorable or completely unprofitable, in other words, the order will be executed at several different prices. At the same time, we have a situation with a large slippage. [laugh]<br /><br /><a href='https://stocksharp.com/file/109877/fix_connector_limith_order_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109877/fix_connector_limith_order_jpg/?size=500x500" alt="fix_connector_limith_order.jpg" title="fix_connector_limith_order.jpg" /></a><br /><br />FIX Protocol allows the trader to set his own execution price, so it will be executed at the specified price or higher. This is the use of a limit order. For example, if a trader placed a limit order to sell an asset and set a strike price of $ 100, the order will not be executed until the price for the placed asset is equal to or above the set limit of $ 100.[nerd]<br /><br /><a href='https://stocksharp.com/file/109876/fix_protocol_limith_order_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109876/fix_protocol_limith_order_jpg/?size=500x500" alt="fix_protocol_limith_order.jpg" title="fix_protocol_limith_order.jpg" /></a><br /><br />For this reason, <b>we recommend using</b> the FIX Protocol connection, and provide the opportunity to purchase connection connectors or develop connectors individually. The full range of our products can be found <a href="https://stocksharp.com/products/pricing/" title="https://stocksharp.com/products/pricing/">here</a>.https://stocksharp.com/topic/11089/The FIX Protocol. FIX message architecture.2019-10-14T11:33:50Z2019-10-14T11:33:50ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comToday it is impossible to imagine <b>stock trading</b> without the use of <b>FIX Protocol</b>. However, it appeared relatively recently - in 1992.<br />The increase in <b>speed and data volume</b> has prompted the creation of a fundamentally new connection with high bandwidth and reliable connectivity.<br />Today, the fifth version of the FIX5 Protocol has been released, which should replace the previous FIX4. However, the most popular for use is still FIX4, which has proven itself as the<b> optimal solution for data transmission</b>.<br />The Protocol itself exists in two syntaxes, <em>XML</em> (second name FIXML) and <em>Tag=Value</em>. It is worth saying that the Protocol is divided into <b>3 levels</b> - transport, session, application.<br /><br /><a href='https://stocksharp.com/file/109833/fix_protocol_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109833/fix_protocol_jpg/?size=500x500" alt="fix_protocol.jpg" title="fix_protocol.jpg" /></a><br /><br />For a better understanding of the mechanism of the Protocol, consider each of the levels separately.<br />Let's start with the <b>transport laye</b>r of the FIX Protocol.<br />This level describes the structure of the message transmitted through the FIX Protocol. Gives a description of how the message structure is constructed.<br />Considering it it is possible to tell the following that it is the usual line containing the cipher written by means of syntax of FIX of the Protocol. In fact , it is a cipher containing a message to be sent to the trading floor.<br /><br /><a href='https://stocksharp.com/file/109832/fix_connector_data_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109832/fix_connector_data_png/?size=500x500" alt="FIX_connector_data.png" title="FIX_connector_data.png" /></a><br /><br />The example shows the message transport LAYER fix Protocol, which is directed to the exchange Lmax. This message conveys the information that the trader wants to log in to the trading system to make transactions.<br />At first glance, this message is a set of numbers and symbols, but let's analyze what information this message contains.<br />In our example, we see the syntax of type "Tag=Value". All messages consist of several components - fields, these fields are divided by vertical lines. Each field is divided into two parts by the sign "=". It turns out that to the left of the sign is equal-the "Tag", and to the right-the "Value". Tags are always positive and integers that indicate the name of the field. Each exchange provides a kind of documentation, according to which messages are encrypted and decrypted by the FIX Protocol. It specifies the names of the "Tags" that describe the data type and the description of the data itself.<br />Almost all fields are standardized, having the same meaning on all trading floors. However, it is worth saying that at the same time, <b>not every exchange supports them</b>. Messages sent via the FIX Protocol contain mandatory and optional fields, as well as conditionally required fields, the presence of which is conditioned by the presence of other fields. In the diagram below we can clearly see the division of the message into fields.<br />Let's look at an example of such a record.<br /><br /><a href='https://stocksharp.com/file/109834/fix_protocol_messenge_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109834/fix_protocol_messenge_png/?size=500x500" alt="FIX_protocol_messenge.png" title="FIX_protocol_messenge.png" /></a><br /><br />The separation of fields occurs by means of the <em>SOH</em> symbol, which stands for-Start of Heading, and belongs to the <em>ASCII </em>encoding method. In this case, this symbol is not displayed as an abbreviation, but is conditionally indicated by a vertical line and from the point of view of the <em>UNICODE</em> format has the value “<b>\u0001</b>”.<br />The same is worth noting that the message is built from three parts. Conventionally, they are shown in different colors:<br />- Green-header<br />- Pink-body<br />- Lilac - checksum<br />Let's take a closer look at what each of the parts is.<br />The message header can contain a different number of fields, consider the main ones that must be in the FIX message:<br />- <b>8 = FIX.4.4</b>-this field indicates the Protocol version, it is always the first.<br />- <b>9 = 123</b>-this field indicates the size of the FIX message, it is the second message size, always the second in a row<br />- <b>35 = V</b>-this field means the name of the operation to be performed, in this case V-market data query, this field is always the third.<br />- <b>34 = 2</b>-denotes which account message is calculated for the current session.<br />- <b>49 = FIXtest1</b> – this field means the sender user ID, which is assigned by the exchange.<br />- <b>54 = 20120924-14:05:44.952</b> is the current time of sending the message.<br />- <b>56 = LMXBDM</b>-this field is the value of the identifier that is assigned to the recipient by the exchange.<br />Considering the body of the FIX message, we can say that this is a list of fields that correspond to each of the types of requests. The practice of using a set of fields or groups that contain the same tags is also used.<br />Let's assume we need to request information on a list of tools. In this case, each of them will have the same tag, and differ only in content. We list the necessary tools, using a separate field for each. This type of record is called a group or set of fields. They will all have the same tag or data type, and differ only in content.<br />Consider the checksum. The calculation is performed in accordance with a special algorithm, the calculation takes the header and body. In the beginning, the length of the "header plus body" is calculated, then divide the length by 256 and get the remainder. The checksum consists of three characters. If in the remainder of the division we got 20, then forward we add 0, and get 020. As a result, the checksum in our case will have the form " 10 = 020|".<br />Now consider the session-level Protocol. This FIX message Protocol regulates the mechanism of establishing/disconnecting the connection, maintaining the connection, reporting missing data. It consists of a number of messages:<br />1.<b> Logon (35=A)</b> - by means of this message, the user is authenticated by the server. It is sent first, and serves as a signal to the beginning of the data transfer session. On successful startup, a response message is received, on error-a message about the error occurred.<br />2. <b>Logout (35=5)</b> - this message indicates a disconnection from the server.<br />3. <b>Heartbeat (35=0)</b> - this message notifies the readiness of counterparties, is sent to both parties, another name is the message "pulse". The frequency of sending the pulse is set by the user in the First logon message.<br />4. <b>Test Request (35=1)</b> - this message is a test message and is sent when the counterparty has not sent a pulse message within the specified period. The session will be closed if this message remains unanswered.<br />5. <b>Resend Request (35=2)</b> is a request message that is directed to send a repeated message. Resend Request, for example, can repeat to give a signal that the exchange would repeat the missed information.<br />6. <b>Reject (35=3)</b> – the message is sent in response if the previous one is incorrectly formed.<br />7. <b>Sequence Reset (35=4)</b> - this message can take two forms.<br />- in the field <em>GapFillFlag</em> (tag 123) is the value " Y”, used to ignore administrative messages, if there is a repetition of their sending.<br />- in the second case, it is used To reset the <em>MsgSeNum </em>counter.<br />The last level of FIX messages is applied.<br />This level has the most capacious description, this is due to the fact that this level contains information that is necessary to work with the trading platform.<br />Let's look at the main messages of this level:<br />1. <b>Market Data Request (35=V)</b> - the message sends a signal that the user subscribes to the stream of transmitted data on quotes in the current time period. The user can unsubscribe from receiving data through a similar request, specifying the ID of the previous message. In this case, he will receive a message MarketDataSnapshotFullRefresh (35=W).<br />2.<b> New Order Single (35=D)</b> – a message about the user's desire to place an order in the system. The user has the ability to set their own ID, this simplifies the process of tracking the execution, partial execution or cancellation of the order.<br />3. <b>Execution Report (35=8)</b> – execution report message that provides information on the status of the order executed or canceled, and for what reasons. This report is specified as Exec Type (Tag 150).<br />4. <b>OrderCancelRequest (35=F)</b> - message about the request to cancel the placed order.<br /><br /><a href='https://stocksharp.com/file/109835/fix_protocol_trading_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109835/fix_protocol_trading_jpg/?size=500x500" alt="fix_protocol_trading.jpg" title="fix_protocol_trading.jpg" /></a><br /><br />We have analyzed the main aspects of working with messages transmitted by means of FIX Protocol. The number of such messages and query options is huge, and every year the possibilities and <b>tools for working with FIX Protocol are growing</b>. The specification of such messages is regulated by the exchange, leaving a standardized form for recording requests.<br />Let me remind you that the transmission of such messages takes place directly when <b>directly connected </b>to the trading floor, through <b>FIX connectors</b>. The cost of such connectors and their name are different, more information about the specification of connectors can be found on our <u><b><a href="https://stocksharp.com/products/pricing/" title="https://stocksharp.com/products/pricing/">website</a></b></u>.https://stocksharp.com/topic/11063/FAQ on FIX Protocol. FIX message transmission system2019-10-07T15:40:35Z2019-10-07T15:41:34ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comFIX Protocol is a <b>mechanism of trade data exchange</b>. The system itself consists of two data streams: incoming and outgoing, presented in the form of messages (administrative and user).<br /><br /><a href='https://stocksharp.com/file/109773/fix_connector_trading_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109773/fix_connector_trading_jpg/?size=500x500" alt="fix_connector_trading.jpg" title="fix_connector_trading.jpg" /></a><br /><br />The process of interaction between the <b>dealer and the end broker</b> is carried out in the extranet, in which the two information systems exchange <b>FIX messages</b> [nerd]. According to the FIX Protocol, messages are processed, followed by their transfer to the order management system, from which they become available to the broker.<br />Scheme of interaction of two information systems by means of FIX<br /><br /><a href='https://stocksharp.com/file/109775/fix_protocol_exchange_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109775/fix_protocol_exchange_jpg/?size=500x500" alt="fix_protocol_exchange.jpg" title="fix_protocol_exchange.jpg" /></a><br /><br />The trader connects to the exchange via the <b>Internet</b>. To create a connection , the trader and the exchange exchange information about IP addresses and ports through which data is exchanged, as well as add exceptions to the firewall. <br />The FIX message itself contains the name of the party receiving the message and the party transmitting it, so there is no possible substitution or tracking of messages. <br />To guarantee the confidentiality of the transmitted information, use <b>SSL / TSL encryption</b>.<br /><br /><a href='https://stocksharp.com/file/109772/trading_fix_exchange_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109772/trading_fix_exchange_jpg/?size=500x500" alt="trading_fix_exchange.jpg" title="trading_fix_exchange.jpg" /></a><br /><br />This type of encryption allows you to use the <b>simplest way to decrypt </b>the Laugh data that comes on the <b>FIX Protocol</b> and sent it<br /><br /><a href='https://stocksharp.com/file/109774/connector_exchange_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109774/connector_exchange_jpg/?size=500x500" alt="connector_exchange.jpg" title="connector_exchange.jpg" /></a><br /><br />Using this method of data transmission, not only <b>speeds up the work </b>and <b>increases the amount of data transmitted</b> [laugh], but <b>guarantees the safety</b> of work. Our <a href="https://stocksharp.com/" title="https://stocksharp.com/"><b>company</b></a> offers connectors for high-frequency trading, which provide both of these parameters, allowing trouble-free operation in the market. Detailed description and cost of connectors is presented on our <b><a href="https://stocksharp.com/products/pricing/" title="https://stocksharp.com/products/pricing/">page</a></b>.https://stocksharp.com/topic/11042/FAQ on FIX Protocol. Scope of FIX Protocol.2019-09-28T19:15:24Z2019-09-28T19:15:24ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comFIX Protocol has found great application among traders, let's look at why.<br /><b>Financial Information Exchange</b>, it stands as an abbreviation <b>FIX.</b><br /><br /><a href='https://stocksharp.com/file/109716/fix_protocol_exchange_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109716/fix_protocol_exchange_jpg/?size=500x500" alt="fix_protocol_exchange.jpg" title="fix_protocol_exchange.jpg" /></a><br /><br />That translates to sharing financial information. <br />It is designed for financial markets, for the purpose of <b>high-speed transmission of a huge amount of data</b>. Today it is used by most of the participants of the financial market, establishing communication between information systems, is the standard of interaction in the financial market.[nerd]<br /><br /><a href='https://stocksharp.com/file/109715/fix_connector_trading_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109715/fix_connector_trading_jpg/?size=500x500" alt="fix_connector_trading.jpg" title="fix_connector_trading.jpg" /></a><br /><br /><b>FIX API or FIX Protocol </b>has a number of indisputable advantages:<br /><br />- the simplicity of the Protocol architecture allows a high frequency and a small time interval to transfer a large amount of data;<br />- since the FIX Protocol is one, the connection between the participants on it does not require a large amount of time;<br />- the Protocol provides a trader with its own trading system to be anonymous to those who are available operations;<br />- the Protocol has a large number of specialized tools, in particular-a standardized language in which market participants communicate.<br />- if you have FIX API, you can use limit orders FOK and IOC. To avoid slippage, the deal is either opened at your price, or simply does not open, the price does not slide.<br /><br />FIX API allows you to design your trading systems, such as the <b>"black box" of algorithmic trading</b>, they are able to receive a huge amount of information from a huge number of different resources, making decisions based on the received information[laugh]. All this allows the process of obtaining and analyzing information, as well as placing orders on the market via FIX API to take milliseconds.<br /><u><b><a href="https://stocksharp.com/" title="https://stocksharp.com/">StockSharp</a></b></u> company has long been providing the opportunity to purchase FIX connector at a <b>favorable offer</b>, providing flexibility when buying a package of connectors. More information about offers and discounts can be found on our <b><u><a href="https://stocksharp.com/products/pricing/" title="https://stocksharp.com/products/pricing/">page</a></u></b>.https://stocksharp.com/topic/11019/FAQ on FIX Protocol. History of creation2019-09-19T20:41:41Z2019-09-19T20:41:41ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comThe creation of the FIX Protocol, in <b>1992 </b>, revolutionized the world of stock trading. The purpose of its creation was to make <b> a convenient high-speed method of transmitting and receiving exchange information</b> of large volume, between trading participants, as a replacement for trading via the phone, prevailing at the time.<br />To date, the FIX Protocol is supported by most of the largest exchanges in the world.<br /><br /><a href='https://stocksharp.com/file/109694/fix_connector_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109694/fix_connector_png/?size=500x500" alt="FIX_connector.png" title="FIX_connector.png" /></a><br /><br />Since the creation of the FIX Protocol, a lot of time has passed, and during this period the information trading network is constantly improved, along with it and improved the Protocol itself.[nerd]<br /><br />Throughout this time, new functionality was added to the FIX Protocol, support for new tool classes appeared.<br /><br />Now the most widely used Protocol is <b> FIX 4.4</b>, but the latest version of the Protocol is <b> FIX 5.0.</b> the Protocol itself exists in two syntaxes, XML (second name FIXML) and key - value. It should be said that the Protocol is divided into 3 levels - transport, session, application.<br /><br /><a href='https://stocksharp.com/file/109691/fix_protocol_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/109691/fix_protocol_jpg/?size=500x500" alt="fix_protocol.jpg" title="fix_protocol.jpg" /></a><br /><br />The company <b><a href="https://stocksharp.com" title="https://stocksharp.com">StockSharp</a></b> for a long time provides the opportunity to purchase access via the FIX Protocol to famous trading platforms, providing a complete list of <b>connectors for trading.</b> Buying connectors through our company, you can be sure of <b>full reliability and stability of access </b>, as well as the possibility of technical support.<br /><br />You can learn more about connection methods on our <u><a href="https://stocksharp.com/products/pricing/" title="https://stocksharp.com/products/pricing/"><b>page</b></a></u>.<br /><br />