To program (not to run, but specifically for development) trading robots in OsEngine, you will need a development environment, also known as an IDE. This is necessary to avoid writing source code in text files and to do so comfortably and efficiently.
There are several programs suitable for these purposes, including Visual Studio, Rider, Visual Studio Code, and other, less well-known options. Everyone chooses what they prefer, but if you are unsure about your choice, we highly recommend settling on Visual Studio Community. In this post, we will discuss how to install it. The program is completely free, just like our OsEngine.
Choosing Visual Studio will be the ideal option that will meet all your needs. Visual Studio offers both standard tools (editor, debugger) and a wealth of additional features (compilers, code optimizers, graphical designers, etc.) that make the development process more productive, interesting, and high-quality.
In addition, there are currently dozens of AI extensions being developed for it, which will soon write code almost entirely for you. This is one of the most popular IDEs for programming on the planet, and it is here that all this will appear first.
Installing Visual Studio.
First, you need to download the installer from the link: https://visualstudio.microsoft.com/downloads. The website also contains a lot of useful information for beginners that will help you understand the program and its additional features.
After following the link, you will land on the website where you need to click the "Download" button:
Go to your downloads and run the downloaded .exe file. Click "Yes" when the system asks for permission to make changes. Review the privacy policy and the license agreement, then click "Continue":
After the installation is complete, the Visual Studio Installer will show the following window, where you need to check the box for the .NET package:
Some components are automatically checked, but it is better to go to the components tab and ensure that these two components are checked (as we have noticed, this list changes periodically):
• .NET Framework 4.8 Targeting Pack
• SDK Package for .NET Framework 4.8
Then click the "Install" button to start the installation process:
After the installation, you will be prompted to sign in to your account. You can skip this step or sign in.
You will need to register when you first decide to publish your code to the public, for example, on GitHub (https://github.com/AlexWan/OsEngine). After that, you can choose your desired theme and launch the program. A dark theme is better for your eyesight.
Once the startup window appears, you can start working and launching OsEngine. In the OsEngine archive, navigate to this file:
When OsEngine opens in the studio, don’t forget to build the project to update the NuGet packages, which are updated from the internet. Otherwise, you may encounter errors:
After that, you can start creating robots and exploring the project.
Happy coding!