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
What is your result?
Where do you call the function from?
1. Replace bool type with int type of array All_bars_table[][7]; at the top where global variables are declared.
2. Put call to timer, where it says "Here is your code".
Now I checked it and it works on EURUSD. In short, it works.
Here is the variant that prints on the EURUSD minute:
Here is a variant that prints on a minute on EURUSD:
It works, but you have to put it on a small timeframe.
Still, I must admit that the OOP solution looks nicer and there is a few times less code.
This works, but you need to put it on a small timeframe.
Still, it's worth admitting that the OOP solution looks nicer, and there's a few times less code.
Use whatever you want.
Don't be ridiculous - it is not nice, not nice. Compare them in terms of resources consumption.
You don't have to put it on a small timeframe.
Instead:
Leave only:
... and the code is several times less.Here is all the code for the solution:
Don't forget about the hidden OOP code. There's less code because you can't see it!
If you need it, here is a working cross-platform function (for MT5 and MT4)
Unlike Peter's code works and is an order of magnitude faster.
If you need it, here is a working cross-platform function (for MT5 and MT4)
Unlike Peter's code, it works and is much faster.
The goal was one, but it achieved another...
If ... someone, the market overview shows ALL symbols, but works with only one ... I'd rather not say anything else...
Why are you trying to measure... code, the purpose was quite different.........
The goal was one and the achievement of another...
If someone has... someone, the market overview shows ALL the symbols and only works with one... I'd rather not say anything else...
Why measure ... code, the goal was quite different.........
I was given a task: to make a way to get events of a new bar of a set of symbols, on a set of timeframes, without OOP, and to make it short and efficient code.
Now tell me - did I meet the objective?
If you need it, here is a working cross-platform function (for MT5 and MT4)
Unlike Peter's code, it works and is much faster.
Nikolai, I see that you have not neglected to use the names of my variables in your code:
I certainly do not mind, but why "lower" my code below yours? ))
It's not nice...