Beispiel #1
0
        public FractalDown(DataSeries ds, string description)
            : base(ds, description)
        {
            DataSeries fracDnBar = FractalDownBar.Series(ds);

            for (int n = 0; n < ds.Count; n++)
            {
                if (fracDnBar[n] > 0)
                {
                    base.FirstValidValue = n;
                    break;
                }
            }

            for (int bar = base.FirstValidValue; bar < ds.Count; bar++)
            {
                int fb = (int)fracDnBar[bar];
                this[bar] = ds[fb];
            }
        }
Beispiel #2
0
 public static double Value(int bar, DataSeries ds)
 {
     DataSeries fracDnBar = FractalDownBar.Series(ds);
     int fb = (int)fracDnBar[bar];
     return ds[fb];
 }