Download MetaTrader 5

Indicator draw to background

To add comments, please log in or register
Chris.h
51
Chris.h  

Hello,


I have some simple problem: I draw a moving average through a custom indicator buffer on the chart. The problem is that is covers price bars, which I don't want. What can I do to prevent that indicator from being in the foreground?

honest_knave
Moderator
2296
honest_knave  
Chris.h:

Hello,


I have some simple problem: I draw a moving average through a custom indicator buffer on the chart. The problem is that is covers price bars, which I don't want. What can I do to prevent that indicator from being in the foreground?

Add this to OnInit()
ChartSetInteger(0,CHART_FOREGROUND,true);
It will put the bars in front of all your indicators. There isn't a way to have some indicators drawing in front, and others behind.
Chris.h
51
Chris.h  
honest_knave:
Add this to OnInit()
It will put the bars in front of all your indicators. There isn't a way to have some indicators drawing in front, and others behind.

That will do. Many thanks! :-)
To add comments, please log in or register