Skip to content

TradeWatchSizeChangedEventArgs

class cAlgo.API

DesktopCLICloud

Provides data for plugin trade watch SizeChanged 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 TradeWatchSizeChangedEventArgs

Namespace: cAlgo.API · Group: EventArgs

Examples

protected override void OnStart()
{
    TradeWatch.SizeChanged += OnTradeWatchSizeChanged;
}

private void OnTradeWatchSizeChanged(TradeWatchSizeChangedEventArgs args)
{
    Print("Trade watch resized to {0} x {1}", args.TradeWatch.Width, args.TradeWatch.Height);
}
def on_start(self):
    api.TradeWatch.SizeChanged += self.on_trade_watch_size_changed

def on_trade_watch_size_changed(self, args):
    api.Print(f"Trade watch resized to {args.TradeWatch.Width} x {args.TradeWatch.Height}")

Properties

Name Description
TradeWatchDesktopCLICloudTradeWatch Trade watch.

See also