17 using Newtonsoft.Json;
29 private bool _openSet;
30 private decimal? _open;
31 private decimal? _high;
32 private decimal? _low;
33 private decimal? _close;
38 public DateTime
Time {
get;
set; }
57 set { _open = value.SmartRounding(); }
66 set { _high = value.SmartRounding(); }
75 set { _low = value.SmartRounding(); }
83 get {
return _close; }
84 set { _close = value.SmartRounding(); }
100 public Candlestick(
long time, decimal? open, decimal? high, decimal? low, decimal? close)
101 : this(
QuantConnect.
Time.UnixTimeStampToDateTime(time), open, high, low, close)
113 public Candlestick(DateTime time, decimal? open, decimal? high, decimal? low, decimal? close)
146 : this(candlestick.
Time, candlestick.
Open, candlestick.
High, candlestick.
Low, candlestick.
Close)
190 else if (value >
High)
High = value;
191 else if (value <
Low)
Low = value;