Forum

Why don't CopyHigh and CopyLow work properly the first time they run?

double low_array[]; double high_array[]; int entry = 0 ; int OnInit () { return ( INIT_SUCCEEDED ); } //+------------------------------------------------------------------+ //| Custom indicator iteration function |

Is there a way to get the time information of the top and bottom of a single candle?

As I explained in the picture below. For example, this candle that appears on the H1 chart has a high and a low. On lower time charts, for example, if High then Low occurs on "Tick" charts, I will do another calculation. If it's low and then high, I'll do another calculation. There is a time string

How can I print text to the upper right corner of the screen?

//+------------------------------------------------------------------+ //| Label.mq5 | //| Copyright 2022, Label Ltd. | //| https://www.mql5.com |

How can I get +DI and -DI review of ADX indicator?

handleAdx = iADX ( _Symbol , _Period , 14 ); I can get the main ADX value. But I need +DI and - DI values. Is there a way to get these values without calculating manually

How can I draw a zigzag?

A little explanation: I made fractal based calculations using High and Low data which I modified a bit. As a result, I have a series of tops and bottoms, for example, taking into account the rules I set for 500 candles backwards from the current price. double "Price Low" [0.71, 0.72, 0.695

Why do "prices" in OnCalculate() show different values?

As you can see in the code, I put the high prices into an array and printed it. But there are differences between the output prices and the prices I see in the parity. This applies not only to "high", but also to others. I can't understand why? #property copyright "Copyright 2022, MetaQuotes Ltd."