This is wrong:
Code
int tmf(int startBar, int endBar)
Reason:
"If the TMF is passed to an enter command, it can receive up to 8 additional var parameters following the function name: enterLong(MyTMF, parameter1, parameter2...). They must also appear in the function's parameter list and keep their values during the lifetime of the trade. The alternative global manage function has no parameters."
https://zorro-project.com/manual/en/trade.htm

Note that is says var and not int.