Is there a way to open inputs dialog box by using OnChartEvent() ?

 

In a custom indicator, I'd like to add an object/button/whatever to the chart that allows the user to click it (or even just hit a hot key) to open up the custom indicator's input dialog box (i.e., program properties dialog box)?  Is it possible in MQL4?  What about MQL5?

The reason I want to do this is that sometimes a custom indicator's buffer is not drawn on the chart in such a way that allows the user to just right click and hit properties to go straight to the modal dialogue to change the user inputs.  The user has to hit Ctrl-I and then find the indicator on the list and then double click it to open the dialogue to change inputs. 

If mql4/5 does not allow this, is there another way to accomplish this? Is there a way I can draw the buffer in the lower right corner of the chart, so user can just right-click there to go to the indicator's inputs?  Or a variation on this idea?

If mql4/5 does allow this, what other dialogue boxes can I open through my mql code? 

 
DeepFocus:

In a custom indicator, I'd like to add an object/button/whatever to the chart that allows the user to click it (or even just hit a hot key) to open up the custom indicator's input dialog box (i.e., program properties dialog box)?  Is it possible in MQL4?  What about MQL5?

The reason I want to do this is that sometimes a custom indicator's buffer is not drawn on the chart in such a way that allows the user to just right click and hit properties to go straight to the modal dialogue to change the user inputs.  The user has to hit Ctrl-I and then find the indicator on the list and then double click it to open the dialogue to change inputs. 

If mql4/5 does not allow this, is there another way to accomplish this? Is there a way I can draw the buffer in the lower right corner of the chart, so user can just right-click there to go to the indicator's inputs?  Or a variation on this idea?

If mql4/5 does allow this, what other dialogue boxes can I open through my mql code? 

You have to add a buffer in order to create an arrow. Then you can click on it to get to the inputs window.
 
Petr Nosek:
You have to add a buffer in order to create an arrow. Then you can click on it to get to the inputs window.
perfect. problem of course is that I can't put the indicator buffer arrow anywhere i want, like I can with an object...well I can't put it to the right of the most recent price, bc I can't put a negative number for the buffer array index.  Nevertheless, this is an effective enough solution. 
 
DeepFocus:
perfect. problem of course is that I can't put the indicator buffer arrow anywhere i want, like I can with an object...well I can't put it to the right of the most recent price, bc I can't put a negative number for the buffer array index.  Nevertheless, this is an effective enough solution. 
I wish there was a way to allow a left-click somewhere on chart to show the inputs window....anything?
 
DeepFocus:
perfect. problem of course is that I can't put the indicator buffer arrow anywhere i want, like I can with an object...well I can't put it to the right of the most recent price, bc I can't put a negative number for the buffer array index.  Nevertheless, this is an effective enough solution. 
You can't put negative array index but you can use SetIndexShift(). If you play a bit with it, you can place the arrow anywhere you want on the chart (like an object)
 
DeepFocus problem of course is that I can't put the indicator buffer arrow anywhere i want, like I can with an object...well I can't put it to the right of the most recent price, bc I can't put a negative number for the buffer array index.  Nevertheless, this is an effective enough solution. 

Sure you can. Shift the buffer to the right. Add Ichimoku to the chart and see.

DeepFocus: I wish there was a way to allow a left-click somewhere on chart to show the inputs window....anything?

Previously answered, you need a buffer.

 
thank you gentlemen for helping me and giving me good ideas, much appreciate