namespace Scrypt
{
public class Class : IExternalScript
{
private Time t_h = new Time(); //время в формате HHMMSS
//или
private TimeInMins TimeInMins_h = new TimeInMins(); //время в минутах с начала суток
public virtual void Execute(IContext ctx, ISecurity Source)
{
.......................
//создаем массив времени
IList<double> t = ctx.GetData("t", null, delegate { return t_h.Execute(Source); });
//далее в коде обращаемся к нужной свече через индекс, например время последней свечи равно t[i]
}
.................
}