[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TS2ki Error not in TS7



PureBytes Links

Trading Reference Links

Hi all,

I wrote an indicator in TS7 which calls a function (Tema).  The indicator
works as I want in TS7, life is good.  I go to copy - paste - verify in
TS2ki and it does it ok.  I go to run the indicator in TS2ki and I get a
"Function call input type mismatch" error.  Life ceases to be good.

As far as I can tell, Tema expects a numericseries input, such as Close, and
a numericsimple length for inputs.  In TS7 I sent it an Average over n
periods of the previous bar Highs and a length m (example only).  i.e.. like

Vars:  AvgH(0);

AvgH = Average(H, n);
value1 = Tema(AvgH,m);

TS7 interpreted / translated AvgH into a Numericseries for the Tema function
and it worked.  My guess is that TS2ki is not doing that and is passing AvgH
as a numericsimple instead.  Is there a way to force TS2ki to treat AvgH as
a numericseries and not a numericsimple?  I've tried value2 = AvgH[1];  to
see if I could get it to see it was a series to no avail.  Any suggestions
are most welcome!

Regards,
Chris