It's a bit crazy. If I'm right, the use of the TMF should not change anything concerning trading bevaviour, or does it? I thought to use it for documentation purposes only. But if I take the simple script

Code:
int TradeLong() {
   if (TradeIsClosed) {
      print(TO_LOG,"\nTradeProfit: %.2f",TradeProfit);
   }
}

function run()
{
        set(LOGFILE+TICKS)
	vars Price = series(price());
	vars Trend = series(LowPass(Price,500));
	
	Stop = 4*ATR(100);
	TakeProfit = 10*PIP;

	if(valley(Trend) && NumOpenLong == 0) 
		enterLong(TradeLong);
}



and run it with "enterLong(TradeLong)" and then compare it with "enterLong()" without the TMF, the behaviour of the script changes and it does really strange things when using the TMF. BTW: TakeProfit seems to be necessary to provoke the printing of TradeProfit to the Log.