ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  how to draw Fibonacci series .please provide some code.
Posted by subh on Jan-17-2014 19:40
Hi
peter i am unable to draw Fibonacci series .please provide some code using c++.i am failed to develop my own code.please help

Thanks
Subh

  Re: how to draw Fibonacci series .please provide some code.
Posted by Peter Kwan on Jan-18-2014 02:56
Hi subh,

By Fibonacci series, do you mean Fibonacci retracement? Fibonacci retracement are just
horizontal straight lines drawn based on your Fibonacci data values.

I assume you already know what is Fibonacci retracement, and so can obtain the data
values. To draw a straight line using those values, you may use something like:

XYChart *mainPriceChart = myFinanceChart->addMainChart(.......);
.... draw chart as usual .....


DrawArea *d = mainPriceChart->makeChart();

d->line(startX, c->getYCoor(priceValue1), endX, c->getYCoor(priceValue1), 0xff0000, 1);
... repeat the above for other values in your Fibonacci retracement ....

Hope this can help.

Regards
Peter Kwan