Skip to content

PriceType

enum cAlgo.API

DesktopCLICloud

An enumeration of the different price types.

Deprecated

Use StandardSeriesType instead.

Definition

public enum PriceType

Namespace: cAlgo.API · Group: Indicators

Examples

using cAlgo.API;

namespace cAlgo;

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

    public override void Calculate(int index)
    {
    }
}
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        openPrices = api.Bars.GetPrices(PriceType.Open)
        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