Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1277
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Good day to you all.
Can you advise how to fix this situation?
According to the manual :
CHARTEVENT_OBJECT_CLICK
Mouse click on graphical object
Actually, the reaction to this command happens after releasing the mouse button, i.e. pointing at the object, click, no reaction, release, there is a reaction.
Is it possible to make the reaction, exactly, on the mouse button press ?
Either no one knows it or it can't be fixed?
Hi all!
Can you please explain to me why the EA ALWAYS opens a trade with a lot that does not correspond to the lot calculated in the code?
Hi all!
Can you please explain to me why the EA ALWAYS opens a trade with a lot that does not correspond to the lot calculated in the code?
Because it is not calculating correctly. Look for a calculation error in the code.
I specifically underlined the word EVERYWHERE.
I double-checked it a thousand times. I mean, the previous trade was calculated correctly and the next one too. I don't know what the mistake is.
I specifically highlighted the word EVERYWHERE.
I double-checked it a thousand times. I mean, the previous trade was calculated correctly and the next one too. I do not understand what is the error.
In a magazine or file, calculate values write, perhaps takes the old, from previous transactions, not correctly updates, there may be many reasons.
Hello.
I understand that in MQL4, there is no possibility to draw lines as bars in indicators? That is, let us say that an indicator style is a line. It is not drawn as a continuous line connecting all points of the indicator buffer, but only from some points determined by some condition? Or, for example, it is not one line, but several lines and different segments, of different colours.
Roughly speaking, is it possible to draw like this with an indicator? This is drawn with graphical objects.
Hello.
I understand that in MQL4, there is no possibility to draw lines as bars in indicators? That is, let us say that an indicator style is a line. It is not drawn as a continuous line connecting all points of the indicator buffer, but only from some points determined by some condition? Or, for example, it is not one line, but several lines and different segments, of different colours.
Roughly speaking, is it possible to draw like this with an indicator? This is drawn with graphical objects.
And how is this done for my picture above? Is it a single indicator buffer or what? I don't understand how to separate the sections?
Have you worked it out? I'm not getting it either and haven't found an answer yet.