Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1449
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
Good afternoon!
Help please beginner, translate the EA from mql4 to mql5, need to calculate the width of the channel in points on a given number of bars from the current, calculations he do but it is not clear how, appear negative values that should not be.
Example:
Alert: Channel width max. = 1200000.0, Channel width min. - 200000.0
Thank you!
Example:
Alert: Channel width max. = 1200000.0, Channel width min. - 200000.0
Firstly, look in the documentation and realise the purpose and difference between the iHighest and iHigh functions, similarly for iLowest and iLow.
This should give you the right idea.
Example:
Alert: Channel width max. = 1200000.0, Channel width min. - 200000.0
Thank you!
You are getting bar numbers with maximum and minimum price values. Hence the negative values.
BUT!!! In the new version of MT introduced a new function with which you can get in arrays and minimum and maximum prices for a certain number of bars. Then use mathematical functions to get the maximum and minimum price values and calculate the required value using the formula.
You will be the first to use the innovation:))))))
how to receive and send information to MT4 server using api for trades profit , loss etc...
Study API documentation
Can I access the database created with the help of mql5 from the outside, say, write a code on node.js and interact with the database. Or the database can be used only with the help of mql5?
You can. There are no obstacles.
I can't find a thread or posts on the topic - limitation of incompatible parameters in Tester, so that during the initialisation pass when a number of parameters match, optimisation will not take place
This?
https://www.mql5.com/ru/forum/437096#comment_43539784
This?
https://www.mql5.com/ru/forum/437096#comment_43539784
I do it like this: