About start()

 

Hello. I am C/C++ programmer. I know that main() function are executed only once. In Indicators (and in EAs) start() function are executed on every new tick? So...

i=Bars-counted_bars-1; while(i>=0)

this loop (in start() which is in allmost all indicators) is executed on every tick? That means that ALL INDICATOR is repainted ~14 times per minute? Is this racional? Or I dont get it right, or there arent any othery ways to do that. (Im kindanew in MQL) Thanks.

 

That's why there is "counted_bars", only the current bar is repainted.

Reason: