и еще глупый вопрос, пытаюсь разобраться, почему у меня такая простая конструкция рисует непонятно что, а не цены закрытия. И почему зависит от задаваемого периода, если он у меня аже фигурирует в коде.

Code:
namespace TSLab.Script.Handlers
{
    [HandlerName("test")]
    [HandlerCategory("Indicators")]
    public class DIP : BasePeriodIndicatorHandler, IBar2DoubleHandler, IContextUses
    {
        public IList<double> Execute(ISecurity source)
        {
            return Calc(source, Context);
        }
        public static IList<double> Calc(ISecurity source, IContext context)
        {
            int count = source.Bars.Count;
            var close = source.ClosePrices;            
            return close;
        }
        public IContext Context { get; set; }
    }
}


Отредактировано Kovenant (Sat Jun 26 2010 08:50 AM)