A problem with multiple timeframe

 
Let say I write two EAs as follows:
ea1: To operate in H1 by default all indicators have NULL second parameter.
ea2: Same as above except to force H1 on all indicators.

Then run both in demo account and same broker:
ea1 in H1 and ea2 in H4 on the same PC. The results should be the same just like backtester.

But the results are NOT the same. Why?
 
I give up. Why?
 
I don't know why either.
 
Let say I write two EAs as follows:
ea1: To operate in H1 by default all indicators have NULL second parameter.
ea2: Same as above except to force H1 on all indicators.

Then run both in demo account and same broker:
ea1 in H1 and ea2 in H4 on the same PC. The results should be the same just like backtester.

But the results are NOT the same. Why?




NULL or 0?

iMA(NULL,NULL,13,8,MODE_SMMA,PRICE_MEDIAN,i);

or

iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,i);
 
Rosh,
NULL is just macro substitution for 0 value
NULL is the same as 0
 
Actually it is 0 and as Slawa said it makes no difference.
The point is trades are not the same.
The only thing I can think of is that even if two terminals are running on the same PC, one must be not connected while other is, however unlikely.
btw. The check mark below "Subscribe to topic" does not work.
Reason: