Where/how does it pick up the timeframe?

 

I have an indicator that hardcodes the timeframe:


adx[i]=iADX(NULL,PERIOD_M30,.....


But I stay on the M15 chart and make changes to the indicator and when I compile, I see the reported timeframe in the log file changing between M15 and M30:



14:22:58 myadx USDCHF,M15: 93 ma 46.7 pl 31.4 mi 4.3

14:25:17 myadx USDCHF,M30: 45 ma 14.1 pl 9.6 mi 13.5


I haven't changed the current chart, nor have I changed the hardcoded timeframe - so what's actually causing the changes?