Interrupting/Restarting a loop in an EA

 

I have developed an EA that shows indicator results across multiple timeframes as it surveys all currency pairs. It essentially loops through all currency pairs displaying the ADX, Stochastic, MA crosses for each pair on the W, D, 4H, 1H, 30M, 15M, 5M timeframes to report developing trends (see attached screenshot). What I need now is something (e.g. script?) that can be invoked from the keyboard to temporarily restrict the currency pairs loop to a pair of interest when the user chooses, to be restarted once again from the keyboard when the user decides. As far as I know, there is no way to interrupt an EA with a function key, for example, to do this. I suspect it will have to be done with Global variables and a script. Does anyone have any other ideas?

 
  1. Standard way, add an object. User moves object - EA/script does function.
  2. Buttons & Textfields on mt4 chart possible now - MQL4 forum
Reason: