Just an idea, we could have a thread about generic code snippets in thinkscript that could be added to indicators, like adding alerts or making bubbles/plots selectable in settings.
Many times, just looking at working code you get good ideas to customize downloaded studies.