Skip to content

FavoriteTimeFramesRemovedEventArgs

class cAlgo.API Since 5.3

DesktopCLICloud

Provides data for the Favorite TimeFrames Removed 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 FavoriteTimeFramesRemovedEventArgs

Namespace: cAlgo.API · Group: EventArgs

Examples

protected override void OnStart()
{
    TimeFrameManager.Favorite.Removed += OnFavoriteTimeFramesRemoved;
}

private void OnFavoriteTimeFramesRemoved(FavoriteTimeFramesRemovedEventArgs args)
{
    Print("Removed from favorites: {0}", string.Join(", ", args.TimeFrames.Select(timeFrame => timeFrame.Name)));
}
def on_start(self):
    api.TimeFrameManager.Favorite.Removed += self.on_favorite_time_frames_removed

def on_favorite_time_frames_removed(self, args):
    api.Print("Removed from favorites: " + ", ".join([str(timeFrame) for timeFrame in args.TimeFrames]))

Properties

Name Description
TimeFramesDesktopCLICloudTimeFrame[] Gets the removed time frames.

See also