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"
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"

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?