switch period (e.x. H4 to D1)

 

Hello!

I run a script on Daily graphs. Would also like to automaticaly switch to D1 from H4 in case D1 is not the current period. Now I only detect it and exit the script with messagebox. Could the switching between periods be done in runtime?

This is eigher impossible or very simple I believe, as I didn't find anything about it in this forum. :)

Thank you!

 

Silence means it is not possible? :)