Thread Subject: TechTradeTool help

Subject: TechTradeTool help

From: Cren Soppelsa

Date: 30 Jul, 2010 23:25:27

Message: 1 of 3

Hi all, I downloaded the following file: TechTradeTool

http://www.mathworks.com/matlabcentral/fileexchange/3806-techtradetool

I tried to use it, but starting "Plot Trading System" button gives me the following error message:

??? Error using ==> tsmovavg
Invalid number of inputs.

Error in ==> movAv at 3
tsOut = tsmovavg (tsIn, 's', (iDays-1), 0,1);

Error in ==> Dimbeta at 4
[tsMovAv validFromAv] = movAv (tsIn, 1, idays1);

Error in ==> sysdimbeta at 5
[tsDim validFromDim] = dimbeta (tsIn,idays1);

Error in ==> plotSystem at 34
   [tsSysOut, tsSysOutPlot] = sysDimbeta(st, tsIn, days1, days2);

??? Error using ==> plotSystem
Error using ==> tsmovavg
Invalid number of inputs.

??? Error while evaluating uicontrol Callback

What's the problem? How can I solve it?

Thank you :)

Subject: TechTradeTool help

From: Walter Roberson

Date: 30 Jul, 2010 23:40:29

Message: 2 of 3

Cren Soppelsa wrote:
> Hi all, I downloaded the following file: TechTradeTool
>
> http://www.mathworks.com/matlabcentral/fileexchange/3806-techtradetool
>
> I tried to use it, but starting "Plot Trading System" button gives me
> the following error message:
>
> ??? Error using ==> tsmovavg
> Invalid number of inputs.
>
> Error in ==> movAv at 3
> tsOut = tsmovavg (tsIn, 's', (iDays-1), 0,1);

> What's the problem? How can I solve it?

It appears that the interface for tsmovavg() has changed over the years.

I am not certain, but comparing documentation of the old interface,

http://www.math.carleton.ca/old/help/matlab/MathWorks_R13Doc/toolbox/ftseries/tsmovavg.html

against the new

http://www.mathworks.com/access/helpdesk/help/toolbox/finance/tsmovavg.html

the documented difference is that the "lead" parameter has been dropped. In
the call there, "lead" would correspond to the (iDays-1) expression.

However, if you examine what the parameter does in the old interface and
compare to the new interface, the semantic meaning of what used to be called
"lead" _seems_ to be the same as what is now called "lag", and there does not
appear to be any equivalent to what was formally called "lag". The "lag" value
that is coded there is the 0, so what used to be called "lag" was effectively
not used before.

If I am correct in my interpretation of the wording of the new documentation,
the implication is that you should be able to fix the code by deleting the 0,
out of the tsmovavg call in the movAv routine.

It would not surprise me if you encounter other similar problems, but it's
worth a shot.

Subject: TechTradeTool help

From: Cren Soppelsa

Date: 31 Jul, 2010 14:29:07

Message: 3 of 3

Dear Walter Roberson, it seems to work now. Thank you very very much for your help!

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com