void PlotChart()
        {
            if (curdelta > 0)
            {
                UpMomo.Set(curdelta);
                DownMomo.Set(0);
            }

            if (curdelta < 0)
            {
                DownMomo.Set(curdelta);
                UpMomo.Set(0);
            }

            DeltaMomo.Set(curdelta);
        }
        protected override void GomOnBarUpdate()
        {
            if (FirstTickOfBar)
            {
                prevdelta   = curdelta;
                curbardelta = 0;

                if (curdelta > 0)
                {
                    UpMomo.Set(curdelta);
                }

                if (curdelta < 0)
                {
                    DownMomo.Set(curdelta);
                }
            }
        }