FavoriteTimeFramesAddedEventArgs
class cAlgo.API Since 5.3
DesktopCLICloud
Provides data for the Favorite TimeFrames Added 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 FavoriteTimeFramesAddedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
TimeFrameManager.Favorite.Added += OnFavoriteTimeFramesAdded;
}
private void OnFavoriteTimeFramesAdded(FavoriteTimeFramesAddedEventArgs args)
{
Print("Added to favorites: {0}", string.Join(", ", args.TimeFrames.Select(timeFrame => timeFrame.Name)));
}
def on_start(self):
api.TimeFrameManager.Favorite.Added += self.on_favorite_time_frames_added
def on_favorite_time_frames_added(self, args):
api.Print("Added to favorites: " + ", ".join([str(timeFrame) for timeFrame in args.TimeFrames]))
Properties
| Name | Description |
|---|---|
TimeFramesDesktopCLICloudTimeFrame[] | Gets the added time frames. |