Hi

I am playing a bit with the TMF function trying to understand how it works. It looks quite misterious to me tongue , maybe because my code-programing knowledge is limited.

As I see it, a TMF function is called inside a enterLong()/enterShort() function.
Normally those functions are called inside a condition like if(market) then (enter a trade).
Then a trade is entered. But since the function is only called once inside the condition "if(market)" then I do not get how it actually works. So I develop my TMF and I have like a "crossing fingers" felling, hoping that the conditions inside my TMF function will be called when they should. tongue