If you are not yet familiar with RTX, please review
- RTX extensions: an introduction to the capabilities of the Investor/RT SDK capabilities
- An Introduction to RTX : a short video covering the key concepts to quickly develop a charting indicator using the RTX Extension Setup Wizard
- RTX development video series : an in depth 8-part guide for developing RTX extensions.
- RTX Setup Wizard: a presentation of the features of the built in RTX extension setup wizard
Please note that above videos were designed with older versions of Visual Studio. The following guide will help you start using the built-in RTX extension setup wizard together with Visual Studio 2022. IR/T 15.2 release (and later) includes both VS2019 & VS2022 SDK, while earlier 15.1.x release includes VS2019 SDK. You can select which SDK version you run with the configuration Variables VisualStudioVersion set to 2022 in 15.2 beta (and later version) installer.
For the record, the documentation / list of classes can be found from the main toolbar through the menu Help > Search Linnsoft.com > RTX Documentation
Accessing the built-in Setup Wizard for RTX extension
To access the wizard interface, open the menu File->New->RTX Extension
If your RTX Project Name is named myExtension, the generated code will be located here :
C:\Users\
Creating your first RTX extension in Visual Studio 2022
- Download and run the installer of the Visual Studio 2022 Community Edition.
- Create a new project (C++, All Platforms, Library) Choose Dynamic Link Library DLL.
- Configure the project where C:\Users\<you user name>\InvestorRT\rtx\xyzDemo1 is the root directory:
Source files
- Remove all predefined source files (example pch.cpp, dllmain.cpp)
- Download xyzDemo1.cpp using this link: https://www.linnsoft.com/videos/rtx-development-rtx-project-setup-visual...
- Copy the file in the project directory and add it to the project C:\Users\<your user name>\InvestorRT\rtx\xyzDemo1\xyzDemo1.cpp
Header files
- Remove all header files (example pch.h, framework.h)
- Add this header to the project C:\Program Files\LinnSoft\InvestorRT\sdk\c++\include\irtsdk.h
Project properties : configure the "Include" and lib directories by adding the following paths:
- Additional Include directories: C:\Program Files\InvestorRT\sdk\c++\include
- Additional Dependencies: C:\Program Files\InvestorRT\sdk\c++\lib\irtsdkV143d-x64.lib
Disable Precompiled headers
- In C/C++ ->Precompiled Headers-> Not using Precompiled headers
Output Directory
- Replace $(SolutionDir)$(Platform)\$(Configuration)\ by $(USERPROFILE)\InvestorRT\dllx64
Open the new RTX in your I/RT instance
At this point, you can build the project by clicking OK on the interface: it will create xyzDemo1.dll. InvestorRT will display the xyzDemo1 indicator at the next restart: