Questions from Beginners MQL5 MT5 MetaTrader 5 - page 876
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
Unfortunately, I haven't come across the article, maybe someone else can suggest it.
You won't be able to set orders because you won't be able to enter the right setting price. The same applies to lots.
I set with the mouse.
I am betting with the mouse.
The control panel from this article https://www.mql5.com/ru/articles/62 will work in the tester (only buttons)?
The control panel from this article https://www.mql5.com/ru/articles/62 will work in the tester (buttons only)?
So try it - what's stopping it?
I just wrote how I put the pending orders in the visualiser myself.
So try it - what's stopping you?
I have simply written how I set the pending orders in the visualizer.
I'm trying it now. I didn't want to waste time, I don't need the panel in the robot's operation, I just need it for a test. Therefore, I wasn't planning to study the subject in detail.
Can you tell me why when I change code below from close[i-1] to close[i-2] the Array of Range occurs? The code was written strictly following MQL5 book, but it doesn't explain why the buffer is overrun when price is shifted by more than 2 cells.
Can you tell me why when I change code below from close[i-1] to close[i-2] the Array of Range occurs? The code was written strictly following MQL5 book, but it does not describe why withdrawal from buffer occurs when price is shifted by more than 2 cells.
As far as I understand, we are talking about an indicator. So, consider two cases of accessing an array-timeseries"close": (1) what happens when"start" equals "1" and (2) what happens when"start" equals "rates_total-1".
Just calculate in your mind the resulting"close" array index if you try to do "close[i-2]" for case (1) and for case (2).
I understand that we are talking about an indicator. So, consider two cases of accessing the"close" time-series array: (1) what happens when"start" equals "1" and (2) what happens when"start" equals "rates_total-1".
Just calculate in your mind the resulting"close" array index if you try to do "close[i-2]" for case (1) and for case (2).
Thanks, I checked, there was a need to put a number greater than 1 in the start = 1 value, debugging showed that the error occurs when the close array tries to take a value from a cell that has not yet appeared at the beginning of the recalculation.
if(close[i] < Upper[i])
The debugging result is as follows:
The data goes correctly, refreshing at the same rate as the price refreshes
But if we initially set such a condition:
if(close[i] > Upper[i])
Then the result will be incorrect:
That is, the values of closing prices don't coincide with the current price
I cannot understand why it happens so.
Basic code block in post#8792