Timeseries array indexing using loops in EA without using indicators and oncalculate function - is it possible ? - page 2
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 you want to do everything directly in expert, then it is important here that the counter function is written correctly and there are no other concerns. When using the OnTick function, I'm not entirely sure whether I can use only the appearance of a new tick or if I have to use timers as well. So far, I have not had such a situation that the tick does not arrive within the desired time, and that is why I cannot comment further for the time being. Logic says that if a tick does not come for too long, then something is very wrong and there is no point in trading anyway. In addition, since no new tick arrives, nothing can change in the calculations unless a deeper data analysis is done - so I don't see a problem at the moment. It probably makes sense to disable the trading functions for the time being if the counter does not change for too long. I measured the results and I don't use the struct in mqlrates myself because I need less data for my larger processing. Maybe if there is more time, we can continue with this, but at the moment I will not dwell on this topic any more. Finally I will also add a very simple code that I myself use now, for those who are on the same path and want to test it themselves.
function:
and call: