Andrey Sokolov: DodBid anddPoint need to be prescribed separately?
is just Bid, and just Point. It's high time to understand that some people have them separately, some people have them redefined, and some people have them written directly, but the meaning is the same for all. You can write it however you want.
I have read the Tutorial for Dummies. I have an algorithm, but I can not properly prescribe it.
So the idea is that I access the data set of the last 86 candles, except 0. Each white candle is 1, each black candle is 0. If the closing price of 1 candle is equal to the opening price of 1 candle, then look at the closing price of 2 candles and if it is higher than the opening price of 1 candle, then put 0. If the closing price of 2 candles is equal to the opening price of 1 candle, then by the same principle, compare the opening price of 2 candles with the closing price of 2 candles.
I'll attach what I wrote in the evening. I didn't take into account that there is a code onTime, which repeats the operation after a given period of time.
Can you tell me how to correctly calculate the date of a future candle.
Let's say today is April 30th.
If (seg. Sunday) {the date of the next candle is May 1};
If (Mon) {the date of the next candle is May 1};
...
...
If (Segment Friday) {the date of the next candle on the 3rd May};
If (segment Saturday) {the date of the next candle on the 2nd of May};
To the current date add the required number of seconds, or more precisely, the current time + (24*60*60). I hope you know how to find out what day of the week it is.
Add the required number of seconds to the current date, or to be more precise, the current time + (24*60*60). How to find out what day of the week I hope you know.
Please tell me how to find a red horizontal line whose name is unknown.
When there is a name, I do this
How about without a name?
Try this (abstract example):
for(uint i=0; i<ObjectsTotal(0,WRONG_VALUE,OBJ_HLINE); i++){
string line_name=ObjectName(0,i,WRONG_VALUE,OBJ_HLINE);
color line_color=(color)ObjectGetInteger(0,name,OBJPROP_COLOR);
Print("Линия с именем ",name," имеет цвет ",line_color);
if(line_color==clrRed){
Print("Найдена линия красного цвета с именем ",name);
}
}
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.
DodBid anddPoint need to be prescribed separately?
Hello.
Can you tell me how to correctly calculate the date of a future candle.
Let's say today is April 30th.
If (seg. Sunday) {the date of the next candle is May 1};
If (Mon) {the date of the next candle is May 1};
...
...
If (Segment Friday) {the date of the next candle on the 3rd May};
If (segment Saturday) {the date of the next candle on the 2nd of May};
Hello.
Can you tell me how to correctly calculate the date of a future candle.
Let's say today is April 30th.
If (seg. Sunday) {the date of the next candle is May 1};
If (Mon) {the date of the next candle is May 1};
...
...
If (Segment Friday) {the date of the next candle on the 3rd May};
If (segment Saturday) {the date of the next candle on the 2nd of May};
To the current date add the required number of seconds, or more precisely, the current time + (24*60*60). I hope you know how to find out what day of the week it is.
Add the required number of seconds to the current date, or to be more precise, the current time + (24*60*60). How to find out what day of the week I hope you know.
Yes, thank you!
Hello.
Please tell me how to find a red horizontal line whose name is unknown.
When there is a name, I do this
How about without a name?
Hello.
Please tell me how to find a red horizontal line whose name is unknown.
When there is a name, I do this
How about without a name?
Try this (abstract example):
So try it (an abstract example):
Thank you, Artyom.
Always, you help out promptly )