Close Time (UTC) of the specified historical element.
SYNTAX
public DateTime TimeClose (int offset)
PARAMETERS
offset — int
Defines index of the required element.
RETURN
DateTime Returns a DataTime value representing the close time of the required element.
EXAMPLE
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace TimeCloseExamples
{
public class TimeCloseExamples : NETStrategy
{
public override void OnQuote()
{
Instrument inst = Instruments.GetInstrument("/ES[U4]");
BarData Bars = GetHistoricalData(new HistoricalDataRequest(inst,Period.Min)) as BarData;
if(Bars!=null)
{
Print(Bars.TimeClose(1));
}
}
}
}