Skip to content

WatchlistSymbolAddedEventArgs

Summary

Occurs when a new symbol is added to the watchlist.

Signature

1
public class WatchlistSymbolAddedEventArgs

Namespace

cAlgo.API

Properties

Name Description
Watchlist { get; } Gets the watchlist.
SymbolName { get; } Gets the symbol name.

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 WatchlistSymbolAddedEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class WatchlistSymbolAddedEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Watchlists.WatchlistSymbolAdded += Watchlists_WatchlistSymbolAdded;
         }
         private void Watchlists_WatchlistSymbolAdded(WatchlistSymbolAddedEventArgs obj)
         {
             Print("Symbol {0} Added to Watchlist {1}", obj.SymbolName, obj.Watchlist.Name);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: July 1, 2022

Comments