Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 220
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 have understood my error, but I have not understood how to solve it. The task is normally started every second, but the time from the beginning of the current candle is not counted correctly.
The Seconds() function outputs seconds from the data of the last known tick, but I need to somehow count the real number of seconds since the opening of the minute candle at the moment the function is called, even if there were no ticks at all for the last couple of seconds.
TimeSeconds (TimeLocal()) or ( TimeLocal() - Time[0]) will not work either, because the local time can differ from the server by several seconds. How to solve the problem?
You haveOnTimer() running every second,
You haveOnTimer() running every second,
But for correct program work I need it to show server's time every second, and here it depends on whether the next tick has come or not. If it doesn't, then ontimer is started but shows lagging time, that's the problem.
The only thing I've come up with so far, but it's a bit crooked:
And to do that, I had to set the computer to synchronise time every 10 minutes.
The only thing I've come up with so far, but it's a bit crooked:
And to do this, I had to set the computer to synchronise the time every 10 minutes.
You have to make a millisecond timer of 100-200ms, and work entirely within it.
Seconds are too long, and they slip frequently.
I have no idea what to do in the beginning, in the middle, and in the end. The problem is to make an owl on an indicator, and the stop to drag 2 candles after entry, if the deal goes against the current trend, then close the deal and open a reversal, reversing the stop in the same way. I have no idea how to make a constant 20 and 80 as an entry and exit point.
I have no idea what to do in the beginning, in the middle, and in the end. The problem is to make an owl on an indicator, and the stop to drag 2 candles after entry, if the deal goes against the current trend, then close the deal and open a reversal, reversing the stop in the same way. I have no idea how to make constant 20 and 80 as entry and exit points.
Forgive me, drunken idiot ... But I'll tell you this: If you are so sure that "this TS won't fail", what's stopping you from earning $20 manually and ordering this EA on freelancer? I can assure you, most of the decent people there and will not distribute this TS, much less advisor anywhere ...
I want to learn how to make an EA. Maybe the market will change and I will have to pay more, for example, to change the algorithm a bit?
I don't know if I can really make it with some owl constructor, but I'd rather understand the basic functions like making a stop in a certain place or order an order to trade on certain days.
I don't know why I should make 1,2,3 etc. even in the constructor and why I should connect everything in this order with arrows. Who teaches mql 4 from A to Z and not as internet warriors create courses that do not explain why they do it that way, in words, you won't make anything new by yourself and will have to copy their code .... I mean, they know what order is responsible for what, and they didn't just point at random ..... Well, let the professionals do pyramiding, dynamic lot, smart stop; my task is different - to download the required filters and understand the essence of trend formation. Thanks for your help!
I want to learn how to make an EA. Maybe the market will change and I will have to pay more, for example, to change the algorithm a bit?
As for the possibility to make a TS with some owls constructor?
the closing block doesn't seem to raise much of a question either, the conditions have been shown to be simplified:
would be much appreciated.