﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">trading systems. StockSharp</title>
  <id>https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=trading systems&amp;type=articles</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-04-07T10:29:46Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=trading systems&amp;type=articles" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/topic/10641/</id>
    <title type="text">Designer Knowledge Base</title>
    <published>2019-04-25T12:28:29Z</published>
    <updated>2024-09-23T18:11:16Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Trading robot coding" />
    <category term="Trading robots" />
    <category term="Trading systems" />
    <category term="trading" />
    <category term="FAQ" />
    <category term="exchange" />
    <category term="trading on the exchange" />
    <content type="html">Frequently asked questions about &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;Designer&lt;/a&gt;:&lt;br /&gt;1. &lt;a href="https://stocksharp.com/articles/10642/How-to-download-market-data-to-the-program/" title="https://stocksharp.com/articles/10642/How-to-download-market-data-to-the-program/"&gt;How to download market data to the program?&lt;/a&gt;&lt;br /&gt;2. How and where to specify an instrument for strategy backtesting?&lt;br /&gt;3. How to create a condition in the strategy?&lt;br /&gt;4. Compound indicators, methods of their decomposition.</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/14523/</id>
    <title type="text">Crypto index in crypto trading!</title>
    <published>2020-09-29T13:33:22Z</published>
    <updated>2020-10-16T21:45:04Z</updated>
    <author>
      <name>ILYA</name>
      <uri>https://stocksharp.com/users/127794/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Hydra" />
    <category term="Trading systems" />
    <category term="market data" />
    <category term="analysis" />
    <category term="trading" />
    <category term="markets" />
    <category term="bitcoin" />
    <category term="cryptocurrencies" />
    <category term="Bittrex" />
    <category term="Cryptoconnectors" />
    <category term="Crypto trading" />
    <category term="crypto" />
    <content type="html">&lt;b&gt;Crypto trading&lt;/b&gt; is a type of trading and therefore we should admit that as well as in classic trading, &lt;b&gt;crypto trading&lt;/b&gt; has its own &lt;b&gt;&lt;em&gt;&lt;u&gt;index&lt;/u&gt;&lt;/em&gt;&lt;/b&gt;. [wink]&lt;br /&gt;&lt;br /&gt;The index reflects the condition of market of crypto currencies, based on average market indicators. &lt;b&gt;As in classic trading, the index in crypto trading formed on data from the most liquid tokens. The amount of taken tokens displayed in the title. If there’s a number 10, then it includes 10 different crypto currencies&lt;/b&gt;. The change of every of these tokens &lt;b&gt;has a high effect&lt;/b&gt; on the index. [ninja]&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/116432/crypto-trading-index.jpg' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/116432/crypto-trading-index.jpg?size=800x800" alt="crypto-trading-index.jpg" title="crypto-trading-index.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;u&gt;The growth of the components of the index therefore the index will be rising. If the rate of crypto currencies is decreasing, then the index will be cheaper.&lt;/u&gt;&lt;/em&gt; [wink]&lt;br /&gt;&lt;b&gt;&lt;em&gt;&lt;u&gt;Index is kind of basket of several components&lt;/u&gt;&lt;/em&gt;&lt;/b&gt;. Crypto trader can choose which components he wants and monitor all of them. [happy]&lt;br /&gt;You might need an &lt;b&gt;&lt;u&gt;index chart &lt;/u&gt;&lt;/b&gt;to analyse the market. If the index is most common, then the chart will be shown in the appropriate resource.  &lt;br /&gt;But what if the index of trader portfolio investment is&lt;b&gt;&lt;em&gt;&lt;u&gt; individual&lt;/u&gt;&lt;/em&gt;&lt;/b&gt;? For creating such index, the &lt;a href="https://stocksharp.com/products/hydra/" title="https://stocksharp.com/products/hydra/"&gt;&lt;b&gt;&lt;em&gt;&lt;u&gt;Hydra&lt;/u&gt;&lt;/em&gt;&lt;/b&gt;&lt;/a&gt; program will be indispensable. &lt;b&gt;&lt;em&gt;&lt;u&gt;&lt;a href="https://stocksharp.com/products/hydra/" title="https://stocksharp.com/products/hydra/"&gt;Hydra&lt;/a&gt; can collect the volume of each assets, calculate, and build the necessary index, moreover you can use this index in other programs just by saving it in your desirable format.&lt;/u&gt;&lt;/em&gt;&lt;/b&gt;[love]&lt;br /&gt;The gotten index can give you detailed and comprehensive data of the market condition. Furthermore, to work with index will give traders the opportunity to analyse the market perspective and any assets. &lt;b&gt;The trader gets more effective system of crypto trading and therefore to get more benefits and reduce risk.&lt;/b&gt; [wink][love]&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/116433/crypto-market-analyses.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/116433/crypto-market-analyses.png?size=800x800" alt="crypto-market-analyses.png" title="crypto-market-analyses.png" /&gt;&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/11569/</id>
    <title type="text">S#.Designer is a simple way to start a successful trade.</title>
    <published>2020-03-31T19:05:01Z</published>
    <updated>2020-03-31T19:05:01Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Trading robot coding" />
    <category term="Trading robots" />
    <category term="Trading systems" />
    <category term="trading" />
    <category term="trading strategy" />
    <category term="trading robot constraction" />
    <content type="html">More recently, we have reviewed a program such as &lt;a href="https://stocksharp.com/products/shell/" title="https://stocksharp.com/products/shell/"&gt;Shell&lt;/a&gt; and the&lt;a href="https://stocksharp.com/products/api/" title="https://stocksharp.com/products/api/"&gt; API library&lt;/a&gt;.&lt;br /&gt;Of course, &lt;b&gt;mastering the skills of programming trading strategies opens up huge horizons for the user not only as a trader, but also as a Creator of trading robots for sale.&lt;/b&gt;&lt;br /&gt;However, not every user is interested in programming, and not every user is willing to spend time studying libraries.&lt;br /&gt;Not every trader wants to learn how to write custom trading robots and often wants to create trading strategies for themselves.&lt;br /&gt;Agree, it would be cool to have a program that can use ready-made components to create trading strategies.&lt;br /&gt;&lt;b&gt;S#&lt;/b&gt; understands this and has created a trading robot constructor that allows you to&lt;b&gt; create trading robots using dice-&lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;Designer&lt;/a&gt;&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/112115/trade-system.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/112115/trade-system.png?size=800x800" alt="trade-system.png" title="trade-system.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now many people will start thinking: &lt;b&gt;&amp;quot;What is it good for?&amp;quot;&lt;/b&gt;.&lt;br /&gt;&lt;b&gt;Actually -.&lt;/b&gt;&lt;br /&gt;&lt;em&gt;&lt;b&gt;First&lt;/b&gt;, it is more intuitive, meaning that it is easier for the user to navigate the program interface.&lt;br /&gt;&lt;b&gt;Secondly&lt;/b&gt;, the program is completely free, which allows the user to start working with it without investing a penny!&lt;br /&gt;&lt;b&gt;Third&lt;/b&gt;, the program integrates with all our products, such as &lt;a href="https://stocksharp.com/products/hydra/" title="https://stocksharp.com/products/hydra/"&gt;Hydra&lt;/a&gt;, and moreover, it is able to download market data itself.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/112114/market-data-download.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/112114/market-data-download.png?size=800x800" alt="market-data-download.png" title="market-data-download.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;In General, the ability to download market data yourself is a huge advantage.&lt;/b&gt;&lt;br /&gt;The user can use not several programs, but one to test the created trading strategies.&lt;br /&gt;The interface is intuitive, and makes it easy to adapt to the user&amp;#39;s environment.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/112113/trading-strategy-market-data.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/112113/trading-strategy-market-data.png?size=800x800" alt="trading-strategy-market-data.png" title="trading-strategy-market-data.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;What is a Designer?&lt;/u&gt;&lt;br /&gt;&lt;b&gt;Designer is a completely unique program.&lt;/b&gt; It differentiates strategy elements into the simplest elements, as in the constructor, and allows you to assemble a trading strategy from these elements.&lt;br /&gt;The large functionality of dice allows you to create the simplest and most complex trading strategies. All you need from the user is to select the strategy functionality.&lt;br /&gt;Cubes are divided into sections that include groups of cubes for the user&amp;#39;s convenience. This allows to improve the understanding and interface of the program. However, the program prevents errors from occurring at the strategy design stage. in other words, if a cube contains data of one type, it will not transmit data to a cube with data of another type, which helps avoid errors.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/112112/trading-systems.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/112112/trading-systems.png?size=800x800" alt="trading-systems.png" title="trading-systems.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This means that the user does not waste time identifying the causes of the error at the program development stage.&lt;br /&gt;In General, the development stage is a separate Chapter. At this stage, the user is provided with all the tools for working out their strategy, from the functionality of dice, to the ability to integrate their elements and analyze the progress of strategy development step by step.&lt;br /&gt;Back test is a convenient function implemented in the program. Step-by-step review of strategy execution using the stop button allows you to detect an error at any stage. Of course - this saves time, which in turn reduces the user&amp;#39;s expenses.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/112116/trading-robot.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/112116/trading-robot.png?size=800x800" alt="trading-robot.png" title="trading-robot.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;More experienced users can create their own elements in&lt;b&gt; C#&lt;/b&gt;. All you will need to do is create your own element, where the user saves their code. These elements and strategies in General work much faster than strategies written in the visual designer, which gives the user an incentive to develop at the same time, without changing the convenient development environment.&lt;br /&gt;The advantage of strategies in &lt;b&gt;C#&lt;/b&gt; is not limited when creating them.you can describe any algorithm and add standard operation cubes to it if you want. The strategy creation process takes place directly in &lt;b&gt;S#.Designer &lt;/b&gt;or &lt;b&gt;C#&lt;/b&gt; development environment (the most popular development environment is &lt;b&gt;Microsoft Visual Studio&lt;/b&gt;), using the library for professional development of trading robots in &lt;b&gt;C#&lt;/b&gt; and &lt;b&gt;S#.API&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/112111/prigramming-code-trading-strategy.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/112111/prigramming-code-trading-strategy.png?size=800x800" alt="prigramming-code-trading-strategy.png" title="prigramming-code-trading-strategy.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Speaking of &lt;em&gt;Designer&lt;/em&gt;, we can say that it is a progressive product. The ability to include your own codes in software solutions allows you to expand the range of Designer applications. The possibility of testing reduces the potential risk. The ability to download and use it for free-makes the product available to anyone.&lt;br /&gt;It just remains to start working</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/11471/</id>
    <title type="text">Pyramiding in trading</title>
    <published>2020-03-10T22:39:46Z</published>
    <updated>2020-03-10T22:39:46Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Trading systems" />
    <category term="trading" />
    <category term="forex" />
    <category term="Trader" />
    <category term="trading robot" />
    <category term="pyramiding" />
    <category term="crypto trend" />
    <category term="trading strategies" />
    <content type="html">Earlier in the articles, we considered such mechanisms used in trading as &lt;b&gt;Stop-Loss&lt;/b&gt; and &lt;b&gt;Take Profit&lt;/b&gt;.&lt;b&gt; Of course, these two tools help reduce the risk and increase the profitability of the strategy&lt;/b&gt;. But what if, because of them, we limit ourselves to getting more profit?&lt;br /&gt;To understand how this can be done, you need to consider &lt;b&gt;Pyramiding&lt;/b&gt;.&lt;br /&gt;What is &lt;b&gt;pyramiding - оne of the types of strategy aimed at increasing capital by step-by-step opening of several transactions with a favorable trend&lt;/b&gt;. Using this strategy allows the trader to get a stable income.&lt;br /&gt;Let&amp;#39;s consider the principle of pyramiding.&lt;br /&gt;The essence of pyramiding is that after the profitable result of the last transaction, the trader opens a new position, while doubling the bid, compared to the previous one. As for the risk arising from the next bid, it is equal to the sum of the profit of the previous stage and the initial bid. At the same time, the amount of profit depends on the so-called &amp;quot;steps&amp;quot; of pyramiding, and it grows exponentially.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111744/Buy-order-pirammiding.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111744/Buy-order-pirammiding.png?size=800x800" alt="Buy-order-pirammiding.png" title="Buy-order-pirammiding.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pyramiding is applicable in any market – stock, currency, and others.&lt;/b&gt; The trader adds a new position to the previous effective one, if the trend direction is profitable for him.&lt;br /&gt;If the trader&amp;#39;s actions are calculated correctly, he will always be in profit. The use of various trading robots also contributes to a more convenient use of pyramiding. For example, &lt;a href="https://stocksharp.com/robot/12/mister-haid/" title="https://stocksharp.com/robot/12/mister-haid/"&gt;&amp;quot;Mr. Hyde&amp;quot; &lt;/a&gt;from StockSharp, which in automatic mode and flexible configuration can trade in pyramiding mode.&lt;br /&gt;An important point is that the trader must be sure that the trend is stable, otherwise it can lead to losses. However, the use of automated programs, such as &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;Designer&lt;/a&gt;, which use &lt;a href="https://doc.stocksharp.com/html/6974891d-4c8d-46e1-bdeb-fc7391bc0625.htm" title="https://doc.stocksharp.com/html/6974891d-4c8d-46e1-bdeb-fc7391bc0625.htm"&gt;condition cubes and position protection&lt;/a&gt;, makes trading with pyramiding minimally risky. An example of this strategy is shown below.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111745/stop-loss-strategy.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111745/stop-loss-strategy.png?size=800x800" alt="stop-loss-strategy.png" title="stop-loss-strategy.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Let&amp;#39;s consider the basic rules of pyramiding.&lt;/u&gt;&lt;br /&gt;&lt;em&gt;-&lt;b&gt; Constantly monitor the ratio of return and risk within 1 to 2&lt;/b&gt;, so that the previous yield can cover the current risk.&lt;br /&gt;- &lt;b&gt;All parameters used during trading must be calculated in advance before entering the market.&lt;/b&gt;&lt;br /&gt;- &lt;b&gt;Use pyramiding only on a stable trend&lt;/b&gt;.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Let&amp;#39;s look at an example of using pyramiding.&lt;/u&gt;&lt;br /&gt;Let the trader have a capital of $10,000. At each main level, it can buy 10,000 units of the selected currency. In the Forex market, this is 1 mini lot. The amount of profit at each stage will differ, however, the size of the set Stop-Loss for each opened transaction will be equal to 50 points.&lt;br /&gt;So, the trader buys 10,000 units of the base currency. Let&amp;#39;s assume that the market situation is shown in the figure.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111743/stop-loss-order-transfer.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111743/stop-loss-order-transfer.png?size=800x800" alt="stop-loss-order-transfer.png" title="stop-loss-order-transfer.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The price rises and breaks through the resistance level, now this level becomes the support level.&lt;br /&gt;Let a bullish pin bar be formed at the support level (a graphical analysis figure based on the non-indicator method of trading, as well as the analysis of Price Action charts), in consequence of which the trader decides to buy 10,000 units of currency. When a trade is opened, the trader sets the Stop-Loss at 50 points or 1% of the risk of capital.&lt;br /&gt;&lt;br /&gt;This way the trend keeps its direction, and the trader trades further. The trend breaks the next level, and the price is set above the support level, and the trader buys another 10,000 units, and the previous Stop-Loss is transferred to the new level.&lt;br /&gt;The same situation is when the price breaks the third level&lt;br /&gt;&lt;br /&gt;Thus, the trader accumulates a long position of 30,000 units of the main currency by the third stage. There is almost no risk, since at the third stage, when a deal is concluded for 10,000 units, the profit will be &lt;b&gt;4%&lt;/b&gt; if the trend reverses.&lt;br /&gt;&lt;br /&gt;The potential profit, with a successful outcome, can be &lt;b&gt;12%&lt;/b&gt;.&lt;br /&gt;&lt;u&gt;Let&amp;#39;s look at this example in numbers.&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111746/stop-loss-order-trade.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111746/stop-loss-order-trade.png?size=800x800" alt="stop-loss-order-trade.png" title="stop-loss-order-trade.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It is important to see how the possible profit increases from each stage to the next, while reducing the risk&lt;br /&gt;The trader&amp;#39;s first trade will bring him a profit of 6% of the initial capital.&lt;br /&gt;&lt;u&gt;Consider all the situations in the market:&lt;/u&gt;&lt;br /&gt;-&lt;b&gt; First transaction&lt;/b&gt;: 10,000 units&lt;br /&gt;&lt;em&gt;Negative: there was a -1% loss&lt;br /&gt;Positive result: +6% in profit&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;- &lt;b&gt;Second transaction&lt;/b&gt;: 10,000 units&lt;br /&gt;&lt;em&gt;Negative result: no loss (+2%in profit from the first stage and -1% in loss from the second)&lt;br /&gt;Positive result: +10% in profit (+6% in profit from the first stage and +4% in profit from the second)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;- &lt;b&gt;Third transaction&lt;/b&gt;: 10,000 units&lt;br /&gt;&lt;em&gt;Negative result: +4% in profit (+3%in profit from the first stage, +2% in profit from the second stage and -1% in loss from the third)&lt;br /&gt;Positive result: +12% in profit (+6% in profit from the first stage, +4% in profit from the second stage and +2% in profit from the third)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;As you can see, the risk is about 1%, while with positive trading of all three stages, the profit will be 12%&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Main advantages and disadvantages of building:&lt;/u&gt;&lt;br /&gt;&lt;b&gt;Plus:&lt;/b&gt;&lt;br /&gt;- &lt;em&gt;Pyramiding strategy allows you to increase your income with minimal risk;&lt;/em&gt;&lt;br /&gt;&lt;b&gt;Minus:&lt;/b&gt;&lt;br /&gt;- &lt;em&gt;The strategy is quite complex and requires experience. It is possible to use the strategy for medium or long periods of time, preferably using automated trading systems. The correct calculation of the exit point from pyramiding, analysis and testing of the trend behavior is of great importance, which necessarily leads to the use of trading robots. Pyramiding is not suitable for scalping strategies, and is also aimed at long-term trading.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pyramiding is a profitable and relatively safe method of trading. Its reliability has a downside in the duration of the process, the accumulation of sufficient experience and knowledge in trading that would correctly calculate the levels of trade. Also, this type of trading is not suitable for all traders, so choosing it as the main one should be conscious.&lt;/b&gt;</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/11449/</id>
    <title type="text">What is Stop-Loss and Take Profit?</title>
    <published>2020-03-03T11:53:25Z</published>
    <updated>2020-03-03T11:53:25Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <category term="Trading robots" />
    <category term="Trading systems" />
    <category term="trading" />
    <category term="StopLossStrategy" />
    <category term="trading strategy" />
    <category term="stop-loss" />
    <category term="take profit" />
    <category term="limit order" />
    <category term="HFT trade" />
    <content type="html">&lt;b&gt;Stop-Loss-a type of order whose task is to set limits on possible trading losses.&lt;/b&gt;&lt;br /&gt;This order is &lt;b&gt;used automatically using automated trading systems&lt;/b&gt;, which we will discuss later. The essence is very simple: with the help of the &lt;b&gt;Stop-Loss mechanism, when the set price level of the purchased asset (instrument) is reached, the position is closed&lt;/b&gt;. In fact, &lt;b&gt;Stop-Loss insures the trader from an unplanned price drop&lt;/b&gt;.&lt;br /&gt;This restriction mechanism is widely used for traders. It is used by experienced participants in the financial market, but novice traders often neglect this mechanism, although for them Stop-loss is almost the main method of saving their funds in a positive balance.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111684/stop-loss-order-trade.jpg' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111684/stop-loss-order-trade.jpg?size=800x800" alt="stop-loss-order-trade.jpg" title="stop-loss-order-trade.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Stop-Loss&lt;/b&gt;, from a technical point of view, &lt;b&gt;is a regular pending order that has an activation mechanism when the set price level of the asset is reached.&lt;/b&gt; The difference between the two types of pending orders is that when using a regular pending order, a new deal is opened, and when using a Stop loss, an existing one is closed.&lt;br /&gt;&lt;br /&gt;As mentioned earlier, an important advantage of Stop-Loss Is the automation of the process, which eliminates the need to track price changes and make a decision manually. Of course, this reduces trading losses and time, which is fundamental for high-frequency algorithmic trading (HFT).&lt;br /&gt;For example, in the program for creating trading robots &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;Designer&lt;/a&gt;, it is possible to use the Stop-Loss mechanism by using the &lt;a href="https://doc.stocksharp.com/html/49d3744f-77c5-40ee-a4c2-4d7b08125712.htm" title="https://doc.stocksharp.com/html/49d3744f-77c5-40ee-a4c2-4d7b08125712.htm"&gt;position protection cube&lt;/a&gt;, which can be configured and used as a reliable tool for reducing losses.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111685/stop-loss-protection-trading.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111685/stop-loss-protection-trading.png?size=800x800" alt="stop-loss-protection-trading.png" title="stop-loss-protection-trading.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The use of the Stop-Loss pending order mechanism is widely used to reduce trading costs caused by losses&lt;/b&gt;. As a result, this leads to an increase in profits, not only by increasing the volume of successful operations, but also by reducing the volume of unprofitable ones. The &lt;b&gt;use of this tool in trading strategies is now increasingly used, as it reduces losses, increasing the amount of profit at a constant (regulated) amount of transaction costs&lt;/b&gt;. Example of a trading strategy executed in the &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;Designer&lt;/a&gt; program.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111686/Stop-Loss-trade-strategy-robot.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111686/Stop-Loss-trade-strategy-robot.png?size=800x800" alt="Stop-Loss-trade-strategy-robot.png" title="Stop-Loss-trade-strategy-robot.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;So, the main advantages that are inherent in a pending Stop-Loss order:&lt;/u&gt;&lt;br /&gt;&lt;em&gt;- Using a pending&lt;b&gt; Stop-Loss order in trading strategies allows you to limit losses&lt;/b&gt; on a single trade by setting the loss level that is set by the trader himself, which makes the trading strategy more flexible and less risky.&lt;br /&gt;- The use of &lt;b&gt;this pending order insures the trader from an unpredictable situation in the market&lt;/b&gt;, in which the asset value may collapse, thereby protecting the user of the trading strategy from losing capital.&lt;br /&gt;- Regulation of possible losses also has a &lt;b&gt;positive effect on the trader&amp;#39;s emotional state&lt;/b&gt;, preserving his nerves and psychological health.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;There are a lot of reasons in the market that can cause a loss, and the frequency of their occurrence is unpredictable. However, the use of Stop-Loss allows you to protect yourself, make trading more convenient, limit risk, maximize profit, reduce the time to work with a trading strategy, and reduce the risk to emotional health.&lt;br /&gt;An important point for working with a pending Stop-Loss order is to calculate the correct order level.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;When placing an order, you need to know the following:&lt;/u&gt;&lt;br /&gt;&lt;em&gt;- First of all, a &lt;b&gt;Stop-Loss order is a conditional order&lt;/b&gt; that is executed when the set price level is reached.&lt;br /&gt;- &lt;b&gt;The application consists of two parts&lt;/b&gt;: the application and the condition for its execution (conditions that are edited by the trader, and when a new condition is set, the old conditions are canceled).&lt;br /&gt;- The &lt;b&gt;request is located on the broker&amp;#39;s server,&lt;/b&gt; through which the trade is carried out, and is sent only when the necessary condition is reached.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Let&amp;#39;s look at the most well-known methods of working with Stop Loss:&lt;/u&gt;&lt;br /&gt;&lt;em&gt;&lt;b&gt;- Fixed Stop-Loss:&lt;/b&gt;&lt;br /&gt;The trader sets the value in the tool settings equal to the number of points from the initial price of the asset to open the order.&lt;br /&gt;&lt;b&gt;- Flexible Stop-Loss:&lt;/b&gt;&lt;br /&gt;A more flexible method that takes the result of market analysis (minimum and maximum prices for an asset for a period, price change charts, and other analysis tools) as the basis for setting the opening price value. This is a more complex, but more reliable method than the previous one.&lt;br /&gt;&lt;b&gt;- Break-even trading:&lt;/b&gt;&lt;br /&gt;A rather complex method aimed at dynamically changing the set Stop-Loss level by moving the set value from the drawdown area to the guaranteed profit area at a time when the price has already changed significantly in the set direction.&lt;br /&gt;&lt;b&gt;- Trailing stop:&lt;/b&gt;&lt;br /&gt;A more advanced method of the previous method, which involves automatic means of transferring the Stop-Loss level.&lt;br /&gt;&lt;b&gt;- Trend:&lt;/b&gt;&lt;br /&gt;We will devote a separate article to this method and analyze it later.&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;b&gt;Let&amp;#39;s add a few more words and talk about Take Profit.&lt;/b&gt;&lt;br /&gt;Just like Stop-Loss, &lt;b&gt;Take Profit is a pending order&lt;/b&gt; aimed at fixing profits. When the asset price reaches the price set by the trader, the order is executed, and the trader makes a profit by closing the position.&lt;br /&gt;The level of execution of Take Profit is set by the trader himself, and as in the case of Stop-Loss, it is often used with the use of automated trading systems, trading robots and trading systems.&lt;br /&gt;This type of order - limit, is executed only when the asset price reaches a predetermined level.&lt;br /&gt;&lt;u&gt;There are two types of &amp;quot;entry into a position&amp;quot; - the beginning of trading operations:&lt;/u&gt;&lt;br /&gt;&lt;em&gt;- &lt;b&gt;Long position&lt;/b&gt; (long, long, buy) - purchase request;&lt;br /&gt;- &lt;b&gt;Short position&lt;/b&gt; (short, short, sell) - request for sale.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;If we start trading with a purchase&lt;/b&gt;, we set the take Profit order execution level above the asset purchase price.&lt;br /&gt;&lt;b&gt;If we start trading with a sale&lt;/b&gt;, we set the take Profit order execution level below the asset&amp;#39;s sale price.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/111687/take-profit-sell-buy-order.jpg' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/111687/take-profit-sell-buy-order.jpg?size=800x800" alt="take-profit-sell-buy-order.jpg" title="take-profit-sell-buy-order.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;In conclusion, it is worth mentioning the ratio of the orders considered.&lt;/b&gt;&lt;br /&gt;Using both orders reduces the risk of loss and increases profit. The use of both of these orders in each of the trading situations is purely individual, it is impossible to say unequivocally what is most applicable, what is least. The level of use of pending orders is determined by the trader, in relation to each situation and trading strategy separately. &lt;b&gt;However, the combination of techniques with the use of pending orders and trading robots makes it possible to facilitate the work of the trader, makes it possible to concentrate on analysis, reducing the time to track the situation on the stock market.&lt;/b&gt;</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/11383/</id>
    <title type="text">Arbitrage trading. Principles, types.</title>
    <published>2020-02-04T18:52:36Z</published>
    <updated>2020-02-04T18:53:24Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <category term="Trading systems" />
    <category term="trading" />
    <category term="cryptocurrency" />
    <category term="exchange" />
    <category term="trading strategy" />
    <category term="trade" />
    <category term="trading robot" />
    <category term="Crypto trading" />
    <category term="arbitration robot" />
    <category term="arbitration strategy" />
    <content type="html">&lt;div align="center"&gt;&lt;b&gt;What is Arbitration, general concepts.&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Recently, the concept of &lt;b&gt;Arbitration&lt;/b&gt; has been found quite often in trade. What is &lt;b&gt;Arbitration&lt;/b&gt;?&lt;br /&gt;&lt;b&gt;Arbitration &lt;/b&gt;is a &lt;b&gt;method of profit that minimizes the risk&lt;/b&gt; of loss by using the price difference for the same asset in different markets.&lt;br /&gt;&lt;b&gt;Today, this mode of trade is a commonly used trade tactic.&lt;/b&gt;&lt;br /&gt;Let us consider what this mode of trade consists of.&lt;br /&gt;The point is to sell the same &lt;b&gt;asset at a higher price&lt;/b&gt; in one market and &lt;b&gt;purchase the same asset at a lower price&lt;/b&gt; in another market.&lt;br /&gt;Such trade is one of the most important components of the market, and most traders seek to conduct such trade, effectively reducing the &lt;b&gt;possibility of loss to a minimum&lt;/b&gt;.&lt;br /&gt;Although the nature of &lt;em&gt;arbitration consists&lt;/em&gt; of price differences of one asset in different markets, this strategy can be applied to two assets with similar prices and portfolio volume.&lt;br /&gt;Consider what the arbitration portfolio is and its properties:&lt;br /&gt;- &lt;em&gt;Arbitration portfolio&lt;/em&gt; - portfolio of assets, &lt;b&gt;which does not require additional resources of the investor.&lt;/b&gt;&lt;br /&gt;- &lt;em&gt;The arbitration portfolio&lt;/em&gt; is &lt;b&gt;not influenced by any factor, that is, has zero risk&lt;/b&gt;.&lt;br /&gt;In fact, for an investor, an arbitration portfolio is a tool that allows it to receive a large return, while remaining unaffected by various risks.&lt;br /&gt;&lt;b&gt;A simple example of arbitration trade:&lt;/b&gt;&lt;br /&gt;Suppose the value of asset A on one of the exchanges is $100, while the value of the same asset on the other exchange is $105.&lt;br /&gt;A trader acquires an asset on one exchange, where its value is lower, and sells it on an exchange, where the value of it is higher. Thanks to this strategy, the trader gains profit, in the form of price differences of asset A on various exchanges.&lt;br /&gt;This example is quite simplified, and is given only for the sake of clarity, in real trade the implementation of such transactions has its own difficulties.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;div align="center"&gt;Choice of pair in arbitration.&lt;/div&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let us once again define &lt;b&gt;Arbitration Trade&lt;/b&gt; based on practical knowledge of it.&lt;br /&gt;&lt;b&gt;Arbitration trading&lt;/b&gt; is a method in which trading is carried out by means of differently directed transactions with an asset or assets &lt;b&gt;having similar prices and portfolios&lt;/b&gt;, &lt;b&gt;based on the difference in their value&lt;/b&gt;. In fact, the &lt;b&gt;trader buys a cheaper asset and sells a more expensive asset similar to the first asset.&lt;/b&gt;&lt;br /&gt;Often, the arbitration pair selects a base and derivative asset (for example, &lt;b&gt;shares and stock futures&lt;/b&gt;). Both assets should have similar price dynamics - &lt;em&gt;correlation&lt;/em&gt;.&lt;br /&gt;However, &lt;b&gt;correlation&lt;/b&gt; has the property of being broken for various reasons.&lt;br /&gt;Such reasons can be related to various serious market changes and to the consequence of market inefficiency. Emerging &lt;em&gt;correlation&lt;/em&gt; violations contribute to profit in arbitration transactions. In fact, the trader profits when the correlation of the underlying and derived asset is restored, after its violation.&lt;br /&gt;Simply put, an &lt;b&gt;arbitration transaction&lt;/b&gt; occurs when buying a cheap asset and selling an expensive asset when there is a difference between their prices in view of various factors. However, for the rest of the time, the prices of both assets tend to be equivalent.&lt;br /&gt;&lt;a href='https://stocksharp.com/file/110499/Stocks-exchange-arbitrage.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/110499/Stocks-exchange-arbitrage.png?size=800x800" alt="Stocks-exchange-arbitrage.png" title="Stocks-exchange-arbitrage.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;div align="center"&gt;Types of arbitration trade.&lt;/div&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let &amp;#39;s look at what types of arbitration are distinguished in trading:&lt;br /&gt;- &lt;em&gt;Time arbitration;&lt;/em&gt;&lt;br /&gt;- &lt;em&gt;Spatial arbitration.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Temporary arbitration&lt;/em&gt; implies that transactions occur with a time difference. This type of arbitration is &lt;b&gt;characterized by a mechanism: buy cheap, and sell expensive&lt;/b&gt;, or vice versa, sell expensive, and buy cheap. To put it simply, such a mechanism is actually - a common speculative transaction m&lt;b&gt;ade on the stock exchange market&lt;/b&gt;.&lt;br /&gt;&lt;b&gt;Temporary arbitration contains a risk&lt;/b&gt;, as &lt;b&gt;during the period of time the trend may not change the direction&lt;/b&gt; of movement, that is, if the trader initially bought the asset for cheap, it is not a fact that after time the asset will not cease to be cheap, thus bringing a loss on sale.&lt;br /&gt;The next type of &lt;b&gt;arbitration is spatial&lt;/b&gt;. With this type of arbitration, a couple of &lt;b&gt;transactions are bought and sold at the same time but at different sites.&lt;/b&gt; In such transactions &lt;b&gt;risk is minimal&lt;/b&gt;, and sometimes at all reduced to zero, as a couple of transactions take place simultaneously, at the same time the trader should take into account not only the difference in the price of the asset, but also possible commissions, which should be included in the expenses and covered by the amount of profit.&lt;br /&gt;In addition to the types of transaction time, arbitration is divided into trading methods. Let &amp;#39;s look at the main ones and explain them.&lt;br /&gt;&lt;b&gt;Spatial arbitration&lt;/b&gt; is divided into the following types:&lt;br /&gt;- &lt;em&gt;Equivalent arbitration&lt;/em&gt;;&lt;br /&gt;- &lt;em&gt;Regulatory arbitration&lt;/em&gt;;&lt;br /&gt;- &lt;em&gt;Calendar arbitration&lt;/em&gt;;&lt;br /&gt;- &lt;em&gt;Percentage arbitration&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Equivalent arbitration&lt;/b&gt; refers to such transactions in which the &lt;b&gt;underlying asset and derivative asset (derivative) are considered.&lt;/b&gt; Since the price of a derivative always strives for the price of a basic asset, price schedules go alongside each other, sometimes intersecting and diverging.&lt;br /&gt;If we simultaneously open equidistant positions on the selected asset and its derivative, when they have the maximum divergence, then closing the position when they converge will make a profit.&lt;br /&gt;&lt;b&gt;Regulatory arbitration&lt;/b&gt; is based on the&lt;b&gt; difference in price caused by different rules in different jurisdictions&lt;/b&gt; (areas, countries, unions). &lt;br /&gt;&lt;b&gt;For example&lt;/b&gt;: due to certain legislation, an asset in one region is sold with a markdown, and its price is correlated with prices in other regions, differing by a stable markdown difference. In this way, by purchasing an asset in one region and selling it in another, you can earn a profit in the amount of a markdown.&lt;br /&gt;&lt;b&gt;Calendar arbitration&lt;/b&gt; is based on the &lt;b&gt;difference in price arising between futures on the same asset but having different delivery times. &lt;/b&gt;This difference is called a calendar spread. The subsequent trading mechanism is similar to the equivalent arbitration method.&lt;br /&gt;The last type is interest arbitration. This arbitration takes place on the foreign exchange market (Forex), and there are two types:&lt;br /&gt;- &lt;em&gt;No forward coverage&lt;/em&gt;;&lt;br /&gt;- &lt;em&gt;With forward cover&lt;/em&gt;.&lt;br /&gt;The essence of arbitration is that the currency is bought and placed on a deposit with a set percentage. The currency is then sold at the current market rate. If the currency purchase occurs with the sale of a forward contract for the same amount, arbitration with forward coverage. With this type of risk is minimal, and for frequent absence.&lt;br /&gt;If the purchase is made without forward support, arbitration without forward coverage. Such arbitration may be accompanied by a large risk based on a change in exchange value, which may result in a loss that is greater than the percentage of income on the deposit.&lt;br /&gt;&lt;b&gt;Triangular arbitration&lt;/b&gt; is also common in the Forex market. Let &amp;#39;s look at it with an example:&lt;br /&gt;The trader buys &lt;b&gt;EUR/USD&lt;/b&gt;, sells &lt;b&gt;EUR/GBP&lt;/b&gt; at the same time, and buys &lt;b&gt;USD/GBP&lt;/b&gt;. An equilibrium triangular contour is created. It turns out that the trader bought Euro for dollars, sold Euro for Pounds, Bought Dollars for Pounds. Thus, a closed chain is obtained, on the imbalance of which profit is made.The scheme of such arbitration is shown below:&lt;br /&gt;&lt;a href='https://stocksharp.com/file/110500/Arbitrage-Forex-Trade.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/110500/Arbitrage-Forex-Trade.png?size=800x800" alt="Arbitrage-Forex-Trade.png" title="Arbitrage-Forex-Trade.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;b&gt;Conclusions&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Arbitration trade&lt;/b&gt; has gained a lot of recognition among traders. A large number of approaches to solving the problems of &lt;b&gt;arbitration trade&lt;/b&gt;, a large number of methods used to implement the tasks make this kind very flexible, and the absence of risk or its minimum value further popularizes it.&lt;br /&gt;However, it is worth saying that the strategies of arbitration to direct, are related to the rate of reaction of the trader to changes in the asset. This leads to various requirements that promote successful trade:&lt;br /&gt;- &lt;b&gt;Fractions of a second play a major role in arbitration strategies.&lt;/b&gt; Therefore, such&lt;b&gt; trading systems require good software&lt;/b&gt;. It can be represented by ready-made trading robots. For example, StockSharp offers the robot &lt;a href="https://stocksharp.com/robot/18/edward-scissorhands/" title="https://stocksharp.com/robot/18/edward-scissorhands/"&gt;&amp;quot;Edward&amp;quot;&lt;/a&gt;, which allows you to work using the trader&amp;#39;s&lt;b&gt; arbitrage strategy&lt;/b&gt; and is capable of quick and &lt;b&gt;flexible configuration.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;High-quality &lt;/b&gt;&lt;b&gt;software&lt;/b&gt; is especially important when working for&lt;b&gt; Forex&lt;/b&gt;, as the number of traders is high. Therefore, many prefer an individual approach and create trade robots on their own through various programs. Trading robots are mostly written in powerful &lt;em&gt;C# &lt;/em&gt;or &lt;em&gt;C++&lt;/em&gt; languages, using libraries such as &lt;a href="https://stocksharp.com/products/api/" title="https://stocksharp.com/products/api/"&gt;S#.API&lt;/a&gt; and &lt;em&gt;Interactive Brokers API&lt;/em&gt;.&lt;br /&gt;Recent years have also received designers of trade strategies &lt;em&gt;TSlab&lt;/em&gt; and &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;S#.Designer&lt;/a&gt;, which allow to create trade robots without programming.Below is an example of a trading robot created using S#.Designer, the graph shows the moment of divergence of assets and their convergence with the subsequent transaction by the robot.&lt;br /&gt;&lt;a href='https://stocksharp.com/file/110497/arbitrage-trading-exchange-stock.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/110497/arbitrage-trading-exchange-stock.png?size=800x800" alt="arbitrage-trading-exchange-stock.png" title="arbitrage-trading-exchange-stock.png" /&gt;&lt;/a&gt;&lt;br /&gt;Application of the latest software leads to reduction of risks and improvement of the mechanism of work and as a result to increase of profit.&lt;br /&gt;- &lt;b&gt;It is important to remember that the strategy, even if there is perfect software, is profitable, if the income will exceed the possible risk and all broker commissions.&lt;/b&gt;&lt;br /&gt;- &lt;b&gt;It is worth remembering even using a trading robot, the risk can not always be reduced, so the trader must constantly manage his strategy, improve his tools and his knowledge. &lt;/b&gt;Learning new principles that can be applied in trading can make a trader a pioneer in making profits.&lt;br /&gt;It is necessary to know that arbitration strategies can and should be combined with other types of exchange trade, which will give additional opportunities in income generation.&lt;br /&gt;</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/11355/</id>
    <title type="text">FAQ on Aalgorithmic trading. The history of algorithmic trading.</title>
    <published>2020-01-27T15:09:19Z</published>
    <updated>2020-01-27T15:10:10Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <category term="Trading systems" />
    <category term="trading" />
    <category term="cryptocurrency" />
    <category term="trading strategy" />
    <category term="trade" />
    <category term="exchange trade" />
    <category term="trading robot" />
    <category term="Crypto trading" />
    <content type="html">The start and emergence of &lt;b&gt;algorithmic trading&lt;/b&gt; can be considered the 98th year of the last century, when the us securities Commission (abbreviated &lt;em&gt;SEC&lt;/em&gt;), decided on the possibility of using &lt;b&gt;electronic trading platforms&lt;/b&gt;, and as a result, the use of &lt;b&gt;trading robots&lt;/b&gt; for algorithmic trading.&lt;br /&gt;&lt;a href='https://stocksharp.com/file/110448/HFT-trading-robot.jpg' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/110448/HFT-trading-robot.jpg?size=800x800" alt="HFT-trading-robot.jpg" title="HFT-trading-robot.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;All this gave rise to a leap in technology in the field of trade. &lt;br /&gt;There are several periods that are particularly important:&lt;br /&gt;- &lt;b&gt;the beginning of the 2000s&lt;/b&gt;, this period of technology allowed you to &lt;b&gt;make automatic transactions&lt;/b&gt; in a few seconds, despite the low speed it was a breakthrough, according to the &lt;em&gt;SEC&lt;/em&gt; calculation, robots account for less than &lt;b&gt;8% of transactions&lt;/b&gt;.&lt;br /&gt;- &lt;b&gt;the end of the 2000s&lt;/b&gt; was characterized by an increase in the &lt;b&gt;speed of transactions up &lt;/b&gt;to milliseconds, during this period the number of transactions made by &lt;b&gt;trading robots exceeded 55-60%&lt;/b&gt;.&lt;br /&gt;-&lt;b&gt; late period since 2010&lt;/b&gt;, the number of use of trading robots has decreased, and &lt;b&gt;amounted to about 45-50%&lt;/b&gt;. Experts attribute the decline in usage to an increased number of errors and failures of &lt;b&gt;trading robots&lt;/b&gt;.&lt;br /&gt;Today, &lt;b&gt;algorithmic trading&lt;/b&gt; (&lt;em&gt;HFT trading&lt;/em&gt;) is one of the most important components of exchange trading. Not only private traders, but also large companies-invest. banks and funds use trading robots in their work.&lt;br /&gt;&lt;a href='https://stocksharp.com/file/110447/algorithmic-trading.jpg' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/110447/algorithmic-trading.jpg?size=800x800" alt="algorithmic-trading.jpg" title="algorithmic-trading.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;The annual investment of companies in the development of tools for &lt;b&gt;algorithmic trading&lt;/b&gt; is growing, and the result of such developments brings its own income. &lt;br /&gt;&lt;em&gt;StockSharp&lt;/em&gt; has been &lt;b&gt;providing traders&lt;/b&gt; with all the necessary&lt;b&gt; tools for algorithmic trading &lt;/b&gt;for many years, starting with &lt;a href="https://stocksharp.com/products/pricing/#hft" title="https://stocksharp.com/products/pricing/#hft"&gt;connectors&lt;/a&gt; for &lt;b&gt;exchange trading&lt;/b&gt; and ending with &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;software&lt;/a&gt; that allows them to work on all &lt;b&gt;trading platforms around the world&lt;/b&gt;. &lt;br /&gt;You can find more information about the list on our &lt;a href="https://stocksharp.com/" title="https://stocksharp.com/"&gt;website&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/11274/</id>
    <title type="text">FAQ on Algorithmic trading. What is Algorithmic trading?</title>
    <published>2019-12-24T15:37:52Z</published>
    <updated>2019-12-24T15:41:26Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Algorithmic trading" />
    <category term="Trading systems" />
    <category term="trading" />
    <category term="cryptocurrency" />
    <category term="trading strategy" />
    <category term="trade" />
    <category term="exchange trade" />
    <category term="trading robot" />
    <category term="Crypto trading" />
    <category term="trade advisor" />
    <content type="html">The concept of &lt;b&gt;algorithmic trading&lt;/b&gt; there are two values:&lt;br /&gt;- &lt;b&gt;Algotrading&lt;/b&gt; -an &lt;b&gt;automatic system &lt;/b&gt;that allows you to &lt;b&gt;open trades&lt;/b&gt; within the created algorithm, without the participation of a trader;&lt;br /&gt;- &lt;b&gt;Algorithmic trading&lt;/b&gt; – a &lt;b&gt;method &lt;/b&gt;of execution of a large order, in which the order is automatically divided into parts, and is submitted consistently according to the &lt;b&gt;established rules&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/110311/algo-trading-stock.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/110311/algo-trading-stock.png?size=800x800" alt="algo-trading-stock.png" title="algo-trading-stock.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the first case, &lt;b&gt;algorithms&lt;/b&gt; are needed to&lt;b&gt; make a profit&lt;/b&gt;, using automatic market&lt;b&gt; analysis and opening positions&lt;/b&gt;. Such algorithms have other names such as &lt;b&gt;&amp;quot;trading robot&amp;quot; or &amp;quot;Advisor&amp;quot;&lt;/b&gt;.&lt;br /&gt;In the second case, the&lt;b&gt; algorithm&lt;/b&gt; is used in order to &lt;b&gt;simplify the work of the trader&lt;/b&gt; in manual trading when making transactions &lt;b&gt;in large volumes&lt;/b&gt;.&lt;br /&gt;&lt;a href="https://stocksharp.com" title="https://stocksharp.com"&gt;StockSharp&lt;/a&gt; company pursuing its goal to facilitate the work of the trader and bring it to a &lt;b&gt;higher and more profitable&lt;/b&gt; level, has developed several programs to help the trader in this.&lt;br /&gt;Among these programs is &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;S#.Designer&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/110312/algo-trading-strategy.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/110312/algo-trading-strategy.png?size=800x800" alt="algo-trading-strategy.png" title="algo-trading-strategy.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It allows you to &lt;b&gt;create trading robots&lt;/b&gt; for algorithmic trading.&lt;br /&gt;Our company has &lt;b&gt;created a program&lt;/b&gt; that will &lt;b&gt;help the novice trader &lt;/b&gt;to create his strategy with the help of dice. In fact, it is a constructor that requires a trader only to understand the market and the developed strategy, which is quite simple to implement and implement in trading processes. More information about the program can be found on our &lt;a href="https://stocksharp.com" title="https://stocksharp.com"&gt;website&lt;/a&gt;.</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/10679/</id>
    <title type="text">Designer - create a strategy based on MACD. Start with simple.</title>
    <published>2019-05-06T18:15:06Z</published>
    <updated>2019-11-18T07:05:29Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Trading robot coding" />
    <category term="Trading robots" />
    <category term="Trading systems" />
    <category term="historical data" />
    <category term="market data" />
    <category term="trading" />
    <category term="exchange" />
    <category term="MACD" />
    <content type="html">Creating a strategy in the &lt;a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/"&gt;Designer&lt;/a&gt; program.&lt;br /&gt;&lt;br /&gt;Let’s discuss an example of creating a trading strategy in a program based on the MACD indicator values.&lt;br /&gt;The indicator’s goal is as follows:&lt;br /&gt;&lt;br /&gt;1. If the MACD indicator histogram crosses the zero line from top to bottom, this is a sell signal.&lt;br /&gt;2. The transition of the histogram from the negative to the positive zone is a buy signal.&lt;br /&gt;&lt;br /&gt;Therefore, it is necessary to create conditions under which a trade will be made, namely, if the indicator value on the next candle changes its sign, then the signal is sent to make a trade.&lt;br /&gt;To create a strategy, we need:&lt;br /&gt;&lt;br /&gt;- Run the program. &lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109074/1.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109074/1.png?size=800x800" alt="1.png" title="1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Select the Variable, Candles and Chart Panel blocks, connect them. &lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109084/2.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109084/2.png?size=800x800" alt="2.png" title="2.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Select an instrument with which we will test the strategy. &lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109086/3.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109086/3.png?size=800x800" alt="3.png" title="3.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Plot a candle chart. &lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109081/4.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109081/4.png?size=800x800" alt="4.png" title="4.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Select the Indicator and Chart Panel blocks. Connect the Indicator and Candles blocks. &lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109077/5.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109077/5.png?size=800x800" alt="5.png" title="5.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Plot a chart of the MACD indicator.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109075/6.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109075/6.png?size=800x800" alt="6.png" title="6.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Select the Variable block and assign it a numeric value of 0 for further comparison with the indicator value. &lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109083/7.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109083/7.png?size=800x800" alt="7.png" title="7.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Select the Comparison block and set the test condition in the properties: execution during the test, with the MACD indicator value greater than 0.&lt;br /&gt;&lt;br /&gt;- Add two Variable blocks and Comparison block. One of the variables is set to -1 in the block properties. It will indicate the transition of the MACD curve value from negative to positive area. The second Variable value is set to 0 in the properties, that will indicate the initial indicator value. &lt;br /&gt;&lt;br /&gt;- Set the condition in the Comparison block that will be fulfilled if the initial indicator value for the time frame is greater than the current one.&lt;br /&gt;&lt;br /&gt;- Connect the Variable blocks via a trigger socket with the Comparison blocks, as shown in the figure.&lt;br /&gt;Select the Logical Condition and Variable cubes.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109079/8.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109079/8.png?size=800x800" alt="8.png" title="8.png" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;- The execution condition of two comparisons will be checked in the Logical Condition cube. Set the AND condition in the properties of the Logical Condition cube and connect the cubes as shown in the figure.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109076/9.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109076/9.png?size=800x800" alt="9.png" title="9.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Set the value equal to -1 in the Variable cube and connect it with the Logical Condition cube via a trigger socket, and through the output connect to the input of the cube with a value of 0. This will allow overwriting the checkbox value when conditions are met, indicating within what range of values the MACD indicator curve is.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109080/10.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109080/10.png?size=800x800" alt="10.png" title="10.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Select the Open Position block, select the Buy direction in the settings and connect data and trigger with the socket, as shown in the figure.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109082/11.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109082/11.png?size=800x800" alt="11.png" title="11.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Select two Variable blocks in which to set the volume and portfolio for trading. Connect them with the corresponding sockets of the Open Position block.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109087/12.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109087/12.png?size=800x800" alt="12.png" title="12.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Similarly, create a routine for the Sales execution.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109085/13.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109085/13.png?size=800x800" alt="13.png" title="13.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-The strategy is ready, let’s run it.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/109078/14.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/109078/14.png?size=800x800" alt="14.png" title="14.png" /&gt;&lt;/a&gt;&lt;br /&gt;</content>
  </entry>
  <entry>
    <id>https://stocksharp.com/topic/10642/</id>
    <title type="text">How to download market data to the Designer?</title>
    <published>2019-04-25T12:35:50Z</published>
    <updated>2019-04-26T00:39:18Z</updated>
    <author>
      <name>Marat</name>
      <uri>https://stocksharp.com/users/101940/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Trading robot coding" />
    <category term="Trading robots" />
    <category term="Trading systems" />
    <category term="market data" />
    <category term="trading" />
    <category term="FAQ" />
    <category term="exchange" />
    <category term="trading on the exchange" />
    <category term="downloader" />
    <content type="html">&lt;iframe width="640" height="390" src="//www.youtube.com/embed/st0zTuKX_Fg" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;In order to download market data to the Designer program for testing a trading strategy, you need to do the following:&lt;br /&gt;&lt;br /&gt;1.Run the program.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108980/1.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108980/1.png?size=800x800" alt="1.png" title="1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Select the &lt;b&gt;Market Data&lt;/b&gt; section in the top menu and click on it.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108968/2.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108968/2.png?size=800x800" alt="2.png" title="2.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. In the window that appears, select the Download Securities button in the Securities panel, in the menu that appears, tick the All option and select the storage. Then click the OK button .&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108970/2%D0%B0.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108970/2%D0%B0.png?size=800x800" alt="2а.png" title="2а.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. In the list of downloaded securities, select the one we need.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108976/3.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108976/3.png?size=800x800" alt="3.png" title="3.png" /&gt;&lt;/a&gt;                  &lt;a href='https://stocksharp.com/file/108974/4.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108974/4.png?size=800x800" alt="4.png" title="4.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;5. Choose a period for which we need market data, and candles that we need.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108967/5.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108967/5.png?size=800x800" alt="5.png" title="5.png" /&gt;&lt;/a&gt;                  &lt;a href='https://stocksharp.com/file/108979/6.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108979/6.png?size=800x800" alt="6.png" title="6.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;6. Select the path to storage where our market data will be stored, for this, we click the “+” button. &lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108971/7.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108971/7.png?size=800x800" alt="7.png" title="7.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;7. In the menu that appears, select the full path to store the downloaded market data.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108969/8.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108969/8.png?size=800x800" alt="8.png" title="8.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;8. Click the &lt;b&gt;Start&lt;/b&gt; button&lt;br /&gt;9. In the window that appears, select the market data source.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108978/9.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108978/9.png?size=800x800" alt="9.png" title="9.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;10. In the window that appears, click the “+” button and select the source we need from the drop-down list.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108977/10.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108977/10.png?size=800x800" alt="10.png" title="10.png" /&gt;&lt;/a&gt;                    &lt;a href='https://stocksharp.com/file/108973/11.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108973/11.png?size=800x800" alt="11.png" title="11.png" /&gt;&lt;/a&gt;                    &lt;a href='https://stocksharp.com/file/108972/12.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108972/12.png?size=800x800" alt="12.png" title="12.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;11. Click the OK button.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://stocksharp.com/file/108975/13.png' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'&gt;&lt;img src="https://stocksharp.com/file/108975/13.png?size=800x800" alt="13.png" title="13.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Market data downloaded to your storage. Enjoy using.</content>
  </entry>
</feed>