
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 and good mood everyone!
I wonder if this code
will it work? I found it on the MQL5 website a long time ago and don't remember who I copied it from.
Regards, Vladimir.
Good day and good cheer everyone!
I wonder if a code like this:
will it work? I found it on the MQL5 website a long time ago and don't remember who I copied it from.
Regards, Vladimir.
By the way, I also use this code and it works quite well, but it is a bit wider, it can be used for any TF!
Wow.)
Wow.)
Who's in K? I think I've looked at everything.
array comparison
I was disappointed in the new bar, no coincidence of trades, for some reason I do not understand, there is no print, i.e. no triggering or serieslastbar or just a lag in time, I have a high ping (140), maybe that's the reason.
I have tried many variants of newbar, everywhere was a stutter, tested in 3 terminals on one computer.
I removed newbar and all terminals traded on the server 1in1 100% for several days.
Who's in K? I think I've looked at everything.
array comparison
I'm disappointed in the new bar, no coincidence of deals, for reasons I do not understand, there is no print, i.e. no triggering or serieslastbar or just a lag in time, I have a high ping (140), maybe that's the reason.In K parameters.
Because with this function there is no second attempt in case of an error with an order.
and the trade is not in OnTick, but by OnChartEvent(spy), and in the fastest possible implementation, only through id, the rest are not transferred
7 symbols, the passage of one symbol on a large number of conditions and counts, in the American session, 0.5-0.7% ryzen 3700x
tried even a new bar through a new bar from the indicator, also diverge deals, 5 normal and then in one, then in the other stutters.
By the way yes I also use this code and it works quite well, only it is a bit wider, you can use it for any TF!
Thanks, Mikhail, I will add it to my library of functions.
Regards, Vladimir.
I have no simpler method than this one.
Tracks the opening time of the current bar and compares them at each tick.
Remove the first function from the code. And life will get better.
In general, 2 circumstances are interesting:
1. Everyone got banned for some reason.
2. A new bar is always different in time from the previous one. Any time, because it always goes from left to right. Take any time. If it does not coincide with the same previous one, then the bar is new.