
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
You shouldn't do that. It's a big drain on resources. And what's wrong with a fast response time without looping?
A tick is the arrival of new data from the server. And it must be processed immediately after it arrives. If you do it in loop with 5ms delay, then most of the ticks will come exactly during this delay. Thus, processing will be delayed by 0 ... 5 ms.
Thank you. It's just that the official mql4 tutorial gives this as an example, so I was interested. I thought maybe it somehow works better than the usual way.
Good afternoon!
Hello, Can you tell me the most convenient broker for USD/RUB currency pair?
Since you are just starting out, you will be very happy with anyone. Do a search on the internet and compare them. Communicate with them, ask questions. You'll get an answer.
Here we are discussing questions about programming and the Metatrader trading platform.
What is the best way to close counter orders if you need to close them simultaneously
1) each one individually (either manually or by TP/SL)
or
2) In pairs with OrderCloseBy (manual only)?
Will there be a single spread saving with OrderCloseBy as written in the tutorial? Do not the DCs prohibit such a close and will this spread be given back? How to check this technically?
Thank you.
For this template-class, we need to implement sorting, given the fact that an array can store complex data types. For example:
ArrayList<PP*> *dde; // PP - класс
You can write different functions for simple types and complex types, but the compiler doesn't understand that functions are strictly delimited by data type and keeps on swearing:
'<' - illegal operation use ArrayList.mqh
So I decided to embed the interface:
All parts of the construct compile. But if you try to declare it:
ArrayList<PP*> *dde; // PP - класс
then, when compiling the file, these are the errors:'QuickSorts' - template mismatch varQSort.mqh /*error 1*/
'=' - type mismatch ArrayList.mqh /*error 2*/
P.S.What should I fix in the code to eliminate this type mismatch? I don't understand why it has appeared at all.
'<' - illegal operation use varQSort.mqh
haunts me in this construct as well. It is this very error I wanted to get rid of. But I understand this error, and I don't understand those two.
Hello, please help with a piece of code to sort out ripped from an indicator PivotsDaily v2.mq4 how to convert it to an hour or half-hour, only in one way or another, so it would be clearer changes, please help, thank you in advance.
You already wrote in one thread. It is enough. There is no need to cluster in others.