Can somebody help me with this OsMA-Indicator? - page 2

 

when changing TimeFrame, the init code is read again and the lines are deleted, ... if they have the right name, ( same name init and start)

then the code inside the start is read again and redraw the line

edit : to delete the line in the chart, you can try that, ObjectFind return the position of the chart ; 0 for window chart

 if (ObjectFind("ChartLine1")>-1) ObjectDelete("ChartLine1");
  if (ObjectFind("ChartLine2")>-1) ObjectDelete("ChartLine2");
 

IT WORKS!!!! :)

Thank you so much!!!

I just wonder why it worked with the indicator lines before and not with the price-area lines. It think it has to do with the fact that there are two different windows but I can't explain what exactly the problem was..

However, it works! :)

 
mar:

IT WORKS!!!! :)

Thank you so much!!!

I just wonder why it worked with the indicator lines before and not with the price-area lines. It think it has to do with the fact that there are two different windows but I can't explain what exactly the problem was..

However, it works! :)


probably a bug report to Service Desk
Reason: