IndicatorAttribute.TimeZone
property · IndicatorAttribute · cAlgo.API
DesktopCLICloud
Gets or sets the chart timezone of the displayed indicator.
Definition
public string TimeZone {get; set;}
indicatorAttribute.TimeZone: str
Returns string
Examples
public partial class SampleIndicator : Indicator
{
protected override void Initialize()
{
Print("Indicator time zone: {0}, last bar opened at {1}", TimeZone.DisplayName, Bars.LastBar.OpenTime);
}
public override void Calculate(int index)
{
}
}
def initialize(self):
api.Print(f"Indicator time zone: {api.TimeZone.DisplayName}, last bar opened at {api.Bars.LastBar.OpenTime}")
{
"AccessRights": "None",
"TimeZone": "Eastern Standard Time",
"IsOverlay": true
}