Page 1 of 1

How Can I Change source series in program

Posted: Tue Feb 05, 2008 4:48 am
by 9526591
Hi
i have three lines series
and one moving average line depend on the first line

now i need to change the moving average period
and i need to change the moving average source series from line 1 to line 2 or line 3

all this in code

can you help me
thanks

Posted: Tue Feb 05, 2008 8:56 am
by yeray
Hi Jameh2020,

You can change function period as follows:

Code: Select all

TChart1.Series(FunctionIndex).FunctionType.Period = NewPeriodValue
You can assign a function source as follows:

Code: Select all

TChart1.Series(FunctionIndex).DataSource = TChart1.Series(SourcesIndex)