Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 332
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
Why when I create an arrow.Create(0, "ArrowCheck",0,TimeCurrent(),1.14565) fromMQL5Standard Library the object is created and immediately deleted.
Hello all!
The task is to find an analogue of rates_total in an Expert Advisor.
Transferring an array from an indicator to an Expert Advisor. Numbering according to the bar number in the history 1 -> rates_total
The problem: When the parameter - bars does not correspond to the array size in the indicator, the values get mixed up in the output.
Although by logic, I need data starting fromLx_Expert[1], so then the copied array size doesn't matter, but it turns out it does.
2017.10.09 20:35:04.304 Expert (EURUSD,M5) LxExpert[3] 85.0
Problem: when the parameter - bars does not correspond to the size of the array in the indicator, the output is confused by the values.
Do you synchronise the number of bars between the indicator and the Expert Advisor?
Hi, could you tell me how to select the last order in the order loop?
This is how you select the first one if there is a next one. How do I select the last order? If anyone knows, please write!
Hi, could you tell me how to select the last order in the order loop?
This is how you select the first one if there is a next one. How do I select the last order? If anyone knows, please write!
Try to go this way.
Doesn't the last one work that way?
Try it this way
Doesn't the last one work like that?
At least advise correctly... You need OrdersTotal()-1.
So I clarified whether it works that way or not ;)
I don't know exactly, for I have never dealt with warrants myself - I work with a class by order.
So I clarified whether it works that way or not ;)
I don't know exactly, as I haven't dealt with warrants myself - I work with a class by order.
For you and the person you wanted to help: it doesn't work that way. You will get an error.
And it's desirable to deal with it, because it's the basis of working with all arrays in mql.
Thank you for your help! So the right thing to do would be to write?
Thank you for your help! So the right thing to do would be to write?
Find the code you need here