RefreshRates( ) while(true) loop

 
Hi Slawa,

I have while(true) loop in my EXPERT with RefreshRates( ) funcition within the loop.
The expert communicate with my indicator by Set/Get GlobalVariables() only.. no iCustom()

I would expect that the expert would loop until the loop ends by break.

However, while looping it will execute also my indicator routines.

Questions:
(1) Would RefreshRates( ) request from the expert loop execute the start() in my indicator? and;
(2) If so -- is a tick necessary to do that while looping?
(3) Is it necessary to use RefreshRates( ) to update system's Ask, Bid variables? or;
(4) Are they updated automatically every tick?
 
1. RefreshRates not needed in custom indicators
3. Bid,Ask and time series. see "MQL4: RefreshRates"
4. Yes. Automatically at start - start with new tick. If there is endless or long loop then You need to call RefreshRates to detect new tick incoming.

Please read
"MQL4: Program Run"
"MQL4: Execution errors"
Reason: