Download MetaTrader 5

how to hide indicator property window?

To add comments, please log in or register
dantetemp
17
dantetemp  

Hi. Is it possible to hide indicator property window upon adding it on chart?

I don't need to change any values. The goal is to add indicator with default values with minimum clicks.

  

Alain Verleyen
Moderator
29908
Alain Verleyen  
Not possible.
honest_knave
Moderator
2342
honest_knave  

Script to apply a template with the indicator on it? You could even assign a hotkey.

It may have some unwanted side effects if you have drawn objects etc...

Jose Francisco Casado Fernandez
4492
Jose Francisco Casado Fernandez  
honest_knave:

Script to apply a template with the indicator on it? You could even assign a hotkey.

It may have some unwanted side effects if you have drawn objects etc...

Or a script to attach the indicator to current chart, using ChartIndicatorAdd() function. Even better.


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

Regards.

Documentation on MQL5: Chart Operations / ChartIndicatorAdd
Documentation on MQL5: Chart Operations / ChartIndicatorAdd
  • www.mql5.com
Chart Operations / ChartIndicatorAdd - Reference on algorithmic/automated trading language for MetaTrader 5
Mladen Rakic
71141
Mladen Rakic  
dantetemp:

Hi. Is it possible to hide indicator property window upon adding it on chart?

I don't need to change any values. The goal is to add indicator with default values with minimum clicks.

  

What would be the purpose of it (except the worst intentions that come in mind immediately)?

Disabling the user interaction was and is always just a scammers dream - not coders intentions

dantetemp
17
dantetemp  
Mladen Rakic:

What would be the purpose of it (except the worst intentions that come in mind immediately)?

Disabling the user interaction was and is always just a scammers dream - not coders intentions

i'm writing few scripts, the purpose of those is to show or hide specific objects and indicators on a chart with just a double click.

say, i click the script and it draws fibo levels, i click it again and it hides that fibo. i managed to do this with objects, yet indicators adds that property window. 

 

script to apply a template will not work for me. indeed there may be other objects on the chart, that must stay there.

 

ChartIndicatorAdd works, yet I didn't figure out how to set custom style (color, width) for lines. Any ideas?

Jose Francisco Casado Fernandez
4492
Jose Francisco Casado Fernandez  
dantetemp:


ChartIndicatorAdd works, yet I didn't figure out how to set custom style (color, width) for lines. Any ideas?


Inside the indicator code, you have to create input parameters for all the features that you want (color, line style, line width, etc) and then you set their values when you create its handle inside the script. Regards.

honest_knave
Moderator
2342
honest_knave  
Jose Francisco Casado Fernandez:

Or a script to attach the indicator to current chart, using ChartIndicatorAdd() function. Even better.


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

Regards.

Sorry, I was presuming MT4 (old habits die hard).
To add comments, please log in or register