Download MetaTrader 5

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

To add comments, please log in or register
Find out how to use widgets at MQL5.community
ffoorr
1016
ffoorr 2014.04.22 21:33  

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");
mar
1146
mar 2014.04.22 21:58  

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! :)

qjol
3243
qjol 2014.04.22 22:06  
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
12
To add comments, please log in or register