![]()
ATC Trader User Guide
Contents: Show all | Close all
ATC .NET Custom Indicator Framework
The ATC Custom Indicator Framework is a .NET library that provides full access to ATC Charts indicator infrastructure: the user writes a single-line simple indicator as well as advanced analyze techniques with complex custom drawing functionality. To support developers, the plug-in contains an integrated development environment with the developer documentation and samples.
A simple way to start development of a new indicator is to use Rapid Custom Indicator Wizard. Full C# code button generates the C# file and opens the IDE with it.
![]()
Rapid Custom Indicator WizardFull C# Code generates the C# class and opens a source code editor.
Study the sample below. All non-bold code is generated automatically on the base of the wizard dialog content.![]()
NOTES:
- All information is about classes, properties, methods, and fields that are used in custom indicators is found in Context Help.
- The CustomIndicator class is a base class of custom indicators.
- The TimeSeries attribute describes meta-information and should be defined. Most of the fields of this attribute are reflected in Rapid Wizard dialog.
- Virtual DefaultSubseries property should be overriden to declare a list of subseries (lines) and default styles of these subseries.
- The XmlSerializable attribute should be used to mark variables and properties as persistent.
- The Virtual Calculate() method should be overridden to implement the algorithm of the indicator.
- The Result and the RArray properties should be used to store the results of calculation.
- The InputData refers to the data of the input series that is selected by the user in Input property of Indicator Property dialog.
- The Stock, Open, Close, High, Low, Volume can be used the same way as in the simple expressions (Keywords for input data). All other information from this category can be found in ContractInfo property of indicator.
- Mathematical functions can be found in MathExt, Trig and the standard System.Math classes.
- Functions-indicators can be used the same in the manner as in the simple expressions.
External Assemblies
There is also the ability to add a reference to external assemblies.
To add one or more //#link NameOfAssembly.dll directives to first lines of code, use this example://#link SampleMath.dll
All external libraries should be placed to the ATC\Plug-ins folder.
Context Help
Context help (chm file) for the ATC Charts library displays from Help menu of the code editor.
ATCCharts HelpCode Editor
The code editor provides functionality to edit, verify, and compile source code of indicators. The editor displays the next groups of menu commands:
- File menu to save, create, and open files
- Edit menu
- Compile menu
- Help menu
SNI.cs