Example #1
0
        public Bar(JBar bar, bool strict) : this(bar.open(), bar.high(), bar.low(), bar.close(), date(bar.date()), strict)
        {
            var jOpenInterest = bar.openInterest();

            openInterest = jOpenInterest == null ? Double.NaN : jOpenInterest.doubleValue();
            var jVolume = bar.volume();

            volume = jVolume == null ? Double.NaN : jVolume.doubleValue();
        }
Example #2
0
 public Bar(JBar bar) : this(bar, true)
 {
 }