Adding a simple button on the right-bottom corner

 

Hi,

I read the doc on how to add object (clickable button), but I'm confused. Can someone give me a simple example : 1 button -> clicked -> execute function test().

Thanks

 
blouf:

Hi,

I read the doc on how to add object (clickable button), but I'm confused. Can someone give me a simple example : 1 button -> clicked -> execute function test().

Thanks

maybe the example ButtonClickExpert.mq5 could help you:

https://www.mql5.com/en/docs/eventfunctions/eventchartcustom 

ciao 

Documentation on MQL5: Working with Events / EventChartCustom
Documentation on MQL5: Working with Events / EventChartCustom
  • www.mql5.com
Working with Events / EventChartCustom - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: