Skip to content

StandardSeriesType

enum cAlgo.API Since 5.9

DesktopCLICloud

An enumeration of the standard data series types of a bar.

Definition

public enum StandardSeriesType

Namespace: cAlgo.API · Group: Indicators

Examples

using cAlgo.API;

namespace cAlgo;

public partial class Test : Indicator
{
    protected override void Initialize()
    {
        var openPrices = Bars.GetSeries(StandardSeriesType.Open);
        Print($"Last Open Price is: {openPrices.LastValue}");
    }

    public override void Calculate(int index)
    {
    }
}
class Test():
    def initialize(self):
        openPrices = api.Bars.GetSeries(StandardSeriesType.Open)
        api.Print(f"Last Open Price is: {openPrices.LastValue}")
{
  "AccessRights": "None"
}

Values

Name Value Description
Open 0 Bar Open price.
High 1 Bar High price.
Low 2 Bar Low price.
Close 3 Bar close price.
TickVolume 4 Bar tick volume.
Median 5 Bar median price.
Typical 6 Bar typical price.
Weighted 7 Bar weighted price.
Average 8 Bar average price.

See also