Skip to content

PriceAlertCondition

enum cAlgo.API Since 5.2

DesktopCLICloud

Represents the price alert conditions.

Definition

public enum PriceAlertCondition

Namespace: cAlgo.API · Group: Price Alert

Examples

var resistance = Bars.HighPrices.Maximum(50);
PriceAlerts.Add(Symbol, resistance, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual);
Print("Alert added for a breakout above {0}", resistance);
resistance = Functions.Maximum(api.Bars.HighPrices, 50)
api.PriceAlerts.Add(api.Symbol, resistance, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual)
api.Print(f"Alert added for a breakout above {resistance}")

Values

Name Value Description
HigherOrEqual 0 Price alert will be triggered if symbol price is above or equal than alert price.
LowerOrEqual 1 Price alert will be triggered if symbol price is lower or equal than alert price.

See also