I am demo trading since two weeks and this experience is challenging some of the concepts I thought I knew.

For instance now as you can see in the log there was a reverse in the TCT algo (similar to workshop of mean reversion) but the trade from the MAMA (moving average crossover) algo didn't reverse although as pointed in the plot below with a red circle the green line crossed under the blue one.

Is it because MAMA algo has a Timeframe of 8 with a BarPeriod of 60 minutes (8 hour timeframe)? But if so, weren't price(), enterLong(), reverseLong() called at the end of each bar? Or are they called at the end of timeframe? What I would really like to know is what is the reason that EUR/USD:MAMA1:L7191 has not been reversed yet? Below are the code of MAMA algo, the recent trade log and the equity plot. Hedge is at default just in case. Thanks!

Code:
TimeFrame = 8;
vars Price = series(price());	
	Stop = optimize(4,2,8) * ATR(100);	
	MAMA(Price,fastLimit,slowLimit);
	vars MAMAs = series(rMAMA);
	vars FAMAs = series(rFAMA);
	plot("fm",FAMAs,MAIN|LINE,BLUE);
	plot("ma",MAMAs,MAIN|LINE,GREEN);
	Trail = 0;
	if( crossUnder(FAMAs,MAMAs) )
		reverseShort(1);
	else if( crossOver(FAMAs,MAMAs) )
		reverseLong(1);



Code:
[Tue 18.08.15 21:00]  50322 +341 +128 //
[Tue 18.08.15 22:00]  50323 +341 +129 //
BrokerSell EUR/USD: 837 ms
[EUR/USD:TCT:S4040] Reverse 7@1.1027: +99.12 at 22:00
BrokerBuy EUR/USD: 647 ms
[EUR/USD:TCT:L2004] Long 9@1.1027 Risk 254$ t at 22:00

[Tue 18.08.15 23:00]  50321 +440 +28 /\

Tuesday 18.08.15  Profit +8.28 ----
[EUR/USD:MAMA1:L7191] +29$ s1.0828 c1.1026 e1.0968
[EUR/USD:TCT:L2004] -1$ s1.0747 c1.1026 e1.1027

[Wed 19.08.15 00:00]  50326 +440 +33 //
[Wed 19.08.15 01:00]  50337 +440 +45 //
[Wed 19.08.15 02:00]  50337 +440 +45 //
[EUR/USD:MAMA1:L7191] +38$ s1.0828 c1.1044 e1.0968
[EUR/USD:TCT:L2004] +15$ s1.0747 c1.1044 e1.1027

[Wed 19.08.15 03:00]  50350 +440 +57 //