Skip to content

TradeWatchIsVisibleChangedEventArgs

class cAlgo.API

DesktopCLICloud

Provides data for plugin trade watch IsVisibleChanged event.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public class TradeWatchIsVisibleChangedEventArgs

Namespace: cAlgo.API · Group: EventArgs

Examples

protected override void OnStart()
{
    TradeWatch.IsVisibleChanged += OnTradeWatchIsVisibleChanged;
}

private void OnTradeWatchIsVisibleChanged(TradeWatchIsVisibleChangedEventArgs args)
{
    Print("Trade watch is visible: {0}", args.TradeWatch.IsVisible);
}
def on_start(self):
    api.TradeWatch.IsVisibleChanged += self.on_trade_watch_is_visible_changed

def on_trade_watch_is_visible_changed(self, args):
    api.Print(f"Trade watch is visible: {args.TradeWatch.IsVisible}")

Properties

Name Description
TradeWatchDesktopCLICloudTradeWatch Trade watch.

See also