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
For example, I threw in a script on history:
By the way, I'm going to try using your experience of using objects for dynamic memory allocation instead of 2D arrays :)
And you have the reference point as some moving point in the past (firstBar), in relation to which the second channel bar (lastBar) slides in the future, am I correct?
Yes, this means a constant reference to the lastBar, which is what you need for an indicator or expert.
А у Вас оотправной точкой является некоторая скользящая точка в прошлом (firstBar), по отношению к которой скользит второй бар канала (lastBar) в будущем, я правильно понял? То есть , алгоритмы не совсем пересекаются и как бы разнонаправлены.
Yes, this means a constant reference to the last bar, which is what an indicator or expert needs.
I'm afraid we're misunderstanding each other again. In my picture firstBar is black, lastBar is green. It means that the binding is not to the last closed bar but to some bar in the past. Although maybe it's me who doesn't understand...
I only use two-dimensional arrays. I understand dynamic memory allocation in terms of Pascal, of course I don't have that. Just a parsimonious calculation algorithm.
The direction doesn't matter, the important thing is that the outermost lastBar (or firstBar) is always the same distance from the last bar. And I get the first and the last one mixed up all the time myself :)