![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Found a bug and optimised the operation.
A good example, although there is still a long way to go before optimum performance. So far, the main brakes are three:
1. CopyTiks every OnBookEvent copies all the ticks since the start:
This can actually be optimised by making dynamic cutoffs.
2. Full enumeration of all received ticks in OnBookEvent
This too can be fixed if you wish.
3. Complete enumeration of all bars in OnCalculation:
A good example, although there is still a long way to go before optimum performance. So far, the main brakes are two:
1. CopyTiks every OnBookEvent copies all the ticks since the start:
This can actually be optimised by making dynamic cutoffs.
2. Full enumeration of all received ticks in OnBookEvent
This too can be fixed if you wish.
3. Complete enumeration of all bars in OnCalculation:
Thanks, but you're not right everywhere.
1. Not all ticks (look carefully).
2. how do you want to do it?
3. easy to do
Now, let's tweak it...
Thank you, but you are not right about everything.
1. Not all ticks (look carefully)
2. easy to do
3. easy to do.
Now we're getting it right...
Yes, indeed not all ticks.
About the third point, I'm not sure it will be easy to do. The indicator is tickwise and therefore requires serious re-rendering.
But on the whole it is OK. Thanks for the example.
Here, I tweaked it.
Yes, indeed not all ticks.
About the third point I'm not sure it would be easy to do. Because the indicator is a tick indicator and therefore it does require some serious re-rendering.
But on the whole it is OK. Thanks for the example.
Indeed, the indicator is tick based, so only the current data (recent) is important.
If user wants to take longer history from buffers,
it is very easy to do.
Sec.
Here, the user can choose the size of the data they are interested in.
If ActSize = 0 - all available history
Does anyone know what the error is?
The indicator works correctly, but more bars are displayed,
than it was set up for.