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
Please consider
Proposal to add to MQL5 functionality that allows changing from an indicator or expert or from a script
Max bars in the window...
It may be useful to make a program controllable limit
PS
Also, if you can - please make optimization results and optimization graph get deleted, in case testing is going on in normal mode.
Or is it such a trick to be able to watch it at any time?
PS
Also, if you can - please make optimization results and optimization graph get deleted, in case testing is going on in normal mode.
Or is it just a trick to be able to see it at any time?
I would object to such a suggestion. After optimization, to analyze results I need to check multiple passes separately in normal mode (achieved by clicking on the corresponding pass). If optimisation results disappear after the first test in normal mode, a valuable opportunity to work with the results will be lost.
I would object to this suggestion. After optimization, I need to test many passes individually in normal mode to analyze the results (achieved by clicking on the corresponding pass). If optimisation results disappear after the first test in normal mode, a valuable opportunity to work with the results will be lost.
Well, I do not insist, which is what the line says - > Or is it such a trick to be able to see at any time?
1)You need to add normal events, not what you have implemented.
The first thing that popped into my head
OnBar,OnBarClose,OnQuote,OnDomChanged...
OnPositionOpened,OnPositionClosed...
OnConnected,Ondisconnected...
changes in request statuses, etc.
2) make human-like documentation, like here: http://msdn.microsoft.com/en-us/library/system.data.aspx
3) "Bring API to the masses" -)
ps It seems that the developers either make software for newbies or are themselves
1)You need to add normal events, not what you have implemented.
The first thing that popped into my head
OnBar,OnBarClose,OnQuote,OnDomChanged...
OnPositionOpened,OnPositionClosed...
OnConnected,Ondisconnected...
changes in request statuses, etc.
2) make human-like documentation, like here: http://msdn.microsoft.com/en-us/library/system.data.aspx
3) "Bring API to the masses" -)
ps ps It seems that developers either make software for newbies or are like newbies themselves.
There is such a thing as USER events. You can implement any number of them by yourself.
I've been catching OnConnected and OnDisconnected events via a timer for a long time now. If you want, you can also create OnBar and OnBarClose or any other events.
Then you can easily catch them in OnChartEvent with help of such block (there is all this in help, why to re-invent the wheel?).
PS
And on class level you can handle any (well, almost any) event...
There is such a thing as USER events. You can implement any number of them yourself.
I've been catching OnConnected and OnDisconnected with a timer for a long time now. If you want, you can also create OnBar and OnBarClose or any other events.
After that just catch them in OnChartEvent with help of this block (it's all in the help, why to re-invent the wheel?).
PS
And on class level you can handle any (well, almost any) event...
Interesting to see how you implement it (OnConnected?)
dentraf:
Interesting to see how you implement this (OnConnected?)
Yes please :)
Here is an example of handling these events in Expert Advisor with CMqlManagerConnect class (module attached to the post).
1. Copy the module to the \MQL5\Include\ folder (preferably in a subdirectory)
I have it all here - MQL5\Include\Units\Objects.
2. In the Expert Advisor add a link to this file.
3. Create a variable of CMqlManagerConnect type.
4. In the timer it goes like this
5 You should write the following text in OnChartEvent
PS
You can, of course, not pass the events to OnChartEvent, but process them directly in the class (either in the base or descendants). But even with this approach, I recommend leaving the reference to OnChartEvent, because you may need to tell the other charts about the events... :)
Yes please :)
Here is an example of how these events are handled in the Expert Advisor using the CMqlManagerConnect class (the module is attached to the post).
1. Copy the module to the \MQL5\Include\ folder (preferably in a subdirectory)
I have it all here - MQL5\Include\Units\Objects.
2. In the Expert Advisor add a link to this file.
3. Create a variable of CMqlManagerConnect type.
4. In the timer it goes like this
5 You should write the following text in OnChartEvent
PS
You can, of course, not pass the events to OnChartEvent, but process them directly in the class (either in the base class or in the descendants). But even with this approach, I recommend leaving the reference to OnChartEvent, because you may need to tell the other charts about the events... :)
Did you write the CMqlManagerConnect class yourself? Do you have a solution for server enumeration when you lose connection to the server?