Skip to content

WatchlistSymbolRemovedEventArgs

Summary

Occurs when the symbol is removed from the watchlist.

Signature

1
public class WatchlistSymbolRemovedEventArgs

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 using cAlgo.API;
 namespace cAlgo
 {
     // This sample shows how to use WatchlistSymbolRemovedEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class WatchlistSymbolRemovedEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Watchlists.WatchlistSymbolRemoved += OnWatchlistSymbolRemoved;
         }
         private void OnWatchlistSymbolRemoved(WatchlistSymbolRemovedEventArgs obj)
         {
             Print("Symbol {0} removed from watchlist {1}", obj.SymbolName, obj.Watchlist.Name);
         }
         public override void Calculate(int index)
         {
         }
     }
 }
1
2
3
4
5
6
7
8
 import clr
 clr.AddReference("cAlgo.API")
 from cAlgo.API import *
 class Test():    
     def initialize(self):
         api.Watchlists.WatchlistSymbolRemoved += self.on_watchlist_symbol_removed
     def on_watchlist_symbol_removed(self, args):
         print(f"Symbol {args.SymbolName} removed from watchlist {args.Watchlist.Name}")

See Also

Properties

Watchlist

Summary

Gets the watchlist.

Signature

1
public Watchlist Watchlist {get;}

Return Value

Watchlist

SymbolName

Summary

Gets the symbol name.

Signature

1
public string SymbolName {get;}

Return Value

string