Are active control panels using radio buttons possible in MQL4

 
Has anyone managed to code a control panel radio button in MQL4  that can activate some commands like Buy or Sell or modify the on screen display in some way 
 

It can be done.

Open MetaEditor and look into the Indicators\Examples\SimplePanel folder.

That's indicator, but you can make EA use same components.

 

Hi Drazen,

thanks for your reply. 

your right its all there as you said but the simple panel is quite complex in terms of the code using OOP. I couldn't really follow it. I'm looking for a more understandable nuts and bolts example. Do you know of any other examples.

 thanks,

Martin 

 

You can create object of the type OBJ_BUTTON.

Here you will find one example: https://www.mql5.com/en/forum/149372/page2 

 

Search MQL4 help file, mql4.com and mql5.com for "OBJ_BUTTON".

Is it possible to draw buttons on chart with the new MT4 update - MQL4 forum
  • www.mql5.com
Is it possible to draw buttons on chart with the new MT4 update - MQL4 forum
 
Thanks Drazen
 
Radio buttons, drop down (combo) boxes, list views, buttons...it's all possible in MT4 now but as you've seen, it's all OOP driven. It's well worth the effort to learn it and it's not that hard once you play around with it a bit. Have a poke around the codebase, there are a few good ones in there that should help you.
 

your right about time I took the plunge 

thanks Stuart 

 
Roler100:

your right about time I took the plunge 

thanks Stuart 

Welcome mate. Feel free to shoot any questions back into the forum. There's really not much documentation out there so it does require a lot of trial and error.

Cheers
Stu
 

It's partial implementation of the MQL5 standard library.

Here you can find MQL5 documentation: https://www.mql5.com/en/docs/standardlibrary/cchart

MQL4 implementation mostly behaves same way.

But, as Stuart wrote, it will require lot of trial and error. 

Documentation on MQL5: Standard Library / Class for working with chart
Documentation on MQL5: Standard Library / Class for working with chart
  • www.mql5.com
Standard Library / Class for working with chart - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: