In Regard To Template

 

Hello, I will like to know if its possible to load template on a chart by making use of a button which execute a procedure/function?

if yes please en-light my creativity, how can I proceed with it?

What will be important for me is to load a template which is located in a specific folder and load it to my chart.

Example let say I have 5 different buttons in my expert.

Button 1 caption is: EURUSD

Button 2 caption is: GBPUSD

Button 3 caption is: EURJPY

Button 4 caption is: USDCAD

Button 5 caption is: USDCHF

if I click on a specific button which contains the name of a currency pair it should load the template who's named after the currency pair.

NB! I want to know if its possible to achieve it in coding?

 
Chris Mukengeshayi:

Hello, I will like to know if its possible to load template on a chart by making use of a button which execute a procedure/function?

https://www.mql5.com/en/docs/chart_operations/chartapplytemplate

Documentation on MQL5: Chart Operations / ChartApplyTemplate
Documentation on MQL5: Chart Operations / ChartApplyTemplate
  • www.mql5.com
Applies a specific template from a specified file to the chart. The command is added to chart messages queue and will be executed after processing of all previous commands. The Expert Advisor will be unloaded and will not be able to continue operating in case of successful loading of a new template to the chart it is attached to. If the...
 

Super thank you very much.

Reason: