source: code/Website/dot-net-library/written-by-xiao-yifang/OpenFlashChart/Candle.cs@ 7937

Last change on this file since 7937 was 7849, checked in by dennisw, 15 years ago
File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using JsonFx.Json;
5
6namespace OpenFlashChart
7{
8 public class CandleValue:BarValue
9 {
10 protected double? high;
11 protected double? low;
12
13 [JsonProperty("high")]
14 public double? High
15 {
16 get { return high; }
17 set { high = value; }
18 }
19 [JsonProperty("low")]
20 public double? Low
21 {
22 get { return low; }
23 set { low = value; }
24 }
25 public CandleValue()
26 {}
27 public CandleValue(double high,double top,double bottom,double low)
28 {
29 this.high = high;
30 this.top = top;
31 this.bottom = bottom;
32 this.low = low;
33 }
34 }
35 public class Candle:BarBase
36 {
37 public Candle()
38 {
39 this.ChartType = "candle";
40 }
41 public void Add(CandleValue candleValue)
42 {
43 this.values.Add(candleValue);
44 }
45 }
46}
Note: See TracBrowser for help on using the repository browser.