Skip to content

WatchlistAddedEventArgs

Summary

Occures when a new watchlist is added.

Signature

1
public class WatchlistAddedEventArgs

Namespace

cAlgo.API

Properties

Name Description
Watchlist { get; } Gets the watchlist.

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 WatchlistAddedEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class WatchlistAddedEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Watchlists.Added += Watchlists_Added;
         }
         private void Watchlists_Added(WatchlistAddedEventArgs obj)
         {
             Print("Watchlist {0} hase been added", obj.Watchlist.Name);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: November 25, 2022

Comments