Scripts: Chart Save Template

 

Chart Save Template:

The script saves current chart settings to a template with the specified name.

Chart save template

Author: Vladimir Karputov

 
Hello, Brother well done on this script.
Very useful potential.

Would you consider making a update that would auto name template named as current Symbol?
That way it  could be used with a hot-key as a quick save :-)
_
I am not a coder, but maybe if you post what we must delete and add to the code I could figure it out.

Thank you for considering
 
Trendbeat :
Hello, Brother well done on this script.
Very useful potential.

Would you consider making a update that would auto name template named as current Symbol?
That way it    could be used with a hot-key as a quick save :-)
_
I am not a coder, but maybe if you post what we must delete and add to the code I could figure it out.

Thank you for considering

Or rather, you can? Example: 'EURUSD', 'EURUSD_H1' ...

 
Vladimir Karputov:

Or rather, you can? Example: 'EURUSD', 'EURUSD_H1' ...

I appreciate you responding to me so quickly.

I understood I can now only input name manually.
I would very much like to have a script to read current chart symbol name automatically and use that as input for saving template
For example Ctrl+S on EURUSD and it saves a current open chart analysis as EURUSD.tpl 
As quick save in computer games.

Is there a piece of code I could easily add as a noob that would make it do that?

I am sorry for taking your time, I understand it might sound silly from your perspective.

Documentation on MQL5: Chart Operations / ChartOpen
Documentation on MQL5: Chart Operations / ChartOpen
  • www.mql5.com
ChartOpen - Chart Operations - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Trendbeat :

I appreciate you responding to me so quickly.

I understood I can now only input name manually.
I would very much like to have a script to read current chart symbol name automatically and use that as input for saving template
For example Ctrl+S on EURUSD and it saves a current open chart analysis as EURUSD.tpl 
As quick save in computer games.

Is there a piece of code I could easily add as a noob that would make it do that?

I am sorry for taking your time, I understand it might sound silly from your perspective.

Many keys (keyboard shortcuts) are already taken:

(

Ctrl+S

Save chart as "CSV", "PRN" or "HTM" file.

 )
Hot Keys - For Advanced Users - MetaTrader 5 Help
Hot Keys - For Advanced Users - MetaTrader 5 Help
  • www.metatrader5.com
Hot keys (accelerating keys) are keys and their combinations that allow to execute various commands fast and without using menus or toolbars. Hot...
 

Hello, your script is great. 

I noticed that the "id=    " in the second row in the saved template is always id=0.


When i save it by hand the template shows for example id= 5654654646513213546546

When i save it with your script, the template shows id=0 in the second row.


Is this important?


Thank you!!!

 
Steve316 :

Hello, your script is great. 

I noticed that the "id=    " in the second row in the saved template is always id=0.


When i save it by hand the template shows for example id= 5654654646513213546546

When i save it with your script, the template shows id=0 in the second row.


Is this important?


Thank you!!!

I never paid attention to it - I was always happy with everything.

 
Automated-Trading:

Chart Save Template:

Author: Vladimir Karputov

Verry usefull base code.
thank you.

Reason: