Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 874

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
This is a simple software restriction, not related to the default settings of the EA settings window - these settings belong to the EA settings, and they are controlled in the EA itself.
Thank you) Now I understand how it is implemented
How to get profit and loss values when TP or SL is reached in the code?
For example, there is the function AccountFreeMarginCheck(), with which you can get the margin. And there are no functions to determine the point value at least for the specified symbol, volume and order type
MQL4
https://www.mql5.com/ru/forum/131859/page3
You can find a lot of functions here. Maybe you can fix something for yourself and you'll be fine.
and how do I set the recalculation function when I estimate the TF graph?
and how do I set the recalculation function when I estimate the TF graph?
There is documentation. It is possible to look through it sometimes. There is a function: UninitializeReason(), it returns code of deinitialization reason. And there are even examples.
Good evening. At the request of a friend I have made a modified version of the standard MT5Stochastic indicator Stoch_HISTOGRAM_MQL5_3
This version displays the indicator as a bar chart. My friend asked for the bars above 50 to be green and those below 50 to be red.
I've managed to handle bargraphs but I don't know how to change the colour, it just blew my mind. Help advice plz.
I'll paste the code below and attach the file.
Good evening. At the request of a friend I have made a modified version of the standard MT5Stochastic indicator Stoch_HISTOGRAM_MQL5_3
This version displays the indicator as a bar chart. My friend asked for the bars above 50 to be green and those below 50 to be red.
I've managed to handle bargraphs but I don't know how to change the colour, it just blew my mind. Help advice plz.
I'll paste the code below, I'll attach the file.
It's just amazing. How can one read the documentation and see DRAW_HISTOGRAM2 and not see DRAW_COLOR_HISTOGRAM2
Oh, and there are extra buffers declared.It's just amazing. How can one read the documentation and see DRAW_HISTOGRAM2 and not see DRAW_COLOR_HISTOGRAM2
Oh, and the buffers are redundant.Thank you for your comment. Oooh, you have no idea how much you can NOT notice, reading documentation, when you are looking for ways and solutions by feel, as in a fog, when there is no teacher, mentor, more experienced comrade, etc. Thanks a lot, I already found DRAW_COLOR_HISTOGRAM2, I understand the meaning of it, I will remake it now.
Could you tell me more about extra buffers? You can't have too much experience, but you can have too many buffers. :-0
Thank you for your comment. Oooh, you have no idea how much you can NOT notice, reading documentation, when you are looking for ways and solutions by feel, as in a fog, when there is no teacher, mentor, more experienced comrade, etc. Thanks a lot, I already found DRAW_COLOR_HISTOGRAM2, I understand the meaning of it, I will remake it now.
Could you tell me more about extra buffers? You can't have too much experience, but you can have too many buffers. :-0
Well... If the stochastic has 2 buffers, if I don't have all the memory chips burnt out. To be exact, 2 of them are. Accordingly, only they should be saved, replacing them with a histogram display. Actually, for two plots DRAW_COLOR_HISTOGRAM2 will need 6 buffers. But although I said number, I meant these lines
In my opinion, it should be like this
Greetings All!
A hint, if you know.
You see, the green one (Vigor=0.1154) did not even cross the red one (Signal=0.1133) nearby, but it sold. And it is not an isolated case.
Here's another one.
Here they are "merged", but still Vigor=0.0543 and Signal=0.0525.
Everything is "pronormalized" everywhere.
Code of this condition: && RVI_S_S >0 && RVI_S_M < RVI_S_S && RVI_S_M1 > RVI_S_S1
RVI_S_S (Signal-red), respectively RVI_S_M (Vigor-green).
If anyone has anything worthwhile to say, I'd be very grateful.
Greetings All!
A hint, if you know.
You see, the green one (Vigor=0.1154) did not even cross the red one (Signal=0.1133) nearby, but it sold. And it is not an isolated case.
Here's another one.
Here they are "merged", but still Vigor=0.0543 and Signal=0.0525.
Everything is "pronormalized" everywhere.
Code of this condition: && RVI_S_S >0 && RVI_S_M < RVI_S_S && RVI_S_M1 > RVI_S_S1
RVI_S_S (Signal-red), respectively RVI_S_M (Vigor-green).
If anyone has anything worthwhile to say, I'd be very grateful.
There was probably a crossover, but it was redrawn.
Check the signal after the candle closes.