complex inputs

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

Sep 22 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: Nov 17 2005

Sep 25 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