Algo.PriceAlerts
property · Algo · cAlgo.API.Internals Since 5.2
DesktopCLICloud
Provides access to Price Alerts.
Definition
public PriceAlerts PriceAlerts {get;}
api.PriceAlerts: PriceAlerts
Returns PriceAlerts
Examples
var alert = PriceAlerts.Add(Symbol, Symbol.Bid + 20 * Symbol.PipSize, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual);
Print("Price alert {0} added at {1}, total alerts: {2}", alert.Id, alert.Price, PriceAlerts.Count);
alert = api.PriceAlerts.Add(api.Symbol, api.Symbol.Bid + 20 * api.Symbol.PipSize, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual)
api.Print(f"Price alert {alert.Id} added at {alert.Price}, total alerts: {api.PriceAlerts.Count}")