Generate Template Dialog
The Generate Template Dialog allows you to generate project and code templates for the selected function or entry/exit system external DLL project.
Ä Note: The TradingSolutions External Indicator SDK Add-on is required to use this functionality.
& For help with function definitions, see Calculating Values and Financial Indicators.
& For help with entry/exit systems, see Creating and Analyzing Entry/Exit Signals.
Generating a Template
Pressing the OK button on this dialog will perform the following actions:
For the indicated Project file:
· If this project file does not exist, a new project will be generated for the development environment indicated in the Compiler selection on External DLL page.
· If this project file does exist, the project will be updated to include the indicated code file if it is not already present.
For the indicated Code file:
· A new code template based on the selected inputs will be generated.
Ä Note: Any existing code file in this location will be overwritten.
Ä Note: The default location for External Indicator SDK source code is the "\NeuroDimension\TradingSolutions\Function DLLs" directory your "My Documents" folder. Files in this location display an abbreviated path of "..\My Documents\..\Function DLLs\".
In addition, the following settings can be used to generated optional code segments in the code file:
þ Generate sample code to maintain a buffer of recent values.
This setting creates sample code to maintain a buffer of the most recent values of any non-constant inputs, including the date. The following samples are available.
· Set buffer size based on an input.
This option specifies that the size of the buffer will equal the value in an input.
: Example: A moving average function with Data and Period inputs could maintain a buffer of the size specified in the Period input to store recent values in the Data input.
Ä Note: If no constant inputs are specified, this option will not be available.
· Use constant buffer size.
This option specifies that the size of the buffer is fixed.
· Include all previous values.
This option provides an example of keeping all previous values. This is useful when interfacing to external libraries that require a complete array of previous values for calculation.
Ä Note: If no non-constant inputs are specified, this option will not be available.
þ Generate sample code demonstrating a simple moving average.
This setting creates sample code demonstrating basic functionality in action.
· For a Function, this sample code displays how to return the moving average of a value.
· For an Entry/Exit System, this sample code displays how to generate an entry signal when a value crosses its moving average. It also includes sample code showing how to exit based on trade length and potential trade loss.
Ä Note: The first non-constant input, not including the date, will be used for the value. If no non-constant inputs are specified, this option will not be available.
Ä Note: This sample code requires the sample code to maintain a buffer (other than "include all previous values") be generated. The size of the moving average will be the size specific for that buffer.
What Do I Do Next?
Press the OK button to generate the specified templates. If you would prefer not to generate any templates, press the Cancel button.
How Did I Get Here?
The Generate Template Dialog is displayed when you press the Generate Template… button from the Select External DLL page of the Create a Function Definition Wizard, the Create an Entry/Exit System Wizard the Modify Function Definition Dialog , or the Modify Entry/Exit System Dialog.