public void SetTF(EnmTF tf)
        {
            TF = tf;
            if (TF == EnmTF.M1)
            {
                DateTF = CUtilTime.NormalizeSeconds(Date);
            }
            else if (TF == EnmTF.M5)
            {
                DateTF = CUtilTime.NormalizeToM5(Date);
            }
            else if (TF == EnmTF.M15)
            {
                DateTF = CUtilTime.NormalizeToM15(Date);
            }
            else if (TF == EnmTF.M30)
            {
                DateTF = CUtilTime.NormalizeToM30(Date);
            }
            else if (TF == EnmTF.H1)
            {
                DateTF = CUtilTime.NormalizeHour(Date);
            }
            else if (TF == EnmTF.D1)
            {
                DateTF = CUtilTime.NormalizeDay(Date);
            }

            else
            {
                DateTF = Date;
            }
        }