Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1115

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
see oanda api - if I am not mistaken in the picture it is PositionBook
thank you!
So you have to disable the autoscrolling graph. And remember that it's an asynchronous command.
Disabled....
Deactivated....
Then you need to look in your own code.
I am trying to take MA indicator data from the older period in MT5.
But I get error 4806 (Requested data not found). When I take it from the current timeframe, everything is OK. It takes data. But I have problems with the higher one. Please advise how to fix it
Then you need to look in your own code.
Can you tell me where I'm wrong?
I ran the script on H2 at the beginning of the hour.
As I wrote before, it works fine, and then, from some point, the chart is positioned at the end andMessageBox appears. Why respond to a request, if I can't see the found figure?
2361
Starting from period H1, a variable or function outputs strange values.
etc.
2361
Starting from period H1, a variable or function outputs strange values.
etc.
What is their "strangeness"?
What is their "strangeness"?
Variable _Period and Period() up to and including M30, outputs the value in minutes.
If the period is M1 then 1
If period M2 then 2
...
If period M30 then 30
It is logical that hourly period will be 60
two hour period 120
three hour 180
etc.
But from H1 onwards the wrong values are displayed.
The _Period variable and Period() function, up to and including M30, outputs the value in minutes.
If period M1 then 1
If period M2 then 2
...
If the period of M30 then 30
It is logical that hourly period will be 60
two hour period 120
three hour 180
etc.
But from H1 onwards the wrong values are displayed.
EnumToString(Period())
EnumToString(Period())
The help says that the timeframe value should be returned, not the identifier converted withEnumToString()
The _Period variable returns int.
ENUM_TIMEFRAMES Period() also implies that int is returned.