I have changed the inputs so you can set a higher timeframe for M1 through to H1. So if you would like to change the TF of your main trading chart this indicator will work with the Higher Timeframe in the settings. As per the original version if the timeframe you have chosen is not higher than the chart it is loaded on the indicator will not load.
ie M5highperiod=PERIOD_M30; this setting is for when you are trading on the M5 chart, the Cycles indicator will be set to M30.
The Alert Spacing setting is the number of seconds between alerts so you don't get too many alerts.