I have now incorporated all the TChart financial indicators into my project. I now need to add several more.
Multiple Moving Average
Money Flow Index
Average True Range
Rate of Change
William %R
etc
Would it be possible to see a Delphi example of deriving new financial indicators. For example, derive a Multiple Moving Average from a TteeMovingAverageFunction.
In the StatChar unit we have TMovingAverageFunction declared incorporating the Calculate function. I figure I could derive a TMultipleMovingAverageFunction from the TMovingAverageFunction class.
All I should need do is loop x number of times into the Calculate function incrementing the PERIOD each time. BUT I just cannot see when the calculate function is called. Any help, especially an example, would be appreciated.
Thanx in advance.
Deriving new financial indicators
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Phineas,
Sorry but I don't have an example ready now. However, Calculate is an overriden function from TTeeFunction and there it's used in the CalculateAllPoints and CalculatePeriodetc methods. In TTeeMovingFunction, which is the ancestor of TMovingAverageFunction, Calculate is used in DoCalculation.
Hope this helps!
Sorry but I don't have an example ready now. However, Calculate is an overriden function from TTeeFunction and there it's used in the CalculateAllPoints and CalculatePeriodetc methods. In TTeeMovingFunction, which is the ancestor of TMovingAverageFunction, Calculate is used in DoCalculation.
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Narcis, I have managed to derive a few more indicators and they work well. Multiple Moving Average, Money Flow Index, William%R etc. All derived from TeeFunction.
Question? Is it possible to have two different vertical scales overlayed in TCharts. One on the Left and one on the right, each displaying a different series, both scrolling and looking nice.
Question? Is it possible to have two different vertical scales overlayed in TCharts. One on the Left and one on the right, each displaying a different series, both scrolling and looking nice.
Hi Phineas,
Yes, it's possible. Please take a look at the tutorial 4.Axis Design. Both features demo an tutorials can be found at TeeChart's program group.
If you still find any problems doing it, don't hesitate to let us know.
Yes, it's possible. Please take a look at the tutorial 4.Axis Design. Both features demo an tutorials can be found at TeeChart's program group.
If you still find any problems doing it, don't hesitate to let us know.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |