Inheritance diagram for NPlot::CandlePlot:
Public Types | |
enum | Styles { Stick, Filled } |
Possible CandleStick styles. More... | |
Public Member Functions | |
CandlePlot () | |
Default constructor. | |
void | Draw (Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis) |
Draws the candle plot on a GDI+ surface agains the provided x and y axes. | |
Axis | SuggestXAxis () |
Returns an x-axis that is suitable for drawing this plot. | |
Axis | SuggestYAxis () |
Returns a y-axis that is suitable for drawing this plot. | |
virtual void | DrawInLegend (Graphics g, Rectangle startEnd) |
Draws a representation of this plot in the legend. | |
void | WriteData (System.Text.StringBuilder sb, RectangleD region, bool onlyInRegion) |
Write data associated with the plot as text. | |
Properties | |
object | OpenData |
Gets or sets the data, or column name for the open values. | |
object | openData_ = null |
object | LowData |
Gets or sets the data, or column name for the interval low values. | |
object | lowData_ = null |
object | HighData |
Gets or sets the data, or column name for the interval high values. | |
object | highData_ = null |
object | CloseData |
Gets or sets the data, or column name for the close values. | |
object | closeData_ = null |
object | AbscissaData |
Gets or sets the data, or column name for the abscissa [x] axis. | |
object | abscissaData_ = null |
System.Drawing.Color | Color |
Color of this plot [excluding interior of filled boxes if Style is fill]. | |
Color | color_ = Color.Black |
Styles | Style = Styles.Filled |
Specifies the CandleStick style to use. | |
Color | BullishColor = Color.White |
If CandlePlot.Style is Filled, then bullish open-close moves are displayed in this color. | |
Color | BearishColor = Color.Black |
If CandlePlot.Style is Filled, then bearish moves are displayed in this color. | |
int | StickWidth |
Width of each stick in pixels. | |
int | stickWidth_ = AutoScaleStickWidth |
const int | AutoScaleStickWidth = 0 |
If stick width is set equal to this value, the width will be automatically scaled dependant on the space between sticks. | |
bool | Centered |
If true (default), bars will be centered on the abscissa times. | |
bool | centered_ = true |
Static Private Member Functions | |
static float | CalculatePhysicalSeparation (CandleDataAdapter cd, PhysicalAxis xAxis) |
Calculates the physical (not world) separation between abscissa values. | |
Classes | |
class | CandleDataAdapter |
class | CandleStyle |
class | Stick |
Definition at line 175 of file CandlePlot.cs.
|
Possible CandleStick styles.
Definition at line 748 of file CandlePlot.cs. |
|
Default constructor.
Definition at line 458 of file CandlePlot.cs. |
|
Calculates the physical (not world) separation between abscissa values.
Definition at line 469 of file CandlePlot.cs. References NPlot::CandlePlot::CandleDataAdapter::Count, and NPlot::PhysicalAxis::WorldToPhysical(). Referenced by Draw(). |
|
Draws the candle plot on a GDI+ surface agains the provided x and y axes.
Implements NPlot::IDrawable. Definition at line 496 of file CandlePlot.cs. References AbscissaData, AutoScaleStickWidth, BearishColor, BullishColor, CalculatePhysicalSeparation(), centered_, NPlot::PointOLHC::Close, CloseData, color_, NPlot::CandlePlot::CandleDataAdapter::Count, NPlot::BasePlot::DataMember, NPlot::BasePlot::DataSource, NPlot::PointOLHC::High, HighData, NPlot::PointOLHC::Low, LowData, NPlot::PointOLHC::Open, OpenData, StickWidth, Style, NPlot::PhysicalAxis::WorldToPhysical(), and NPlot::PointOLHC::X. |
|
Draws a representation of this plot in the legend.
Implements NPlot::IPlot. Definition at line 716 of file CandlePlot.cs. References color_. |
|
Returns an x-axis that is suitable for drawing this plot.
Implements NPlot::IPlot. Definition at line 604 of file CandlePlot.cs. References AbscissaData, CloseData, NPlot::BasePlot::DataMember, NPlot::BasePlot::DataSource, HighData, LowData, OpenData, and NPlot::CandlePlot::CandleDataAdapter::SuggestXAxis(). |
|
Returns a y-axis that is suitable for drawing this plot.
Implements NPlot::IPlot. Definition at line 617 of file CandlePlot.cs. References AbscissaData, CloseData, NPlot::BasePlot::DataMember, NPlot::BasePlot::DataSource, HighData, LowData, OpenData, and NPlot::CandlePlot::CandleDataAdapter::SuggestYAxis(). |
|
Write data associated with the plot as text.
Implements NPlot::IPlot. Definition at line 838 of file CandlePlot.cs. |
|
Gets or sets the data, or column name for the abscissa [x] axis.
Definition at line 698 of file CandlePlot.cs. Referenced by Draw(), SuggestXAxis(), and SuggestYAxis(). |
|
Definition at line 708 of file CandlePlot.cs. |
|
If stick width is set equal to this value, the width will be automatically scaled dependant on the space between sticks.
Definition at line 809 of file CandlePlot.cs. Referenced by Draw(). |
|
If CandlePlot.Style is Filled, then bearish moves are displayed in this color.
Definition at line 781 of file CandlePlot.cs. Referenced by Draw(). |
|
If CandlePlot.Style is Filled, then bullish open-close moves are displayed in this color.
Definition at line 775 of file CandlePlot.cs. Referenced by Draw(). |
|
If true (default), bars will be centered on the abscissa times. If false, bars will be drawn between the corresponding abscissa time and the next abscissa time. Definition at line 818 of file CandlePlot.cs. |
|
Definition at line 828 of file CandlePlot.cs. Referenced by Draw(). |
|
Gets or sets the data, or column name for the close values.
Definition at line 681 of file CandlePlot.cs. Referenced by Draw(), SuggestXAxis(), and SuggestYAxis(). |
|
Definition at line 691 of file CandlePlot.cs. |
|
Color of this plot [excluding interior of filled boxes if Style is fill]. To change the Bullish and Bearish colours in Filled mode, use the BullishColor and BearishColor properties. Definition at line 732 of file CandlePlot.cs. |
|
Definition at line 742 of file CandlePlot.cs. Referenced by Draw(), and DrawInLegend(). |
|
Gets or sets the data, or column name for the interval high values.
Definition at line 664 of file CandlePlot.cs. Referenced by Draw(), SuggestXAxis(), and SuggestYAxis(). |
|
Definition at line 674 of file CandlePlot.cs. |
|
Gets or sets the data, or column name for the interval low values.
Definition at line 647 of file CandlePlot.cs. Referenced by Draw(), SuggestXAxis(), and SuggestYAxis(). |
|
Definition at line 657 of file CandlePlot.cs. |
|
Gets or sets the data, or column name for the open values.
Definition at line 630 of file CandlePlot.cs. Referenced by Draw(), SuggestXAxis(), and SuggestYAxis(). |
|
Definition at line 640 of file CandlePlot.cs. |
|
Width of each stick in pixels. It is best if this is an odd number. Definition at line 788 of file CandlePlot.cs. Referenced by Draw(). |
|
Definition at line 802 of file CandlePlot.cs. |
|
Specifies the CandleStick style to use.
Definition at line 769 of file CandlePlot.cs. Referenced by Draw(). |