images/contents.gifimages/index.gifimages/prev1.gifimages/next1.gif

DISTTOMAX()

Definition Identifies the distance, in bars (periods), to the maximum price. The parameters in this function enable you to define a range. This range is defined in relationship to the current period, or bar. Using zero (0) for the first parameter causes price detection to begin with the current bar. Using a positive integer for the first parameter causes price detection to begin the respective number of bars back from the current bar. The second parameter identifies the end of the range. The first parameter must be less than the second.

Syntax images/aspen00000194.gif

Parameters SERIES
Required if the formula name declares the SERIES parameter.

INPUT
Required if the formula name declares the INPUT parameter.

<minbars>
Minimum number of periods to look back.

<maxbars>
Maximum number of periods to look back.

Example DTMAX_EX1(SERIES,MINBARS=0,MAXBARS=10)=DISTTOMAX(SERIES,MINBARS,MAXBARS)

DTMAX_EX2(INPUT,MINBARS=0,MAXBARS=100)=DISTTOMAX(INPUT,MINBARS,MAXBARS)