Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 710
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
I recently posted a cross-platform indicator template here. Check it out.
you need to blog and post answers to the same questions there.... I wish I had that kind of patience!
here's https://www.mql5.com/ru/forum/160683/page670#comment_9054670
you should blog and post answers to the same questions there.... I wish I had that kind of patience!
Help.
I want to place pending orders on positions that have been closed for the day.
The function puts the order at the price of the last closed position.
What should I do to put pending orders on the price of all the positions closed during the day?
Help.
I want to place pending orders on positions that have been closed for the day.
The function puts the order at the price of the last closed position.
What should I do to put pending orders on prices of all the positions closed within one day?
I started to study MQL4 by S. Kovalev's book. Kovalev, there are some inconsistencies in the code, as the book was written for old builds of MT4.
Please advise how to process this code to avoid errors.
error
'return' - the function must return a value
1. Is it correct to do so?
2. Question, how problematic is it to write code for new builds using the knowledge given in the tutorial (I mean the age factor of the information)?
I started to study MQL4 by S. Kovalev's book. Kovalev, there are some inconsistencies in the code, as the book was written for old builds of MT4.
Please advise how to process this code to avoid errors.
error
'return' - the function must return a value
1. Is it correct to do so?
2. Question, how much of a problem is it to write code for new builds using the knowledge given in the tutorial (I mean the information ageing factor)?
Use OnInit(), OnDeinit(), OnTick(), and others from the list:
I started to study MQL4 by S. Kovalev's book. Kovalev, there are some inconsistencies in the code, as the book was written for old builds of MT4.
Please advise how to process this code to avoid errors.
error
'return' - the function must return a value
1. Is it correct to do so?
2. Question, how much of a problem to write code for new builds using knowledge from the tutorial (I mean the age factor of the information)?
Thank you, I find open prices of closed positions at the required time in the first cycle. They all appear on the printer and I need to place orders on them.
The array is a bit of a jigsaw for me, please advise me how to insert the cycles to check and set them to the opening price into the first cycle of searching for these prices.
So, puts on the price of the oldest one I need, how do I go to the next price found?Thank you, I find the opening prices of closed positions at the right time in the first cycle. They all show up on the printer and I need to place orders on them.
The array is a maze for me, tell me how to put the cycles to check and set to the opening price into the first loop to find these prices.
It's faster to understand and understand what arrays are, than to correct what you have done.
Especially since arrays are not simple, but very simple.
AK magazine holds 30 cartridges - it's an array of size 30. And the cartridges are the data stored in the array.
Admittedly this is not a good example - you can't get the third one unless you get 0, 1 and 2.
Well imagine a spreadsheet:
Here's a simple one-dimensional array of size 10.
Value 1 is stored in cell with index 0, value 2 is stored in cell with index 1, value 3 is stored in cell with index 2, ...
...
Value 8 is stored in index cell 7, value 9 is stored in index cell 8, value 10 is stored in index cell 9
It is as simple as that. To get value 3, you need to refer to the array - its cell 2: Value3=Array[2];