Chart question lazarus / 39-Graphics ---------------------------------------------------------------------- xinyiman · 2014-06-13 18:20 Hello guys, who tells me how to make the candlestick charts that do not necessarily depart from the value 0? I could use colored bars or red or green for example, start at 8 and end at 13. Thank ---------------------------------------------------------------------- wp · 2014-06-13 18:34 To be honest I never used such a chart. Could you post a sketch how it should look like? If it would come down to a bar series: This series has a "ZeroLevel" property to start the bars at. ---------------------------------------------------------------------- xinyiman · 2014-06-13 19:36 Thanks ZeroLevel with works like I want. ---------------------------------------------------------------------- taazz · 2014-06-13 19:40 Quote from: wp on June 13, 2014, 08:34:37 pmTo be honest I never used such a chart. Could you post a sketch how it should look like? If it would come down to a bar series: This series has a "ZeroLevel" property to start the bars at. Take a look on the attached image. In short candlesticks are financial charts for a stock in predefined intervals in the day eg 5 minutes 10 15 etc. What they show are the 4 basic prices of a stock for that period open= the price of the stock 's first action (buy/sell) for that interval ee 5min close the price of the last action high the highest price inside the interval and low is the lowest price in the interval if high or low are equal to open/close no sticks are drawn for that if the open price is higher than the close price then the rectangle is red if the close price is higher or equal to the open price then in green those color should be adjustable and based on the app's general theme. a sample can be seen at http://www.tmssoftware.com/site/img/chart_collection_large.png.   Titled OHLC chart (top left) ---------------------------------------------------------------------- wp · 2014-06-13 21:16 Sounds similar to the ohlc series that comes with TAChart. There is an example in the (lazarus)/components/tachart/demo/multi folder, or have a look at http://wiki.lazarus.freepascal.org/TAChart_Demos#multi (a bit down the page). ---------------------------------------------------------------------- taazz · 2014-06-13 21:39 true both Box-and-Whiskers-Series and OHLC can be used. I prefer the box and whiskers look from the ticks on a stick personally but hey different strokes and all that. ---------------------------------------------------------------------- xinyiman · 2014-06-14 13:02 In fact I want to make a chart like this http://www.forextradingitalia.it/wp-content/uploads/2012/09/bande-di- bollinger.jpg  and the example is very similar but has OHCL dashes too ... ---------------------------------------------------------------------- wp · 2014-06-14 15:31 I'd use the Box-Whisker series, just have a look at the demo that I mentioned above. You can configure every detail of the series, e.g. remove the "Whisker" by setting the WhiskerWidth to zero. The only problem is that a common color is used throughout the series. In order to change color between increasing and decreasing price I'd use two series: the first one in green for the increasing price, and the other one in red for the decreasing price. When you add a data point to the chart you only have to decide whether the price is increasing or decreasing in order to add it to the correct series. ---------------------------------------------------------------------- xinyiman · 2014-06-14 17:19 Thank you