Create and Manage Scripts

Scripting environment

TradersYard X's programming environment (script) is similar to that of Visual Studio, and allows you to:
  1. 1.
    Navigate the programming workspace using toolbars,
  2. 2.
    Handle multiple components at the same time via the editor (top tab bar),
  3. 3.
    Use the IntelliSense¬ģ functionality,
  4. 4.
    View a list of errors at the bottom of the screen

Scripting toolbar

Icon
Function
‚Äč
‚Äč
Loads existing self-programmed indicators/strategies to the workspace
‚Äč
‚Äč
Saves source code changes
‚Äč
‚Äč
Cuts marked source code
‚Äč
‚Äč
Copies marked source code
‚Äč
‚Äč
Pastes copied/cut source code
‚Äč
‚Äč
Enables comments on marked source code parts
‚Äč
‚Äč
Uncomments the selected lines
‚Äč
‚Äč
Cancels previous action(s)
‚Äč
‚Äč
Repeats canceled action(s)
‚Äč
‚Äč
Opens output window
‚Äč
‚Äč
Opens reference popup
‚Äč
‚Äč
Compiles sources
‚Äč
‚Äč
Searches for a text within source code
‚Äč
‚Äč
Find/Replace
‚Äč
‚Äč
Opens a list of errors
‚Äč
‚Äč
Deletes file

Visual Studio

TradersYard X used the .NET Framework 4.6. In addition please use Visual Studio version 2017 or newer. Microsoft offers a free version called Visual Studio Community Edition, which is pretty good to develop TradersYard X Script code. Download Visual Studio Community Edition.‚Äč
This article was created by http://script-trading.com.‚Äč
TradersYard X and Visual Studio
TradersYard X offers its very own script editor that can be used for TradersYard X Script development
This editor is a useful tool when it comes to quickly changing a couple of lines of code, or if you just want to look at an TradersYard X Script. For all other applications, it is essential that you use Microsoft’s development environment Visual Studio. It offers a comprehensive solution that has proven itself time and again for almost all areas of software development, including of course for TradersYard X Script as well as for C#.
The most important advantages are:
  • Debugging
  • Code Completion
  • Syntax checking
In addition, there is a multitude of further features that make developing easier for you.
You can download the free ‚ÄúVisual Studio Community‚ÄĚ edition at https://www.visualstudio.com/downloads. Please note that the download and the installation of the software take about 60 minutes!
From TradersYard X 2.0 onwards, you need to use at least ‚ÄúVisual Studio Community 2017‚ÄĚ due to the .NET version 4.6 that is implemented!
Once you have successfully installed Visual Studio, you can link it to TradersYard X using the Preferences setting shown below. From now on, all TradersYard X Script files will automatically be opened with Visual Studio, and the debugger will also automatically be linked to TradersYard X.
Preferences setting for Visual Studio
You can now conveniently develop, test, and debug your TradersYard X Scripts in Visual Studio.
This article was created by http://script-trading.com.‚Äč