I am appealing primarily to those who really understand MQL5 and can help. There are a few questions:
1. - How can I apply to price arrays in MQL5: Open,High,Close,Low; in mql4 it was quite simple, maybe in version 5 it is also simple, but I haven't found any examples of scripts that contain price calls. 2. - I need to use a two-dimensional array, but I tried to describe it in a structure, for some reason it doesn't work... I haven't even tried to open classes, but if it's possible to save and then successfully open some class, please advise how...
If someone can help with the code on these issues, please help. I would have figured it out myself, but unfortunately I am more used to learning from practice...
The task itself is very simple: 1. I need to manipulate the price (assign a variable to the value of the previous bar), it's highs or lows, but it doesn't matter.... but from the script. 2. We need to manipulate a two-dimensional array, for example, assigning all of its elements to 1, but it is important to save and read this array and preferably use a structure.
That's all I would like to know :).... probably dumb questions... But I will be grateful to everyone who can suggest something!
Question: who has this EA opening both Buy and Sell orders? Or maybe I'm misunderstanding something, but I'm getting error 138. https://www.mql5.com/ru/code/8177
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The cluster type?
It's crude but it'll do as an example, it's roughly from a landfill, so check it out.
Thank you, I will look into it.
How do I generate a random number?
For example: 1 to 5, including 1 and 5.
Как сгенерировать случайное число?
Например: от 1 до 5, включая 1 и 5.
https://docs.mql4.com/ru/math/MathRand
e.g. 1+4*MathRand()/32767 or something like that.
OK, thanks :)
Вот мой вариант, но он почему-то не работает:
Try the script, 13 to 18 hours inclusive.
Попробуйте скрипт, с 13 по 18 час включительно.
Or this one, there are strong levels seen on frames < H4.
There are a few questions:
1. - How can I apply to price arrays in MQL5: Open,High,Close,Low; in mql4 it was quite simple, maybe in version 5 it is also simple, but I haven't found any examples of scripts that contain price calls.
2. - I need to use a two-dimensional array, but I tried to describe it in a structure, for some reason it doesn't work... I haven't even tried to open classes, but if it's possible to save and then successfully open some class, please advise how...
If someone can help with the code on these issues, please help. I would have figured it out myself, but unfortunately I am more used to learning from practice...
The task itself is very simple:
1. I need to manipulate the price (assign a variable to the value of the previous bar), it's highs or lows, but it doesn't matter.... but from the script.
2. We need to manipulate a two-dimensional array, for example, assigning all of its elements to 1, but it is important to save and read this array and preferably use a structure.
That's all I would like to know :).... probably dumb questions... But I will be grateful to everyone who can suggest something!
Thanks in advance ALL!!!
Question: who has this EA opening both Buy and Sell orders?
Or maybe I'm misunderstanding something, but I'm getting error 138.
https://www.mql5.com/ru/code/8177