continuous script

I have created a simple script that writes indicator values to a text file.  I want to set that up to run on a one minute frequency.  Any suggestions on the best way to handle that?
jshumaker35:
I have created a simple script that writes indicator values to a text file.  I want to set that up to run on a one minute frequency.  Any suggestions on the best way to handle that?

Option 1: Set up a timer and write to the file during OnTimer().

Option 2: Remember TimeCurrent() and write to the file whenever a minute elapsed during OnTick().

lippmaje:

Option 1: Set up a timer and write to the file during OnTimer().

Option 2: Remember TimeCurrent() and write to the file whenever a minute elapsed during OnTick().

thank you