You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Alex, can you tell me how to compare m_rates[1].low with m_rates[0].close?
m_rates[1].low=m_rates[0].close will it be correct and in general, m_rates[0].close is the last price of the bar which is not yet closed?
and in general, what is the correct way to deal with the last bar without using indicators?(CopyRates, CopyHigh)
Alex, how can I compare m_rates[1].low with m_rates[0].close?
m_rates[1].low=m_rates[0].close will it be correct and in general m_rates[0].close is the last price of the bar which is not yet closed?
and in general, what is the correct way to deal with the last bar without using indicators? (CopyRates, CopyHigh)
you correctly wrote that you should use CopyRates or CopyHigh/Low/Close, etc. to work with price data outside of indicators.
You can find examples in the help or in the code base.
When compiling the code, a message appears: possible loss of data due to type conversion on the line
and when using the function in the Expert Advisor, it stops working in the tester, please tell me the reason, the code is taken from the article https://www.mql5.com/ru/articles/22
When compiling the code, a message appears: possible loss of data due to type conversion on the line
and when using the function in the Expert Advisor, it stops working in the tester, please tell me the reason, the code is taken from the articlehttps://www.mql5.com/ru/articles/22
Interesting, but I have a similar one too.Filling a doublearray with double data. It gives the same warning on this line.
Interesting, but I have a similar one too.Filling a double array with double data.It gives the same warning on this line.
Thanks, I'll give it a try. I've already tried the conversion, the explicit conversion goes through, if I translate a mask handle via (int), but that doesn't suit me of course :-)
Got it wrong. Need an int.
Thank you.