It runs on the Timeframe selected i.e 1m is 1minute chart or you can create constant (int) and then use minutes i.e 60