using Skender.Stock.Indicators;
namespace TestCandleConversion
public class MyCustomQuote : IQuote
public DateTime Date { get; set; }
public decimal Open { get; set; }
public decimal High { get; set; }
public decimal Low { get; set; }
public decimal Close { get; set; }
public decimal Volume { get; set; }
public int MyOtherProperty { get; set; }
static void Main(string[] args)
var quote = new MyCustomQuote
Date = new DateTime(2021, 1, 1),
CandleProperties candle = quote.ToCandle();
Console.WriteLine("MyOtherProperty on the Quote is " + quote.MyOtherProperty);
Console.WriteLine("MyOtherProperty on the Candle is " + candle.MyOtherProperty);
Console.WriteLine("Upperwick on the Candle is " + candle.Upperwick);