Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using JsonFx.Json;
|
---|
5 |
|
---|
6 | namespace 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.