hello guys,i wrote a simple code to get the High of the current candle but it gives me the open price instead.
why all the methods are returning the open price instead the High ?
is it a bug or i'm doing something wrong ?
build 2007
25 feb 2019
If you provide your code at the beginning of a candle then all the prices (Open, High, Low, Close) are the same because the candle contains just one price. But if you check the prices on the chart you get prices from a finished candle.
If you provide your code at the beginning of a candle then all the prices (Open, High, Low, Close) are the same because the candle contains just one price. But if you check the prices on the chart you get prices from a finished candle.
you are right, big mistake of mine.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello guys,i wrote a simple code to get the High of the current candle but it gives me the open price instead.
why all the methods are returning the open price instead the High ?
is it a bug or i'm doing something wrong ?
build 2007
25 feb 2019