Postby TheRumpledOne » Mon Apr 13, 2009 4:15 pm
It's the way most people code in MT4 that causes indicators to repaint.
They run the loops backwards from 0 to limit, instead of forward from limit to 0. Remember, the current bar is bar 0.
They probably code their indicators that way because that's what most examples show.
It's like the old ham story. One day a girl asked her mother why she cuts the ends off the ham before putting it in the oven. The mother says, "that's what her mother used to do". So the next time the girl saw her grandmother she ask her why she cuts the ends off the ham. The grandmother replied, "it's because it's the only way to fit it in my oven".
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.