complex inputs

Questions about MultiCharts and user contributed studies.
palanka
Posts: 1
Joined: 22 Sep 2006

complex inputs

Postby palanka » 22 Sep 2006

I have an old TS indicator that uses complicated inputs, like:

input: userfunc(waverage(c[0]-c[10],5));

This gives a complile error in MC, expecting an '('. Is there an error here or does MC allow this kind of input default?

Chris
Posts: 150
Joined: 17 Nov 2005

Re: complex inputs

Postby Chris » 25 Sep 2006

I have an old TS indicator that uses complicated inputs, like:

input: userfunc(waverage(c[0]-c[10],5));

This gives a complile error in MC, expecting an '('. Is there an error here or does MC allow this kind of input default?


It seems to me that your code is missing an "input variable". If you write for example:

Code: Select all

 Input: MyInput(userfunc(waverage(c[0]-c[10],5)));


And the only use the word MyInput in the code it should work. For further examples please take a look at the EasyLanguage reference.

Chris


Return to “MultiCharts”