WatchlistRemovedEventArgs
class cAlgo.API
DesktopCLICloud
Occurs when a watchlist is removed from the marketwatch.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (Watchlists.Removed).
Definition
public class WatchlistRemovedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
using cAlgo.API;
namespace cAlgo
{
// This sample shows how to use WatchlistRemovedEventArgs
public partial class WatchlistRemovedEventArgsSample : Indicator
{
protected override void Initialize()
{
Watchlists.Removed += OnWatchlistsRemoved;
}
private void OnWatchlistsRemoved(WatchlistRemovedEventArgs obj)
{
Print("Watchlist {0} removed", obj.Watchlist.Name);
}
public override void Calculate(int index)
{
}
}
}
import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
class Test():
def initialize(self):
api.Watchlists.Removed += self.on_watchlists_removed
def on_watchlists_removed(self, args):
print(f"Watchlist {args.Watchlist.Name} removed")
{
"AccessRights": "None",
"TimeZone": "UTC",
"IsOverlay": true
}
Properties
| Name | Description |
|---|---|
WatchlistDesktopCLICloudWatchlist | Gets the watchlist. |