Skip to content

FavoriteTimeFramesRemovedEventArgs.TimeFrames

property · FavoriteTimeFramesRemovedEventArgs · cAlgo.API Since 5.3

DesktopCLICloud

Gets the removed time frames.

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 TimeFrame[] TimeFrames {get;}
favoriteTimeFramesRemovedEventArgs.TimeFrames: list[TimeFrame]

Returns TimeFrame[]

Examples

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

private void OnFavoriteTimeFramesRemoved(FavoriteTimeFramesRemovedEventArgs args)
{
    foreach (var timeFrame in args.TimeFrames)
        Print("{0} is no longer a favorite time frame", timeFrame);
}
def on_start(self):
    api.TimeFrameManager.Favorite.Removed += self.on_favorite_time_frames_removed

def on_favorite_time_frames_removed(self, args):
    for timeFrame in args.TimeFrames:
        api.Print(f"{timeFrame} is no longer a favorite time frame")