Median


Summary

Median price series of historical trendbars.

Syntax

public DataSeries Median{ get; }

Example 1

protected override void OnBar()
{
    int currentIndex = MarketSeries.Median.Count - 1;
    var currentTypical = MarketSeries.Median[currentIndex];     //The current Median price
    var previousTypical = MarketSeries.Median[currentIndex - 1]; //The previous Median price
    if (currentTypical < previousTypical)
    {
        // Do something
    }
}