Menu

#30 Investing Support Chart Types

closed
lbayuk
None
5
2012-09-07
2010-10-23
No

OHLC (Open, High, Low, Close) Chart Type
Candlestick Chart Type

Related

Wiki: SampleOHLC

Discussion

  • lbayuk

    lbayuk - 2010-10-23

    To clarify, OHLC = Candlestick, as shown here: http://en.wikipedia.org/wiki/Candlestick_chart
    Is this a good reference for what you are requesting?

    I think it would make a good addition to PHPlot, however each data point requires 4 values and we don't have anything like that now. This would mean introducing a new data type, which makes it a more extensive change.

    On the other hand, perhaps we can do this with existing data-data and text-data data types, by using 4 Y values for each X and limiting to one actual data set per plot. This might work, because I don't think a candlestick plot with more than 1 data set would be unreadable. So the data array would simply be rows of (label, X, Yopen, YHigh, YLow, YClose) for example.

     
  • lbayuk

    lbayuk - 2010-10-31

    Correction: OHLC is an overall term; candlestick is one type of OHLC plot.
    Here is another: http://en.wikipedia.org/wiki/Open-high-low-close_chart

    In progress: 3 new plot types. A basic OHLC (vertical line shows the range,
    with tick marks for open and close); candlestick (using filled body for closing
    down, unfilled for closing up); and candlestick-filled (using filled body
    in both cases, data colors need to be set). Each row will use 4 Y values as
    described in the previous comment. Data colors and line thickness can be
    controlled. Candle/tick width is automatically calculated, but there are
    class variables that can be set to adjust this (similar to bar widths).

     
  • lbayuk

    lbayuk - 2010-11-02

    Samples from under-development PHPlot with OHLC plot types:
    http://phplot.sourceforge.net/samples/ohlc.php

     
  • lbayuk

    lbayuk - 2010-11-17

    This has been implemented and committed to CVS. It will be in the next release. There are 3 new plot types: ohlc, candlesticks, and candlesticks2 (at the last minute I changed 'candlesticks-filled' to 'candlesticks2'; not really happy about it but the first name was too long and the dash was annoying).

     
  • lbayuk

    lbayuk - 2010-12-05

    Implemented in PHPlot-5.3.0

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.