More recently, we have reviewed a program such as Shell and the API library. Of course, 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. However, not every user is interested in programming, and not every user is willing to spend time studying libraries. Not every trader wants to learn how to write custom trading robots and often wants to create trading strategies for themselves. Agree, it would be cool to have a program that can use ready-made components to create trading strategies. S# understands this and has created a trading robot constructor that allows you to create trading robots using dice-Designer. trade-system.png Now many people will start thinking: \"What is it good for?\". Actually -. First, it is more intuitive, meaning that it is easier for the user to navigate the program interface. Secondly, the program is completely free, which allows the user to start working with it without investing a penny! Third, the program integrates with all our products, such as Hydra, and moreover, it is able to download market data itself. market-data-download.png In General, the ability to download market data yourself is a huge advantage. The user can use not several programs, but one to test the created trading strategies. The interface is intuitive, and makes it easy to adapt to the user\u0027s environment. trading-strategy-market-data.png What is a Designer? Designer is a completely unique program. It differentiates strategy elements into the simplest elements, as in the constructor, and allows you to assemble a trading strategy from these elements. 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. Cubes are divided into sections that include groups of cubes for the user\u0027s 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. trading-systems.png This means that the user does not waste time identifying the causes of the error at the program development stage. 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. 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\u0027s expenses. trading-robot.png More experienced users can create their own elements in C#. 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. The advantage of strategies in C# 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 S#.Designer or C# development environment (the most popular development environment is Microsoft Visual Studio), using the library for professional development of trading robots in C# and S#.API. prigramming-code-trading-strategy.png Speaking of Designer, 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. It just remains to start working
Creating a strategy in the Designer program. Let’s discuss an example of creating a trading strategy in a program based on the MACD indicator values. The indicator’s goal is as follows: 1. If the MACD indicator histogram crosses the zero line from top to bottom, this is a sell signal. 2. The transition of the histogram from the negative to the positive zone is a buy signal. 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. To create a strategy, we need: - Run the program. 1.png - Select the Variable, Candles and Chart Panel blocks, connect them. 2.png - Select an instrument with which we will test the strategy. 3.png - Plot a candle chart. 4.png - Select the Indicator and Chart Panel blocks. Connect the Indicator and Candles blocks. 5.png - Plot a chart of the MACD indicator. 6.png - Select the Variable block and assign it a numeric value of 0 for further comparison with the indicator value. 7.png - Select the Comparison block and set the test condition in the properties: execution during the test, with the MACD indicator value greater than 0. - 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. - 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. - Connect the Variable blocks via a trigger socket with the Comparison blocks, as shown in the figure. Select the Logical Condition and Variable cubes. 8.png - 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. 9.png - 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. 10.png - 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. 11.png - 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. 12.png - Similarly, create a routine for the Sales execution. 13.png -The strategy is ready, let’s run it. 14.png
https://youtu.be/st0zTuKX_Fg In order to download market data to the Designer program for testing a trading strategy, you need to do the following: 1.Run the program. 1.png 2. Select the Market Data section in the top menu and click on it. 2.png 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 . 2а.png 4. In the list of downloaded securities, select the one we need. 3.png 4.png 5. Choose a period for which we need market data, and candles that we need. 5.png 6.png 6. Select the path to storage where our market data will be stored, for this, we click the “+” button. 7.png 7. In the menu that appears, select the full path to store the downloaded market data. 8.png 8. Click the Start button 9. In the window that appears, select the market data source. 9.png 10. In the window that appears, click the “+” button and select the source we need from the drop-down list. 10.png 11.png 12.png 11. Click the OK button. 13.png Market data downloaded to your storage. Enjoy using.
Frequently asked questions about Designer: 1. How to download market data to the program? 2. How and where to specify an instrument for strategy backtesting? 3. How to create a condition in the strategy? 4. Compound indicators, methods of their decomposition.