Files
crm.e5.pl/include/ECM/open_flash_chart2/dot-net-library/written-by-xiao-yifang/OpenFlashChart/Candle.cs
2024-04-27 09:23:34 +02:00

47 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using JsonFx.Json;
namespace OpenFlashChart
{
public class CandleValue:BarValue
{
protected double? high;
protected double? low;
[JsonProperty("high")]
public double? High
{
get { return high; }
set { high = value; }
}
[JsonProperty("low")]
public double? Low
{
get { return low; }
set { low = value; }
}
public CandleValue()
{}
public CandleValue(double high,double top,double bottom,double low)
{
this.high = high;
this.top = top;
this.bottom = bottom;
this.low = low;
}
}
public class Candle:BarBase
{
public Candle()
{
this.ChartType = "candle";
}
public void Add(CandleValue candleValue)
{
this.values.Add(candleValue);
}
}
}