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

Message ListMessage List     Post MessagePost Message

  extract indicator values
Posted by chang on Jul-31-2013 15:19
Hi Peter

My FinanceChart calls addBollingerBand() to draw the BollingerBand indicator. Is there a way to extract the series of indicator values? Or do I have to write the Bollinger indicator from scratch myself...something which I am trying to avoid?

Thanks.

  Re: extract indicator values
Posted by chang on Jul-31-2013 15:43
Hi Peter

Just found a similar question posted by someone back in '07. If your answer to my question hasn't changed much then I will just copy the relevant part of the code from the FinanceChart library. Correct?


chang wrote:

Hi Peter

My FinanceChart calls addBollingerBand() to draw the BollingerBand indicator. Is there a way to extract the series of indicator values? Or do I have to write the Bollinger indicator from scratch myself...something which I am trying to avoid?

Thanks.

  Re: extract indicator values
Posted by Peter Kwan on Jul-31-2013 20:19
Hi Chang,

I think the answer would still be the same. Basically, as FinanceChart is open source, you can copy the code from FinanceChart instead of writing the code yourself. You can also modify FinanceChart so that it keeps the data series after plotting it (currently, the FinanceChart discards the data series after plotting it). For single value indicators (such as lines, bars, etc), and the most convenient place to do that is to override the "formatIndicatorLabel" function. For double value indicators (bands), the most convenient place is the "addBand" function.

Hope this can help.

Regards
Peter Kwan