How to use function and period

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Fang
Newbie
Newbie
Posts: 17
Joined: Wed May 18, 2005 4:00 am
Location: Johns Hopkins University

How to use function and period

Post by Fang » Fri May 20, 2005 8:46 pm

Hi,
i plan to write a custom function, first or second order derivative. The forms are very close to Moving Average. I need to calculate a new value for each value based on its nearby values. Got a few questions here

What the range in the Calculate() mean? Are they the range controlled by period style or?

Ex. if i want to do average of nearby values
Old Data 1 2 3 4 5 6 7
New Data (1+2)/2 (1+2+3)/3 (2+3+4)/3 ...
New Value 1.5 2 3 ...

How exactly shall I write the Calculate()? and where shall I store all the new values?

Best regards
Fang

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu May 26, 2005 11:44 am

Hi Fang,

have you read the TeeChart for Net Tutorial - Working with Functions - Deriving Custom Functions ?
It shows how to create a new custom function including an example.

Fang
Newbie
Newbie
Posts: 17
Joined: Wed May 18, 2005 4:00 am
Location: Johns Hopkins University

Post by Fang » Fri May 27, 2005 10:03 pm

that's the question I have after read it :lol: I'll re-read it.

Post Reply