StoneTrend

Modified on 2015/11/13 12:58 by Eugene — Categorized as: Community Indicators

Syntax

public StoneTrend(Bars bars, int period, string description)
public static StoneTrend Series(Bars bars, int period)

Parameter Description

Bars A Bars object
period Indicator lookback period

Description

Here goes the original description:

This indicator follows a simple definition for trends. Trend goes up if there are higher highs and higher lows. Trend goes down if there are lower highs and lower lows. The indicator simply counts the "up" bars and the "down" bars during the lookback period.

The result is scaled for a range between -100 and +100. If there are only "up" bars during the lookback period, StoneTrend will return 100.

Idea by David Stone, created for WL4 by DrKoch, translated to WL6 by Eugene.

Example

No example currently available.