
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
If the indicator is calculated from the left to the right, then if some event has occurred, for example, a fractal has formed, we should memorize the index of the bar with this event (to use it for something else). If the indexing is from the right to the left, we should calculate n=Bars-i and remember n, and then do the reverse: i=Bars-n. But if you do index from left to right, you should just save the index and use it, it won't change. Since in more or less complicated indicators this is always needed, left-to-right indexing is a big help for indicator developers.
Yes, I once started to write one indicator in mql4, I wrote 1/3 of it, another 1/3 part was based on results of the first one and the third part on the values of the second third. I faced a big problem when calculating the bar with needed value. But it so happened that the customer has disappeared and I haven't finished writing it. And when indexing on the right the bar number is unchanged, it is enough to write the bar number to the auxiliary array and only this array must be run to construct the second and the third part...
If the indicator is calculated from the left to the right, then if something happens, for example, a fractal is formed, you must store the index of the bar with this event (to use it for something else). If the indexing is from the right to the left, we should calculate n=Bars-i and remember n, and then do the reverse: i=Bars-n. But if you do index from left to right, you should just save the index and use it, it won't change. Since in more or less complicated indicators this is always needed, left-to-right indexing is a big help for indicator developers.
Here's an example.
https://www.mql5.com/ru/code/25807
Thank you, but
Oh, boy. And then the terminal downloads the history and what?
It's no big deal. You just have to forget about the four-way approach
And do it like this.
Oh, yeah. And then the terminal downloaded the history and what?
Where are you from and why are you here? Have you written a single indicator for MT4 or MT5? At least you should know the basics of writing indicators for MetaTrader.
Because they never wrote complex but fast indicators, otherwise left-to-right indexing would have been a very important solution.
If you need a fast indicator for an EA, it's better to put the calculation part directly into the EA.
If you need a quick indicator for the EA, it is more profitable to insert the calculation part directly into the EA.
No way... Tell your girlfriends about it, for the sake of brutality.
Where are you from and why are you here? Have you written a single indicator for MT4 or MT5? You should at least know the basics of writing indicators for MetaTrader.
Dimitri is angry, he hasn't had a hangover yet)))