[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 41
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 day to all, again!
Question is, why does the function (see below) give an error: 'A' - array item cannot be assigned?
Please have a look at it!
Good day to all, again!
Question is, why does the function (see below) give an error: 'A' - array item cannot be assigned?
Please have a look at it!
An array cannot be returned
You don't have to try! The .mqh files are placed in include and lie quietly. When compiling the EA in which they are written, the compiler automatically combines the necessary code elements and compiles them together.
When you try to separately compile .mqh, the compiler tries to determine the type of the product (Expert Advisor, indicator...) and starts to ask "where have you started?
You should start figuring out .mqh if errors occur during proper compilation.
Thanks!
Your line is as valid as the first.
This way you can get any information about an open order,
but only once at the time of opening confirmation.
See https://docs.mql4.com/ru/trading/OrderSe nd
Question for indicator writers.
How to impose MA on an indicator that outputs data from three buffers in a row in the indicator code.
I can get MA from one buffer.
You can't return an array
Thank you for answering!
Why is there no compile-time error here?
Or am I not returning an array here?
Is there any way to return a pointer to the first array element, like in c++?
Thank you in advance!
People, who knows why in the test in all ticks mode the EA loses, but in the bar opening mode it does very well?
Does it mean that if I only consider bar openings the EA will trade well?
Thank you for replying!
Why is there no compile-time error here?
Or am I not returning an array here?
Is there any way to return a pointer to the first element of an array, like in c++?
Thanks in advance!
If you want some array to be filled in the function, pass in a reference
If you just want the first element to be returned
then
People, who knows why in the test in all ticks mode the EA loses, but in the bar opening mode it does very well?
Does it mean that if I only consider bar openings the EA will trade well?
Question for indicator writers.
How to impose MA on an indicator that outputs data from three buffers in a row in the indicator code.
I can get MA from one buffer.