Download MetaTrader 5
To add comments, please log in or register
Copy the deals of successful traders. Subscribe to signals!
Daniel Sic
1112
Daniel Sic 2015.05.19 19:49 

If i have Chart On Foreground and want to make my DRAW_HISOGRAM on foreground is there a way to do it?

 If yes, please provide with example.

 

I have the DRAW_HISOGRAM on SetindexBuffers.. 

Alain Verleyen
Moderator
30178
Alain Verleyen 2015.05.20 07:56  
What's your problem actually ? Please show your code and maybe a screenshot.
Daniel Sic
1112
Daniel Sic 2015.05.20 15:00  
Alain Verleyen:
What's your problem actually ? Please show your code and maybe a screenshot.

i dont have problem with code.. but i like to add something to it.. so

problem is this -->

 if the chart settings are set to " Chart On Foreground "

i want the indicator to uncheck this settings "Chart On Foreground "

thats the problem

¨how can i do it by indicator code.. i know there is OBJ_BACK but i dont know how i appy that to a IndexBuffer that DRAW_HISTOGRAM 

Alain Verleyen
Moderator
30178
Alain Verleyen 2015.05.20 16:28  
slicken:

i dont have problem with code.. but i like to add something to it.. so

problem is this -->

 if the chart settings are set to " Chart On Foreground "

i want the indicator to uncheck this settings "Chart On Foreground "

thats the problem

¨how can i do it by indicator code.. i know there is OBJ_BACK but i dont know how i appy that to a IndexBuffer that DRAW_HISTOGRAM 

Ah ok, use this function :

ChartSetInteger(0,CHART_FOREGROUND,false);
/
To add comments, please log in or register