NinjaScript > Language Reference > Data > Bars > Session >

TimeZoneInfo

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
The time zone of the session template.
 

Property Value

A TimeZoneInfo representing the time zone of the session.

 

Syntax
Bars.Session.TimeZoneInfo
 

Property Of

Custom Indicator, Custom Strategy

 

 

Examples

// OnBarUpdate method
protected override void OnBarUpdate()
{
    // The session template's timezone
    Print("The session time zone is: " + Bars.Session.TimeZoneInfo.Id)
}