Any way to do this with indicators?
-
Any of the following:
A) Hide them.
B) Change their color.
C) Insert/remove them from the chart.Using a key stroke, condition, command from within the EA, and without changing templates (as it resets the variables and screws everything). I know i can do this with objects. Anyone?
-
.....................
-
not sure if I help you, it needs few lines of code ...
you can use global variables to communicate between EA and indicator, and in indicator code you set few "options" based on global variables for indicator appearance
https://docs.mql4.com/customind/setindexstyle
SetIndexStyle(0, DRAW_NONE, EMPTY, EMPTY, CLR_NONE);or as you mentioned, using templates ... standard it is problem, but you can use my cheatsheet for saving variables into file
https://fxdreema.com/forum/topic/5164/example-save-variables-into-file-and-read-them-back-advanced -
@miro1360 Thank you as always miro, i am going to check them out
wish you have have a nice day