Search Results for

    Show / Hide Table of Contents

    Class StockPt

    The basic PointPair class holds three data values (X, Y, Z). This class extends the basic PointPair to contain five data values (X, Y, Z, Open, Close).

    Inheritance
    Object
    PointPairBase
    PointPair
    StockPt
    Implements
    ICloneable
    ISerializable
    Inherited Members
    PointPair.Z
    PointPair.Tag
    PointPair.ICloneable.Clone()
    PointPair.Clone()
    PointPair.schema2
    PointPair.IsInvalid3D
    PointPair.LowValue
    PointPair.Equals(Object)
    PointPair.GetHashCode()
    PointPair.ToString(String, String, String)
    PointPairBase.Missing
    PointPairBase.DefaultFormat
    PointPairBase.X
    PointPairBase.Y
    PointPairBase.schema
    PointPairBase.IsMissing
    PointPairBase.IsInvalid
    PointPairBase.IsValueInvalid(Double)
    PointPairBase.ToString()
    PointPairBase.ToString(String)
    PointPairBase.ToString(String, String)
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    [Serializable]
    public class StockPt : PointPair, ICloneable, ISerializable
    Remarks

    The values are remapped to Date, High, Low, Open, and Close.

    Constructors

    | Improve this Doc View Source

    StockPt()

    Default Constructor

    Declaration
    public StockPt()
    | Improve this Doc View Source

    StockPt(Double, Double, Double, Double, Double, Double)

    Construct a new StockPt from the specified data values

    Declaration
    public StockPt(double date, double high, double low, double open, double close, double vol)
    Parameters
    Type Name Description
    Double date

    The trading date (XDate)

    Double high

    The daily high stock price

    Double low

    The daily low stock price

    Double open

    The opening stock price

    Double close

    The closing stock price

    Double vol

    The daily trading volume

    | Improve this Doc View Source

    StockPt(Double, Double, Double, Double, Double, Double, String)

    Construct a new StockPt from the specified data values including a Tag property

    Declaration
    public StockPt(double date, double high, double low, double open, double close, double vol, string tag)
    Parameters
    Type Name Description
    Double date

    The trading date (XDate)

    Double high

    The daily high stock price

    Double low

    The daily low stock price

    Double open

    The opening stock price

    Double close

    The closing stock price

    Double vol

    The daily trading volume

    String tag

    The user-defined Tag property.

    | Improve this Doc View Source

    StockPt(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected StockPt(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    | Improve this Doc View Source

    StockPt(PointPair)

    The StockPt copy constructor.

    Declaration
    public StockPt(PointPair rhs)
    Parameters
    Type Name Description
    PointPair rhs

    The basis for the copy.

    | Improve this Doc View Source

    StockPt(StockPt)

    The StockPt copy constructor.

    Declaration
    public StockPt(StockPt rhs)
    Parameters
    Type Name Description
    StockPt rhs

    The basis for the copy.

    Fields

    | Improve this Doc View Source

    Close

    This closing value

    Declaration
    public double Close
    Field Value
    Type Description
    Double
    | Improve this Doc View Source

    Open

    This opening value

    Declaration
    public double Open
    Field Value
    Type Description
    Double
    | Improve this Doc View Source

    schema3

    Current schema value that defines the version of the serialized file

    Declaration
    public const int schema3 = 11
    Field Value
    Type Description
    Int32
    | Improve this Doc View Source

    Vol

    This daily trading volume

    Declaration
    public double Vol
    Field Value
    Type Description
    Double

    Properties

    | Improve this Doc View Source

    ColorValue

    The ColorValue property. This is used with the GradientByColorValue option.

    Declaration
    public override double ColorValue { get; set; }
    Property Value
    Type Description
    Double
    Overrides
    PointPair.ColorValue
    | Improve this Doc View Source

    Date

    Map the Date property to the X value

    Declaration
    public double Date { get; set; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    High

    Map the high property to the Y value

    Declaration
    public double High { get; set; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    IsInvalid5D

    Readonly value that determines if either the Date, Close, Open, High, or Low coordinate in this StockPt is an invalid (not plotable) value. It is considered invalid if it is missing (equal to System.Double.Max), Infinity, or NaN.

    Declaration
    public bool IsInvalid5D { get; }
    Property Value
    Type Description
    Boolean

    true if any value is invalid

    | Improve this Doc View Source

    Low

    Map the low property to the Z value

    Declaration
    public double Low { get; set; }
    Property Value
    Type Description
    Double

    Methods

    | Improve this Doc View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a SerializationInfo instance with the data needed to serialize the target object

    Declaration
    [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    Overrides
    PointPair.GetObjectData(SerializationInfo, StreamingContext)
    | Improve this Doc View Source

    ToString(Boolean)

    Format this StockPt value using the default format. Example: "( 12.345, -16.876 )". The two double values are formatted with the "g" format type.

    Declaration
    public override string ToString(bool isShowAll)
    Parameters
    Type Name Description
    Boolean isShowAll

    true to show all the value coordinates

    Returns
    Type Description
    String

    A string representation of the StockPt.

    Overrides
    PointPair.ToString(Boolean)
    | Improve this Doc View Source

    ToString(String, Boolean)

    Format this PointPair value using a general format string. Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )". If is true, then the third all coordinates are shown.

    Declaration
    public override string ToString(string format, bool isShowAll)
    Parameters
    Type Name Description
    String format

    A format string that will be used to format each of the two double type values (see ToString()).

    Boolean isShowAll

    true to show all the value coordinates

    Returns
    Type Description
    String

    A string representation of the PointPair

    Overrides
    PointPair.ToString(String, Boolean)

    Implements

    System.ICloneable
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX