I'm looking for some creative TMF ideas and/or some sample code. I'm just learning about them now, and I see they are pretty cool!

There are some restrictions, as I understand, that you need to work around. For example certain variables are available inside the TMF that are not available outside, and perhaps vice versa.

Also, some things like creating series are not possible inside the TMF (as I understand).

It would be great if I could study a couple examples of successful TMF's, to get a better handle on what does work and be able to tweak it and change it.

I've been able to get some very simple TMF operations to work, such as closing a trade when it reaches X pips. But I want that to be more dynamic, possibly based on an indicator cross. So I'm still struggling at this stage. It would be helpful to see more indicator-based usage of TMFs as examples.

THANKS