Use Strategy Tester i.e CTR + R or find it under View tab in MT4
Select the indicator from the drop down menu and apply on symbol.
you will realize if the indicator is repainting or not.
The simple way to find whether your code is repainting or not is to subscribe Valvenet robotrader for one month . Test your strategy in that and it will give you clear picture of repaints.