Not correct. Look at the definitions of the functions:
https://zorro-project.com/manual/en/buylong.htm

You just required that your TMF have two arguments. It must be:

function MyTMF(var v0, var v1){ /* ... */ }

In your case, v0 will be 0, and v1 will be -5*PIP for that particular trade. I do not think that this is what you wanted.

You can still set parameters such as Lots and Stop prior to placing the trade, but not as function inputs.