|
Description |
Identifies the distance, in bars (periods), to the minimum price. |
|
|
Syntax |
|
|
|
Parameters |
SERIES Use the SERIES parameter when you are referencing a study value. In chart windows, values are displayed in decimals. In quote windows, values are displayed in the units of the underlying instrument.
INPUT Use the INPUT parameter when you are referencing an overlay value.
minbars The minbars parameter marks the beginning of the range.
maxbars The maxbars parameter marks the end of the range. |
|
|
Return Value |
The distance in bars to the lowest price in the range. |
|
|
Examples |
DTMin1(SERIES,minbars=0,maxbars=10)=begin retval = DistToMin(SERIES,minbars,maxbars) end
DTMin2(INPUT,minbars=0,maxbars=100)=begin retval = DistToMin(INPUT,minbars,maxbars) end |
|
|
Comments |
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. |