DragonRE, this isn't a syntactical error, which is why your code compiles perfectly. It is a logical indexing mismatch. In MQL5, indicator buffers default to standard left-to-right indexing where index 0 is the oldest historical data. MQL4 does the ...