View Single Post
  #287 (permalink)  
Old 11-19-2008, 02:25 PM
mladen's Avatar
mladen mladen is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,185
mladen is on a distinguished road
There are two coding errors in that indicator :
  • as I stated in my previous post already, it is looking for crosses comparing current and future value (I sincerely doubt that it was the intention)
  • also buffer values are not emptied on every loop. As a result, there are cases when indicator is going to become a "repainter" (cases when it posts signal for crossing and then, before the bar expires, values change back - since the buffer values are not cleaned (emptied), the "cross" is still remaining there, but if you change time frames or symbol and go back, or restart mt, it will disappear - effectively becoming a repainting indicator) Author did try to avoid that situation with fixed bar count (always recalculating the CountBars bars) but it means that the indicator is almost always recalculating unnecessarily
Hope this is explicit enough
regards
mladen

Quote:
Originally Posted by ValeoFX View Post
Mladen, would you mind being more explicit regarding the "warning"? It most certainly does not repaint, but if there is anything else to be aware of, I would like to know so that I can address it. It most certainly gives excellent signals.

Looking forward to hearing from you.

Best wishes.

Last edited by mladen; 11-19-2008 at 02:51 PM.
Reply With Quote