no kelvin - tht is not the issue! i hv required set of bars!
infact 200DMA is not getting plotted even on 4H TF!
some code issue is still there!
MT4 different timeframe using independent data. such as they created and update different timeframe historical data. So when script caculation on that timeframe, it is possible to extract that timeframe of data and do calculation.
For amibroker, likely it worked on base timeframe:
The code work in EOD data on Daily, Weekly and Monthly. The reason is
the base time is inDaily.
I tested importing forex data from H1 (base time), it work ok with the code and display DailyMA200 on 4H
If you are using Live Data from broker, and if i assume your base time is 1min, you may not see DailyMA200 on 4H.
I tested with importing 1min as based time, and it really cannot.
On M15, it can only display DailyMA 1 to 25 period only.
Amibroker is very easy to program, no need to concern about MT4 timeframe compress/expansion scripts. They simplify by the Timeframe Setting command to replace all the hardwork in MT4.
If the code can work on EOD, It is most likely will work on Intraday. Because the same formula applied through out.
Other then that, any limitation on your broker provide data, such as maximum bars allowed, whether they create all timeframe historical data, i m not sure.