Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1280
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
Hi all!
1) Compiled the EA.
2) Run it in tester.
3) There are three entries in the log:
2020.10.25 20:06:08.484 2020.09.24 00:00:00 OVERLOAD test started
4)Visualization stays in place.
Whatever logical mistake may have been made, the trades will not be executed, for example, but the tester should start counting the bars. But the chart freezes and stands still.
I have tried several other Expert Advisors, and they all work.
When I run this one everything stops.
Has anybody had such a problem? How to fix it?
If you write calculated values to a log or file, how does that help?
Find the error, form an algorithm.
Well, you can work out the angle with a tangent. And you don't really need an angle per se, you just need a tangent.
The tangent is in any case a kilometre per hour or a point per mile or a thousand points per day and that's the speed. The dimensionality of the graph. and the tangent on it is the angle tied to the ordinate and abscissa dimensions. This is the place to start.
Yes, again the speed is only units: pips per minute. As for weekends and holes, I've decided: what candles are on the chart is the time interval, and what is not (days/hours), it doesn't exist. Because if we take into account weekends, and the price stands still at that time, the speed will noticeably decrease without any reason. But then again, that's to each his own :)
Why fear speed. It's just a convention to give types.
As a variant of the angle definition function:
After MT5 the feeling of MT4 is just awful. The access to the history is somehow emasculated. I am not even speaking about the ticks.
Please advise whether there is a possibility to manage programmatically the display of trade level descriptions on the chart. Is it possible to disable them using MQL4 tools (while leaving trading levels on the chart) or change them?
I need to visually mark some trading levels providing them with their own descriptions. For that I create horizontal lines that are similar in style to trade levels but differ in colour. I set a description for them (OBJPROP_TEXT) and enable displaying object descriptions on the chart (ChartSetInteger(0,CHART_SHOW_OBJECT_DESCR,true)). In this case, the description I have created is superimposed on what is shown in the screenshot and as a result neither of them is legible.
Is it possible to disable or change the descriptions of trading levels created by the terminal? Are these descriptions accessible from the MQL program?
Please advise whether there is a possibility to manage programmatically the display of trade level descriptions on the chart. Is it possible to disable them using MQL4 tools (while leaving trading levels on the chart) or change them?
I need to visually mark some trading levels providing them with their own descriptions. For that I create horizontal lines that are similar in style to trade levels but differ in colour. I set a description for them (OBJPROP_TEXT) and enable displaying object descriptions on the chart (ChartSetInteger(0,CHART_SHOW_OBJECT_DESCR,true)). In this case, the description I have created is superimposed on what is shown in the screenshot and as a result neither of them is legible.
Is it possible to disable or change the descriptions of trading levels created by the terminal? Are these descriptions accessible from within the MQL program?
Yes, there is,
uncheck the checkbox.
You can,
uncheck the box.
If you uncheck this box, then the trading levels (lines) themselves disappear from the chart along with their descriptions.
By asking the question, I was trying to emphasize that I do not want to remove the lines, I only need to change or delete their descriptions from the chart (shown by arrows in the screenshot).
If you uncheck this box, then the trading levels(lines) disappear from the chart along with their descriptions.
By asking the question, I was trying to emphasize that I do not want to remove the lines, I only need to change or delete their descriptions from the chart (shown by arrows in the screenshot).
You don't need them, you create your lines on those places
You don't need them, you create your lines in those places.
I only want to highlight some of the existing levels (for the example shown in the screenshot, the uppermost one), and leave the others as they are.
If it is impossible to access the descriptions of these levels programmatically, then probably we will have to disable the levels themselves and then on each tick poll the terminal to draw them independently by highlighting the appropriate levels in another colour and providing them with a different description. And there are not only open levels, but also stop-losses and take-profits that also have to be drawn.
Perhaps there is a more trivial way to disable the description of trading levels (leaving only lines) or change them?
Can you please explain in plain language what the difference between these functions is?