Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
The most efficient way is by storing the value of candle 0 into a variable. Then that value can be compared to any other future candle. Are you familiar with variable?
Does the indicator work normally on your MT4 platform? I mean, can you import DLL files normally there?