Hello, I decided to rewrite the indicator from MQL4 to MQL5 and got stuck in indicator buffers... I think I entered everything I needed but the indicator line is still not displayed!
Here's an example, I want to display the close price for the last 30 bars, I even put a comment on the buffer, to see if it is filled with something ...
The buffer is filling but the chart is empty and I don't see any image (((
What may be the problem? Maybe bars are backwards in MQL5?)
Hello, I decided to rewrite the indicator from MQL4 to MQL5 and got stuck in indicator buffers... I think I entered everything I needed but the indicator line is still not displayed!
Here's an example, I want to display the close price for the last 30 bars, I even put a comment on the buffer, to see if it is filled with something ...
The buffer is filling but the chart is empty and I don't see any image (((
What may be the problem? Maybe bars are backwards in MQL5?)
if you use ArraySetAsSeries(), it will be applied only to one array - in your example to the indicator buffer array Buffer1 , for correct calculation you should also apply it to close
Hello, Can you please advise me if I want my EA to open a position on a symbol other than the current chart. OrderSend(MarketInfo("EURUSD",MODE_ASK), OP_BUY, Lots, Ask, Slip, 0, 0, "", Magic, 0, Blue) Am I correct? correct me if not
Averman: Hello, Can you please advise me if I want my EA to open a position on a symbol other than the current chart. OrderSend(MarketInfo("EURUSD",MODE_ASK), OP_BUY, Lots, Ask, Slip, 0, 0, "", Magic, 0, Blue) Am I correct? correct me if not
The error is gone, with the same wording, now it has gone to another part. Just above I wrote to Igor
insert the prints where the error occurs, maybe you can solve your problem that way.
There is no other way, I have already explained the reason for your error
Hello, I decided to rewrite the indicator from MQL4 to MQL5 and got stuck in indicator buffers... I think I entered everything I needed but the indicator line is still not displayed!
Here's an example, I want to display the close price for the last 30 bars, I even put a comment on the buffer, to see if it is filled with something ...
The buffer is filling but the chart is empty and I don't see any image (((
What may be the problem? Maybe bars are backwards in MQL5?)
Hello, I decided to rewrite the indicator from MQL4 to MQL5 and got stuck in indicator buffers... I think I entered everything I needed but the indicator line is still not displayed!
Here's an example, I want to display the close price for the last 30 bars, I even put a comment on the buffer, to see if it is filled with something ...
The buffer is filling but the chart is empty and I don't see any image (((
What may be the problem? Maybe bars are backwards in MQL5?)
The numbering of bars in MQL5 is reversed
indexing can be changed usinghttps://www.mql5.com/ru/docs/array/arraysetasseriesThe numbering of bars in MQL6 is opposite
you can change the indexing usinghttps://www.mql5.com/ru/docs/array/arraysetasseriesThank you!, added a line and it started to show normally!
but I think the numbering of the bars is the same from right to left, just the buffers go backwards....Thanks!, added a line and it's starting to show properly!
but it seems to me the numbering of bars is the same from right to left, just buffers go backwards....In 4, bar number 0 is the rightmost bar.
In 5, bar #0 is the leftmost bar.
by default, the indexing of indicator buffers is the same as for time series
if you use ArraySetAsSeries(), it will be applied only to one array - in your example to the indicator buffer array Buffer1 , for correct calculation you should also apply it to close
or change the loop as described above
OrderSend(MarketInfo("EURUSD",MODE_ASK), OP_BUY, Lots, Ask, Slip, 0, 0, "", Magic, 0, Blue)
Am I correct? correct me if not
Hello, Can you please advise me if I want my EA to open a position on a symbol other than the current chart.
OrderSend(MarketInfo("EURUSD",MODE_ASK), OP_BUY, Lots, Ask, Slip, 0, 0, "", Magic, 0, Blue)
Am I correct? correct me if not
Of course it's not right.
If I haven't made a mistake somewhere, you have. But in any case, the meaning should be understandable.MQL6 has already appeared, has anyone tested this shell?
Is today April 1?
Isn't it April 1?
And I started googling)).
... found a one-page mql6 website and one link to a forum at mql5.com