Skip to content

PriceAlertQuoteType

enum cAlgo.API Since 5.2

DesktopCLICloud

Represents the price alert quote types.

Definition

public enum PriceAlertQuoteType

Namespace: cAlgo.API · Group: Price Alert

Examples

var support = Bars.LowPrices.Minimum(50);
PriceAlerts.Add(Symbol, support, PriceAlertQuoteType.Ask, PriceAlertCondition.LowerOrEqual);
Print("Alert added when the ask price drops to {0}", support);
support = Functions.Minimum(api.Bars.LowPrices, 50)
api.PriceAlerts.Add(api.Symbol, support, PriceAlertQuoteType.Ask, PriceAlertCondition.LowerOrEqual)
api.Print(f"Alert added when the ask price drops to {support}")

Values

Name Value Description
Bid 0 Symbol Bid price will be used for price alert.
Ask 1 Symbol Ask price will be used for price alert.

See also