Switch to toggle draw style of indi Buffer

 

Hi guys,

i managed to create a MACD of an indicator buffer an its MA
i was able to show the MACD either as a line or a histogram

is there a way to create an option in the indicator inputs to choose between DRAW_LINE and DRAW_HISTOGRAM without ???


Thanks

 
pipspiper:

Hi guys,

i managed to create a MACD of an indicator buffer an its MA
i was able to show the MACD either as a line or a histogram

is there a way to create an option in the indicator inputs to choose between DRAW_LINE and DRAW_HISTOGRAM without ???


Thanks

Hasn't this question been asked before?

 
Ahmet Metin Yilmaz:

Hasn't this question been asked before?

i don't know and sorry if it's a repeated question.

i've been trying the whole day to find a solution for it, but no success..

would really appreciate it if someone can give me a hind or an idea

 
Ok, here's the solution, Thanks everybody anyway

https://www.mql5.com/en/articles/45
The Drawing Styles in MQL5
The Drawing Styles in MQL5
  • www.mql5.com
There are 6 drawing styles in MQL4 and 18 drawing styles in MQL5. Therefore, it may be worth writing an article to introduce MQL5's drawing styles. In this article, we will consider the details of drawing styles in MQL5. In addition, we will create an indicator to demonstrate how to use these drawing styles, and refine the plotting.
Reason: