In working with custom indicators in the NeuroShell Trader, some users have expressed a desire to link or map certain parameters or variables together to ensure that for purposes of optimization, et cetera the parameters they select will have the same value. To demonstrate the NeuroShell Trader’s parameter-mapping capability, we have constructed a custom indicator which determines the momentum of the RSI indicator. The variable ‘periods’ is common to both the momentum indicator and the RSI indicator, and to ensure that the same value for the period of both indicators is determined during optimization, the two period variables can be mapped together using the following procedure:
1. Create a custom indicator. For our example, we selected the momentum indicator, modifying the Time Series variable from the default value of ‘close’ to the ‘RSI’ indicator. Note that RSI and Momentum contain ‘periods’ as a parameter.
2. Click the ‘Save Indicator’ button when you have finished constructing your custom indicator. From the Save Template dialogue box, then click the ‘Advanced’ button. Note that in the dialogue box which appears, there are two components or parameters which have the name ‘periods’ (one for the momentum indicator and one for the RSI indicator).
3. Select the first Period parameter in the component list and, then, click the ‘Modify’ button.
4. In the Modify Parameter’s Display Properties dialogue box, be sure the ‘Display as Parameter Number’ option is selected and change the display number from 2 to 3 (Figure 1). Note that the word ‘Periods’ now appears twice under Applies To The Following Parameters (Figure 2). Click ‘OK’. Then, click ‘OK’ on the Save Template Advanced dialogue box.
Figure 1 |
Figure 2 |
5. Save your custom indicator.
Now both period parameters in the custom indicator have been successfully mapped together. Of course, the Trader will allow multiple parameters to be mapped together, such as mapping five ‘period’ parameters in a more complex custom indicator. When the indicator is optimized after mapping several parameters together, the mapped parameters all will have the same value.