Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 966
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
Well, in that case, what are these self-written functions for anyway?
I got the maximum and minimum prices of yesterday and from these values to determine the middle.
I don't know... I wasn't thinking... I'll rewrite it now... It's easier that way... Thanks!
Money Management
as for the random entries the pending orders follow the price, in the optimizer the selection is performed according to the formula y=kx+b , later I will use polynomial and exponent, but the optimizer searches only for the factors and the order values, in general not to put a fog on it - it is a grid, well, almost, but the goals have not been reached yet
When I look at the markets (though I've been doing it with a great pause), I've been dealing with them since I registered on the forum. Of course, it took me a long time to improve the layer of programming in MQL, but the general idea I got during the year of related writing of experts following the workers' requests )))
No problem, go ahead.
I see, very well understood, because I've been through this before.
All the same it's all about finding some parameters (in this case at least coefficients k and b in linear y=kx+b or a,k,x in exponential y=ax²+kx+b). These coefficients should preferably change withevery tick, that's why I said that optimization should sit in the program itself and take place automatically and constantly, but not in an external tester in manual mode from time to time (once a day or week or month...). Also you need to control the period, in which the observed linear or parabolic (exponential) regression occurs. This period should also change with every tick. Though finding a line or a parabola is the same as finding the optimal period of the linear or parabolic regression at present.
But an external tester can always find such constant static parameters, which will be universally guaranteed to fit only that set of historical data, on which the test is executed, and on this, the past historical period, of course, a stable profit and beautiful profit lines will be observed, but we need the present and the future.
All the same, it all comes down to controlling the channel width, channel length, channel breakdown, return to breakdown line of a linear or higher degree of channels. And this is a pattern recognition problem and should only be solved internally, not externally.
I see, very well understood, for I have been through it before.
So have I, and more than once.
But the external tester will always be able to select such constant static parameters, which will be universally guaranteed to fit only that set of historical data, on which the test is running, and on this, already past historical period, of course, a stable profit and beautiful profit lines will be drawn, but we need the present and future.
That's the problem - no, everything is the same as in the book test and forward, charts are different, but the trend is there, as far as I understand my EA is not hitting the future price itself, but the future price trajectories.
Guys, here's a question. Look, there is a prefix increment ++q and postfix q++, using their features we can get quite different and interesting effect, for example priority of this q++ increment performs addition late/backwards i.e. after and not immediately, how it can be done with prime numbers and is it possible, for example I want such addition q+5, first I need to use q and then add 5?
Well if this is to be used as a loop counter then simply
Well, if you use it as a loop counter, it's easy
And if you pass a q+5 expression into a function and first execute q and then add 5, you can't do it, right?
And if you pass a q+5 expression into a function and first execute q and then add 5, you can't do it, can you?
Hello, I want to close differently directed positions when profit =0 Different number of buy and sell positions, different lot sizes.
What is wrong with the average price search function, i.e. the zero profit point?