How to display text in front of the chart?

 

Hi 

I wish to display certain chart stats on my chart.  In general chart properties I have "chart in foreground" unchecked.

I use the following code to display the stats but the chart (bars) still move over the text, instead of behind it.

     // second column stats
     // flag categories    
     ObjectCreate("Symbol4", OBJ_LABEL,0,0,0,0,0);
     ObjectSetText("Symbol4","AC flag: ", 9, "Arial",Black);  
     ObjectSet("Symbol4", OBJPROP_CORNER, WhichCorner);
     ObjectSet("Symbol4", OBJPROP_XDISTANCE, 170);  //left to right
     ObjectSet("Symbol4", OBJPROP_YDISTANCE, 50);  //top to bottom         
     ObjectSetInteger(0,"Symbol4", OBJPROP_BACK, false);  //display in front of chart 
            
  

That doesn't work though.

Any suggestions?

Thank you

 

Please don't post randomly in any section. Your question is not related to the section you posted.

MT4/mql4 has it's own section on the forum.

I have moved your topic to the correct section later, please don't create another topic.

 

My apologies.  I was not aware of that.

Thank you for your guidance.

 
Problem solved.
 
Lode Loyens #: Problem solved.

Don't do that. Someone searching might find this thread and still be clueless. What was the problem? What solved what?
          How To Ask Questions The Smart Way. (2004)
     When You Ask.
          Follow up with a brief note on the solution.

Reason: