Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it is not an issue. it is related to OHLC chart #2003

Closed
IshuPhogat opened this issue Dec 23, 2016 · 3 comments
Closed

it is not an issue. it is related to OHLC chart #2003

IshuPhogat opened this issue Dec 23, 2016 · 3 comments

Comments

@IshuPhogat
Copy link

IshuPhogat commented Dec 23, 2016

hi @danielgindi ,
firstly thanks for making this great library. This is great.

But at this time I am facing a problem and want to your suggestion/help.
I have an app in which your chart's library has been implemented. This app is in Obj-C language.
Now I want to implement OHLC and many more chart view in it. This is my first project on chart and I made most of charts in it using @danielgindi charts . but i couldn't understand, How to make OHLC chart in it.

Please give me any suggestion.

thanks

@KodiKraig
Copy link

I have been working with Charts for awhile now but I am not sure what "OHLC" stands for. Could you elaborate?

@IshuPhogat
Copy link
Author

A simple variant on the OHLC chart is the HLC high-low-close chart that identifies the range of the time unit's price action (high - low) and the end result of the time unit's price action (the close).

In technical analysis OHLC charts are often combined with charts of other types such as line charts (showing moving average), column charts (trading volume), and range areas (Bollinger Bands).

have a look on below images...

screen shot 2016-12-26 at 10 27 32 am

group of this type of Bollinger Bands made a OHLC chart. and i want to made a chart like this :-

screen shot 2016-12-26 at 10 18 29 am

if you have any idea or suggestion that how will I draw a chart like the above image then please suggestion me.

Thanks

@liuxuan30
Copy link
Member

liuxuan30 commented Dec 28, 2016

Ah more charts!
This library provides a way to implement more charts based on the APIs. I would suggest you take a look at how candle stick chart is implemented first, and walk through the library to know how it works.

Normally, the process is:

  1. figure out how to draw your chart. e.g. where to start, how to render, and where to end, and the next loop. This requires you to understand CoreGraphics APIs to draw the shape.
  2. After you know how to draw the shape, you should start thinking about how to write you chart data and data entries to get the data you need when drawing.
  3. Leverage the axis/contentRect concepts and APIs of this library to draw your chart. The library already defines the axis layout and where is your canvas. So you can focus on the data and rendering.

Rendering this OHLC chart shape seems not hard after looking at the demo. You should be able to figure it out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants