There is no OrderSelect error. You request another symbol/timeframe (via some technical indicator function or ArrayCopySeries) before OrderSelect.
Ok, but why does this error occur ?
I request a higher timeframe indicator value, yes, and I have data for it, and it is a valid call.
Should I keep a blank chart open so that time frame's data gets updated in parralel ?
I request a higher timeframe indicator value, yes, and I have data for it, and it is a valid call.
Should I keep a blank chart open so that time frame's data gets updated in parralel ?
If You keep blank chart then You never get error 4066.
This is no error - rather warning "requested data is updated from server now". You need to wait few seconds and repeate last request.
This is no error - rather warning "requested data is updated from server now". You need to wait few seconds and repeate last request.
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 this portion of code before managing my orders :
if (OrderSelect(cnt, SELECT_BY_POS))
{
err = GetLastError();
(err>1)
{
Print("Error : " + "( " + err+ "): " ErrorDescription(err));
}
etc...
}
And I get the error "Error : ( 4066): requested history data in update state"
Why is that and how can I prevent it ? I see it is not documented too well neither in the help file nor on mql4.com
Thanks