LowestBar()
Previous Topic  Next Topic 

Definition
Returns the number of bars ago the lowest price value occured for the lookback period. If there are several occurences within the lookback period where the bar was the lowest bar the more recent occurence is returned.

Method Return Value

An int value that represents number of bars ago.


Syntax
LowestBar(IDataSeries series, int lookBackPeriod)

Method Of

Custom Indicator, Custom Strategy


Parameters

series

Any DataSeries type object such as an indicator, Close, High, Low etc..

lookBackPeriod

The number of bars to include in the calculation


Examples

// Prints out the number of bars ago for the lowest SMA(20) value of the current session
Print(Lowest(SMA(20), Bars.BarsSinceSession - 1).ToString());