Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1170

 

Here's an example. The 15:30 and 16:00 candlesticks. The horizontal lines are the difference on M30 between the 15:30 Close and 16:00 Open candles. It turns out that for the terminal, on M30, 30 minutes (from the 15:30 candle) ends at 15:59, and the next one at 16:00. On the chart we can see that the difference between Close and Open is just the body of the 16:00 minute candle. That is, the methaqvot period_converter_ALL is as if the one-minute candle is inserted between Close and Open


 
Александр:

Here's an example. The 15:30 and 16:00 candlesticks. The horizontal lines are the difference on M30 between the 15:30 Close and 16:00 Open candles. It turns out that for the terminal, on M30, 30 minutes (from the 15:30 candle) ends at 15:59, and the next one at 16:00. On the chart we can see that the difference between Close and Open is just the body of the 16:00 minute candle. That is, the methaquot period_converter_ALL seems to put the one-minute candle between Close and Open.


You don't see what's going on inside the candlestick, there are gaps there too, you see only at the transition to a new candlestick

 

Good day brothers. Why is it that when I set the indicator buffer to 0, the display of the buffer stops?

 
Александр:

Here's an example. The 15:30 and 16:00 candlesticks. The horizontal lines are the difference on M30 between the 15:30 Close and 16:00 Open candles. It turns out that for the terminal, on M30, 30 minutes (from the 15:30 candle) ends at 15:59, and the next one at 16:00. On the chart we can see that the difference between Close and Open is just the body of the 16:00 minute candle. That is, the methaqvot period_converter_ALL is as if the one-minute candle is inserted between Close and Open


Not at 15:59, but plus another 60 thousand milliseconds during which any number of ticks can occur. There can be 2 or more ticks on one millisecond.

 
Mihail Marchukajtes:

Good day brothers. Why is it that when I set the indicator buffer to 0, the display of the buffer stops?

So zero is assigned as a non-display value, SetIndexEmptyValue.

SetIndexEmptyValue - Пользовательские индикаторы - Справочник MQL4
SetIndexEmptyValue - Пользовательские индикаторы - Справочник MQL4
  • docs.mql4.com
SetIndexEmptyValue - Пользовательские индикаторы - Справочник MQL4
 
Alexey Viktorov:

So zero is assigned as a non-display value, SetIndexEmptyValue.


Thanks, I think I've figured it out...

 
Vitaly Muzichenko:

You don't see what's going on inside the candle, there are gaps there too, you only see it at the transition to the new

Alexey Viktorov:

Not at 15:59, plus another 60 thousand milliseconds during which any number of ticks may occur. Sometimes there are 2 or more ticks per millisecond.

The candlestick (minute and 30 minutes) closes at 15:59:59. Then opens the next one at the same price. You can observe this in real time as well. And on the chart, you can see that the M30 candle closed at 15:59 on the lower line, and the next one opened at 16:00 on the upper line. And there is no minute in between. One closes immediately the other opens.

 
How to find signal buyers faster?) fifth year of trading experience
 
Александр:

The candlestick(minute and 30 minute) closes at 15:59:59. At THIS MIL the next one opens at the same price. You can observe this in real time as well. And on the chart, you can see that the M30 candle closed at 15:59 on the lower line, and the next one opened at 16:00 on the upper line. And there is no minute in between. One closes immediately the other opens.

How messed up you are... You have the consequence ahead of the cause.

Nobody mysteriously closes a candle with a cloche like the sun with a shroud...
Simply, when a new tick comes, the next candle opens - if a tick has come, corresponding to the time that goes into the new candle, then a new candle opens, and this new tick will be its opening price. And the previous tick will be the closing price of the previous candle.

I would still advise you to familiarise yourself with the concept of a tick starting a candle. It is always one, and it can be delayed in time, and its price may be quite different from the last tick, which was the last tick on the last candle, and which became the closing price of the candle (and was just Bid==Close[0] of the current candle while the next candle has not yet opened).

 
Dmitry Shumaev:
How to find signal buyers faster?) fifth year of trading experience

Monitor the signal and trade successfully for a year - they will come running.

Reason: