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

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
I found a new indicator, I wanted to put it on the EA, but the problem is that it opens trades on every candle. Please advise how to make it open only on arrow signal
First of all, the indicator is not new at all, but very old. So old that its interfaces are outdated even for 4
Secondly, it redraws. Exactly at HalfLength (5 bars by default, set in parameters)
and finally - how to open trades for Expert Advisor depends on 90% of the EA, that is, without the EA code, everything is useless
First of all, the indicator is not new at all, but very old. So old that its interfaces are obsolete even for 4
Secondly, it redraws. Exactly at HalfLength (5 bars by default, set in parameters)
And finally - how to open trades for Expert Advisor depends 90% on the EA, i.e. without the EA code, everything is useless
Ok. Got it. For example, if we take 2 indicators with different periods and write the condition *if 1 indicator shows the up arrow and 2 indicators shows the up arrow on one candle, give us an alert and an arrow on the chart*. Do you know how this can be implemented? Do I need to add a buffer or can I create an indicator that follows the signals of both? And if you are not hard, give an example how to do it
ok. got it. For example, if we take 2 indicators with different periods and write the following condition *if 1 indicator shows the up arrow and 2 indicators shows the up arrow on one candle, it will generate for example an alert and an arrow on the chart*. Do you know how this can be implemented? Do I need to add a buffer or can I create an indicator that follows the signals of both? And if you are not hard, give an example how to do it
Add two iCustom with different periods to your EA and (maybe) you'll be happy.
OK, I'll give it a try. Thank you.
Hello again )))) Who can tell me what is the indicator?
<*.ex* file deleted
I'm trying to write an indicator like ZigZag by the number of passed points.
I'm afraid I don't have enough knowledge to write it myself, so I decided to rewrite someone else's indicator.
This is what has come out
It seems to be drawing correctly, but it lags.
The price has passed 50 points but indicator does not draw.
Please help me to fix this problem.
Help solve the problem, please.
Here is the point by point ZZ posted for MT5
https://www.mql5.com/ru/forum/318267#comment_12508440
should work in MT4 if you change the numbering in the main calculation cycle
here is the point-by-point ZZ posted for mt5
https://www.mql5.com/ru/forum/318267#comment_12508440
It should work in MT4 if you renumber the main calculation cycle
Igor, thank you, but MT4 does not work correctly.
Please tell me what has to be correct.