WatchlistSymbolRemovedEventArgs.SymbolName
property · WatchlistSymbolRemovedEventArgs · cAlgo.API
DesktopCLICloud
Gets the symbol name.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (Watchlists.WatchlistSymbolRemoved).
Definition
public string SymbolName {get;}
watchlistSymbolRemovedEventArgs.SymbolName: str
Returns string
Examples
protected override void OnStart()
{
Watchlists.WatchlistSymbolRemoved += OnWatchlistSymbolRemoved;
}
private void OnWatchlistSymbolRemoved(WatchlistSymbolRemovedEventArgs args)
{
if (args.SymbolName == SymbolName)
Print("The symbol of the cBot, {0}, was removed from watchlist {1}", args.SymbolName, args.Watchlist.Name);
}
def on_start(self):
api.Watchlists.WatchlistSymbolRemoved += self.on_watchlist_symbol_removed
def on_watchlist_symbol_removed(self, args):
if args.SymbolName == api.SymbolName:
api.Print(f"The symbol of the cBot, {args.SymbolName}, was removed from watchlist {args.Watchlist.Name}")