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(); }
public Bar(JBar bar) : this(bar, true) { }