In addition to the words, an explanatory picture
The first variant of the indent (from top to bottom, when the line is commented
for ( j=0; j< Max; j++) Price[ j][0]= j; // заменили пункты на порядковый номер |
Second variant, when it remained working
The third variant when the line is left working
// Buf[bar1]=i; // ВОТ ТАК будет строится НОРМАЛЬНО наклонная линия
The variant when the working line is
Buf[bar1]=15; // THIS IS NOTHING like this
the same as the second one.
By the way, I noticed that the name of the indicator is not written for the second variant - I have a feeling that there are errors such as division by 0.
And as for the indicator's dependence on 0 bar, it shows up on some timeframes. Sometimes the chart appears - just a horizontal line. But when you shift the chart so that the zero bar is not visible on the screen, it disappears!!!
I do not understand. I would be grateful if someone could point out the problem.
And as for the indicator's dependence on 0 bar, it shows up on some timeframes. Sometimes the chart appears - just a horizontal line. But when you shift the chart so that the zero bar is not visible on the screen, it disappears!!!!
I do not understand. I would be grateful to those who can show me the problem.
It is necessary to put in an indicator to control the number of bars on the second instrument. And when it changes by more than one, it redraws it completely. It means that there was a history swap.
Put it in a file. I don't want to copy it.
1. If the range is fixed at 14:16, a horizontal line will be drawn. (The range automatically becomes 15:15 and ... everyone goes crazy :), I guess).
For the "original" version, the range is 0:2 and there will also be a line. (This is also what the debug print says).
2. I won't say anything about the sorting algorithm ;). I, in the same situation, preferred 2 arrays and ArraySort
1. If you fix the range at 14:16, a horizontal line is drawn. (The range automatically becomes 15:15 and ... everyone goes crazy :), I guess).
For the "original" variant, the range is 0:2 and there will also be a line. (This is also indicated by the debug print)
Exactly right. I missed it.
2. I won't say anything about the sorting algorithm ;). I, in the same situation, preferred 2 arrays and ArraySort.
ArraySort is not suitable. You need to sort two dimensions simultaneously. sort the digits and move the indexes at once.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Here's the multi-currency turkey. Its task is to order the pairs by the number of pips, relative to the start of the day.
It displays perfectly well when just showing the value of pips. But when I try to display the sequence number in the array, I get a problem.
I have highlighted the place in the code where you can observe this.