I have loop with variable begin date-time, what move to the future time ... Example:
I want to get ticks per pack and storage them into the dailyTicks variable ...
How to do it with numpy there? ticks is array of voids ... but I can't understand how to merge these ...
Need to exclude copies also, and other possible negative affects ...
p.s. I'm using it for load current ticks also
- How to complete this to add moving averages of the indicator values?
- Questions from Beginners MQL5 MT5 MetaTrader 5
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
sergey087: I have loop with variable begin date-time, what move to the future time ... Example:I want to get ticks per pack and storage them into the dailyTicks variable ...
Your question is more about the Python language than it is about MetaTrader. Maybe asking on a Python forum may be more helpful to you.
How to do it with numpy there? ticks is array of voids ... but I can't understand how to merge these ... Need to exclude copies also, and other possible negative affects ... p.s. I'm using it for load current ticks also
I couldn't understand what you tried to achieve but as far as I understood there is a problem with `ticks`.
It should contain an array full of data, and not null/void values.
Looking at your variable names, I am suspicious that `utcYearBegan` and `utcYearEnd` are not datetime objects but integers which might cause the problem.
Please look at this documentation in order to understand how to use the function.
***
Joining arrays:
You can play with these functions: append & concatenate
The documentation has some examples.
Best.
![Documentation on MQL5: Integration / MetaTrader for Python / copy_ticks_range Documentation on MQL5: Integration / MetaTrader for Python / copy_ticks_range](https://c.mql5.com/36/0/documentation-on-mql5-integration__3.png)
Documentation on MQL5: Integration / MetaTrader for Python / copy_ticks_range
- www.mql5.com
copy_ticks_range - MetaTrader for Python - Integration - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
![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