NeedForTrade Documentation

Creating a Function

This feature is available only in NeedForTrade Studio and NeedForTrade Studio Lite.

To create a Function

There are two ways you can use to create a function.

+ Using main menu - alternative #1 (click to view)
  1. Use the File menu.
  2. Select New.

     
  3. Select Analysis from submenu.

  4. Select Function from submenu.

  5. New Window dialog will appear.

    Select Empty to create empty function or select required Template and click Create button.


+ Using toolbar button - alternative #2 (click to view)
  1. Click the New Document toolbar button.

  2. Select Analysis from nested menu.

     

  3. Select Function from submenu.

  4. New Window dialog will appear.

    Select Empty to create empty function or select required Template and click Create button.

 

Now you can see Code Editor. Enter here the code of your own Function. In the Properties enter Indicator's name and Type. See Editing Functions. At that Function will appear in the Browser. Also use Parameters, References and Variable Store if necessary. See also Working with Code Editor and Editing Functions

 

After entering all parameters of your Function click Build Analysis Technique in the Code Editor shortcut menu and if there are no errors Function will  appear in the Browser with green tick. See also Working with Browser.

 

Now you can add Function to the Chart. Drag and Drop it from the Browser to the Chart. See also about Chart Window.