Highest

Modified on 2008/04/18 09:00 by Administrator — Categorized as: Standard Indicators

Syntax

public Highest(DataSeries source, int period, string description) public static Highest Series(DataSeries source, int period) public static double Value(int bar, DataSeries source, int period)

Parameter Description

source The source DataSeries
period Lookback period

Description

Returns the highest value of a source DataSeries within the specified lookback period.

Highs and lows are found in all markets, and, they are fundamentally important to technical analysis. Uptrends are defined by a succession of higher highs and higher lows, whereas downtrends are characterized by a succession of lower highs and lower lows. Support and resistance is often defined at significant high and low points. Pattern formations are shaped by highs and lows such as double tops and bottoms, head and shoulder formations, rectangles, triangles, flags, consolidations and other formations. Use Wealth-Lab functions: Highest, Lowest, HighestBar and LowestBar, for finding and analyzing these market opportunities.

Interpretation


Calculation

Looks back the specified number of periods from the specified Bar and returns the highest price within that Period.

Example

using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { // Have we made a 100 bar high? for(int bar = 100; bar < Bars.Count; bar++) { if( Highbar == Highest.Series( High, 100 )bar ) AnnotateBar( "NH", bar, true, Color.Black ); } } } }