You're in over your head. Start over.

Learn how function pointers work and why it's relevant for TMF's:
http://zorro-project.com/manual/en/function.htm
http://zorro-project.com/manual/en/trade.htm

Point being, a TMF is not meant to be called as a function by your script. If you configured your script correctly, Zorro will call your TMF from the backend.

Also, don't name a TMF from a TMF.

For more context, take a peek at the baskets example under Tips. Note that the helper functions are distinct from the TMFs.
http://www.zorro-trader.com/manual/en/tips.htm