Now, or in about 10 secondes ...

The editor must not like your code.time generator:
if you change anything in your code, you MUST immediately compile the change, because you never know, when PL is closing itself.
Now, or in about 10 secondes ...
Correction - the study doesn't even have to be on a chart. PowerEditor doesn't careSame here. I think it has to do something with studys on a chart. If I work on a study that is applied to a chart, compile it and switch back to the chart to see the result - PowerEditor sometimes doesn't like it and closes itself.
If you change anything in your code, you MUST immediately compile the change, because you never know, when PL is closing itself.
Now, or in about 10 secondes ...