Highest price series of historical trendbars.

Example 1

//Accessing historical OHLC prices from Indicators 
MarketSeries.High[index] //The current High price
MarketSeries.High[index-1] //The previous High price
MarketSeries.High[index-5] //The High price 5 bars ago

Example 2

//Accessing historical High prices from cBots (cAlgo Robots) 
MarketSeries.High[MarketSeries.High.Count-1] //The current High price
MarketSeries.High[MarketSeries.High.Count-2] //The previous High price
MarketSeries.High[MarketSeries.High.Count-6] //The High price 5 bars ago

Example 3

public DataSeries Source { get; set;}

[Parameter(DefaultValue = 14)]
public int period { get; set; }

private SimpleMovingAverage smahigh

protected override void Initialize()
    smahigh = Indicators.SimpleMovingAverage(MarketSeries.High,period);//Simple movind average that use High prices as Source.