Can an EA or indicator load itself without loading itself?

 

The topic title sounds crazy, but that was the best I could do.

I want to make an EA or indicator that will load three or four profiles in cycles. I basically want to stare at the chart while it switches profiles every few seconds, like Christmas tree lights.

The problem is, the EA or indicator has to be included in every profile, or else the profile will kick it out when it loads and the EA or indicator won't be able to maintain the cyclic switching anymore.

But then the EA or indicator will be reloaded with the profile at every cycle and will lose track of what profile is supposed to be loaded next in the queue.

I feel like I'm trying to lock a drawer with the key inside it. Is there any solution to this problem?

TIA

 
As you said “the EA or indicator has to be included in every profile,” but the parameter(s) don't have to be the same. Pass the next profile name.
Reason: