Deriving new financial indicators
Posted: Tue Jan 27, 2009 11:15 pm
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.
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.