Example #1
0
        public AlligatorLips(DataSeries ds, int period, int delay, string description)
            : base(ds, description)
        {
            base.FirstValidValue = period + delay;

            if (FirstValidValue > ds.Count || FirstValidValue < 0)
            {
                FirstValidValue = ds.Count;
            }
            if (ds.Count < (period + delay))
            {
                return;
            }

            for (int bar = FirstValidValue; bar < ds.Count; bar++)
            {
                base[bar] = ShiftedMA.Series(ds, period, delay, ChoiceOfMA.SMMA)[bar];
            }
        }