I have little time to test but I guess the issue is wider.
my strategy does not use ticks flags at all. Neither use a custom TMF function. set pending order and close a deal only oat the end of the bar if specific contions apply.
I guess some issue with bollinger bands and pending order are also in the process.. I will post log asap.

thx