Exemple #1
0
 public void SetDefault()
 {
     StartDay           = new LocalDate(2013, 9, 19);
     EndDay             = new LocalDate(2018, 9, 27);
     Portfolio          = new Portfolio(10000.0f, 1.20f, 0.92f, 1000.0f);
     Chp                = new CupHandleParameters(CupHandleDefinition.Haiku1);
     MinEpsGrowth       = 0.25f;
     MinNumPrevQuarters = 3;
 }
Exemple #2
0
        public CupHandleParameters(string data)
        {
            byte[] bytes            = Encoding.UTF8.GetBytes(data);
            CupHandleParameters chp = ZeroFormatterSerializer.Deserialize <CupHandleParameters>(bytes);

            Setup         = chp.Setup;
            CupLeft       = chp.CupLeft;
            CupRight      = chp.CupRight;
            Handle        = chp.Handle;
            AC            = chp.AC;
            PivotRatio    = chp.PivotRatio;
            BuyWait       = chp.BuyWait;
            CBdiffMin     = chp.CBdiffMin;
            MinSingleRank = chp.MinSingleRank;
        }