Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1404

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 hope the translation will be faithful, but obviously it won't be...
It is for this and other reasons that we do NOT need Global THREADS...
Otherwise, we wouldn't have Regional Forums...
Bizarre move...
:(
Hello.
I want to make a universal include file that can be included with any EA. And it should be limited to just one inclusion without any additional code.
The problem is that the file uses OnTimer() as input point.
What if EA (which my include file connects to) also uses OnTimer()? Is there any solution?
Good afternoon. I trade on the Moex stock market. Broker Otkritie. If there are open positions for several instruments, the robot confuses them when sending a request to partially close them (it can send a request with the price of Sberbank shares for Magnit shares, for example. I.e., the instrument in the request is specified for Magnit, but the prices are specified for Sberbank) or simply does not send the request. Code of closing algorithm for Long position (runs when price of instrument Price_Close_1_Buy is reached):
Hello.
I want to make a universal include file that can be included with any EA. And it should be limited to just one inclusion without any additional code.
The problem is that the file uses OnTimer() as input point.
What if EA (which my include file connects to) also uses OnTimer()? Is there a solution?
Don't ever do this.
Just a piece of advice. Not going to change my mind.
Don't ever do that.
Just a piece of advice. I'm not going to change your mind.
These are the requirements of the project.
How do I override the default OrderSend()?
I added a line at the top.
In my MyOrderSend() I do some calculations and call OrderSend() again. I want to call native OrderSend(), but instead I get recursion and MyOrderSend() is called again.
And this call doesn't help either ::OrderSend()In my MyOrderSend() I do some calculations and call OrderSend() again. I want to call the native OrderSend() function, but instead I get a recursion and MyOrderSend() is called again.
This doesn't work at all. #define replaces the first (the call) with the second in the program code, as OrderSend(..) is replaced with MyOrderSend(..) every time it occurs.
This doesn't work at all. #define replaces the first (call) with the second in the program code, as OrderSend(...) is replaced by MyOrderSend(...) every time it happens.
yeah, and I've got it working... I #define just put it under my MyOrderSend().