Thank you for your kindness. It is working quite well including all alerts of notification, email and screen..
I forgot about another request related to inclusion of Max Range switch in it.
If it is done, then it becomes a quick glance backtesting tool.
For example, 4-8 Maximum Range selection will show me in this chart around 20 hours of consolidation . Thank you again in advance.