
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
IsStopped() used to help combat looping - that's for sure. Since some time the "perpetual loop" is not cured byIsStopped() and, in fact, we have to delete the terminal process in order to restore operation. Although the type indicator is deleted from the chart with no problem, but the chart hangs.
For fun, you can try a specially looped indicator. By the way, as it is supposed in such a case, OnDeinit() does not work.
It's scary to even run it.)
How to send a request (message) from Android Client to MetaTrader Client, for example, to send a Notification
The only way to do this is to place a pending order on an unused symbol, and then the EA will find it, send a message with the required information and delete the pending order.
Good afternoon!
In the build of 19.04.13 the debugger is now displaying the contents of MqlRate in curly brackets. Thank you MQ for that! Are there any plans to make the display of such data expandable? In the sense of looking like a tree. This could be extended to classes as well.
Thank you!
For example:
CAbstractFilter{ meSS:CStrategySettings{ meEntrancePeriod:PERIOD_M15 meHistoryDepth:100 meSymbol: "EURUSD" meHistoryRates:[100] meRangeLimit:0.2 meHiLo:0.006 meHiLoMax:0.02 meTimeStart:" 06:00" meTimeEnd:" 20:00" meAsianStart:" 00:00" meAsianEnd:" 07:... }
Better:
CAbstractFilter:
+ { meSS:CStrategySettings
+ { { meEntrancePeriod:PERIOD_M15
meHistoryDepth:100
meSymbol: "EURUSD"
meHistoryRates:[100]
meRangeLimit:0.2}
and so on, similar to the tree structure of directories in Windows Explorer.
Thank you!
Hello again!
Step to cursor would be very useful in the debugger. Hopefully it will appear someday. Appreciate your comments in advance on possible timelines.
Thank you!
Has anyone had such a problem when using the standard library?
I tried to close one position SELL, although the check of Expert Advisor is that first we check for position type.
I got a lot of position reversals as a result, until my request was quickly executed
the Expert Advisor code is looped with 300 ms slip
The result -100 roubles.
Has anyone had any trouble with this?
the rake is not in the lib, because it reflects the essence of asynchrony of MT5
You have a rake in your code because you haven't made the blocking of new orders until you get the answer about the previous order's execution.
In MT5 you should independently arrange something similar to Trade Context Busy for the sent order, as it was in MT4.
You should not make new attempts to send a similar order until you see the report of the previous order execution.
You should catch the execution either in OnTrade or OnTradeTransaction.
Good luck. ;)
I feel full.
In the indicator I assign a value to a variable.
What am I doing wrong?
the rake is not in the lib, because it reflects the essence of asynchrony of MT5
You have a rake in your code because you haven't made the blocking of new orders until you get the answer about the previous order's execution.
In MT5 you should independently arrange something similar to Trade Context Busy for the sent order, as it was in MT4.
In other words, you should not make new attempts to send a similar order until you see the report of the previous order execution.
You should catch the execution either in OnTrade or OnTradeTransaction.
Good luck. ;)