a question about displaying indictor's result

 

  hello ,

 first please forgive me for my poor english .

my case is as follows: in an indicator program , i defined a two indicator_type :

#property indicator_type1 DRAW_LINE

#property indicator_type1 DRAW_BAR


so i get two kinds of indicator objects ( line_indicator , bar_indicator) in the chart window when i run the indicator .


But , some time i want to make line_indicator invisible , and in other times i want to make bar_indicator invisible .



SO , what can i do ?

any help will be appreciatred , thanks in advance .

Documentation on MQL5: Language Basics / Preprocessor / Program Properties (#property)
  • www.mql5.com
Language Basics / Preprocessor / Program Properties (#property) - Documentation on MQL5