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.
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.
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.
Sure you can. Shift the buffer to the right. Add Ichimoku to the chart and see.
Previously answered, you need a buffer.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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?