Skip to content

PriceType

Summary

An enumeration of the different price types.

Signature

1
public enum PriceType

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 using cAlgo.API;
 namespace cAlgo;
 [Indicator(AccessRights = AccessRights.None)]
 public 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)
     {
     }
 }
1
2
3
4
5
6
7
 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}")

See Also

Fields

Open

Summary

Bar Open price.

Signature

1
PriceType.Open;

Return Value

PriceType

High

Summary

Bar High price.

Signature

1
PriceType.High;

Return Value

PriceType

Low

Summary

Bar Low price.

Signature

1
PriceType.Low;

Return Value

PriceType

Close

Summary

Bar close price.

Signature

1
PriceType.Close;

Return Value

PriceType

TickVolume

Summary

Bar tick volume.

Signature

1
PriceType.TickVolume;

Return Value

PriceType

Median

Summary

Bar median price.

Signature

1
PriceType.Median;

Return Value

PriceType

Typical

Summary

Bar typical price.

Signature

1
PriceType.Typical;

Return Value

PriceType

Weighted

Summary

Bar weighted price.

Signature

1
PriceType.Weighted;

Return Value

PriceType

Average

Summary

Bar average price.

Signature

1
PriceType.Average;

Return Value

PriceType