Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1683
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
Yes, of course. First: 0, last: OrdersTotal()-1
Ah, there's an array, really from scratch...
I attach a screenshot.
in your case, it turns out that only 2 of the 3 lines, I adapted it to the problem, and it turns out that the first line stay (as it should) and the level of the other two (red and blue) with given conditions ( instead of a red and blue line was a single line - and it was red ifRSI2>RSI3 and blue ifRSI2<RSI3) become straight and only red like it doesn't know it is RSI
I attach a screenshot.
How do you equalise Buf1 and Buf2?
In your condition they are 0!
in your case it worked out only 2 of 3 lines, I adapted it to the task at hand and it turns out that the first line stay (as it should) and the level of the other two (red and blue) with the given conditions ( instead of red and blue line was a single line - and it was red ifRSI2>RSI3 and blue ifRSI2<RSI3) become straight and only red like it doesn't know it is RSI
I attach a screenshot.
Hi all, can you please tell me the difference between a trading robot and a trading advisor?
but when you work with 3 lines
I see correctly how you give the language "parameters" and why in the second case you added arrays and divided by 2
It's the same thing... play on words
A play on words.
From the next branch. Without colluding...
Andrew, let's first define your condition from the first post
so, instead of red and blue one - we get the average of these lines, i.e.
and this line, by default, has red colour.
Further, when the condition is met
we do not change the line colour as it cannot be done in MT4,
we take and overlay another line with another colour