Calculated Indicators

Top  Previous  Next

Calculated Indicators

 

See Basic Indicators for more information on the other controls and options in this dialog.

 

To create a calculated indicator, select the Calculated type from the type drop down box. Use this to create a simple expression based on indicators, parameters, or values. An example for the channel top from the ATR Channel Breakout system is:

 

closeAverageDays + ( channelWidth * averageTrueRange )

 

You cannot use any data that is created during the test, as these are calculated before the test starts. You can use indexes of other indicators, and the current value of indicators that are declared above this one. Please be careful, as the syntax checker cannot fully verify your expression. An illegal expression will cause your test to return unexpected results.

 

You can access past values of other indicators, so to create an easy smoothing of the RSI:

 

( rsiIndicator[1] + rsiIndicator[2] + rsiIndicator[3] ) / 3

 

Here is an example from the turtle system:

 

calculatedIndicator

 

 

Valid items to use in the expression:

 

Parameters, other indicators, numbers, certain instrument properties that are available pre test.

To use another calculated indicator in the expression of a calculated indicator, be sure that the other indicator is listed first so that the value is updated for the bar prior to being used.

 

Instrument object properties that are static prior to the test start can be used. Dynamic instrument object properties cannot be used. No other objects can be used.