A problem with iCustom

 
Hi!
I have a problem with iCustom. It appears on an expert advisor while running in "Strategy Tester".
If I use iCustom with timeframe different from the chart's it returns values wich are not correct.

To be exact :
adx_minus = iCustom(Symbol(), PERIOD_D1, "adxdon", 14, 34, 34, 2, 0);
This return different values when I use it on M30 chart and D1 (wich is the correct one) chart on the same date.
The incorrect is not slidly incorrect. The difference is huge. For example if the correct DX- is 15, the incorrect is 0 or 0.2... no more than 1.

Could you please look at that and tell me if there is something wrong?
 
mode - Line index. Can be from 0 to 7 and must correspond with the index used by one of SetIndexBuffer functions.

adx_minus = iCustom(Symbol(), PERIOD_D1, "adxdon", 14, 34, 34, 2, 7?, 0);
 
bokovskii, please, see Testing Features and Limits in MetaTrader 4
All works correctly!
Reason: