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

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 afternoon. Can you please advise why the EA sets a huge number of objects (down arrow), but the up arrow is not set???
The task is as follows: The Expert Advisor should find the Doji pattern on H4 no matter what TF the chart is open on. And when closing the 4-hour Doji, it should put an up or down arrow, depending on the pattern configuration.
Please check the errors in the code.
Thanks
Hello. A custom indicator (or rather several of them), in a separate window, draws histograms of two colours - blue and red. How to pass its values to the Expert Advisor - for example, blue histogram, buy signal; red - sell signal. Through iCustom(..., buffer, shift), I cannot figure out how. I found nothing on the Internet, or rather, I found one way, but it seems to be wrong. Can someone please advise me?
Hello. A custom indicator (or rather several of them), in a separate window, draws histograms of two colours - blue and red. How to pass its values to the Expert Advisor - for example, blue histogram, buy signal; red - sell signal. Through iCustom(..., buffer, shift), it seems not quite right. I can't find the answer on the Internet. Can someone give me a hint?
Use iCustom() - check which buffer is blue and which is red. Use them to get the values you need. The buffer colour is not important at all, the buffer values are important. And they can have the same colour - the colour is necessary only for your eyes, but not for the EA.
Hello. A custom indicator (or rather several of them), in a separate window, draws histograms of two colours - blue and red. How to pass its values to the Expert Advisor - for example, blue histogram, buy signal; red - sell signal. Through iCustom(..., buffer, shift), it seems not quite right. I can't find the answer on the Internet. Can someone give me a hint?
What can cause an EA to be deleted when switching timeframes on the chart?
Read the logbook, possibly "going outside the array"
Exactly through iCustom() - see which buffer is blue and which is red. From them you get the values you need. The buffer colour is not important at all, the buffer values are important. And they can have the same colour - the colour is only necessary for your eyes, but not for the EA.
Thank you for your reply. I understand that, about the colours and values, I can't get it right. For example here is the end of the indicator code
Thank you for your reply. I understand that, about the colours and values, I can't get it right. For example here is the end of the indicator code
Can you give me the indicator? What is shown in the data window (Ctrl+D) when you move the mouse over the indicator bars? How many buffers are there and what values are in them?