![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
Urain:
It's simply impossible to pass a globally declared variable into a function, let alone more complicated things.
Yeah. It's a cruel bug...
i checked it this way. it works
it treats count as an array :)))Yeah. Brutal bug...
Checked it like this. It's working.
It sees the count as an array :)))It's not that there are errors, you can't get away from that. The point is that it's in the stabilized part. Namely in syntax.
Here is another example:
Compiled normally, but on start-up it generates: Access violation read to 0x00000000 in 'С:\MetaTrader 5\MQL5\Scripts\Sheet4.ex5'.
But I just need to rewrite this expression:
f[j]=g[j]=123;
like this :
g[j]=123; f[j]=g[j];
and there is no problem.
So it turns out that programming at this stage still comes down not to creating algorithms but to searching for why it does not work.
f[j]=g[j]=123;
is it possible to do this?
Actually, it's faster to work like this instead of:
g[j]=123; f[j]=g[j];
it should go like this, but I'm just saying:
In your case you access arrays 3 times, in mine only 2. :)
Thank you very much, Urain!
I had a piece of function that didn't want to work for who knows why, seven lines. I put off debugging it indefinitely, because there's nothing to debug! Everything must work. And then I came across your message. Obviously, everything worked at once.
...
Thanks for the post, the error has been fixed.
Actually this thread is not for bugs, and I posted them as examples.
Please note that new builds often break the stabilized part (even if only for small things).
Apparently the matter is in code optimization. Without knowing the optimization system I can only speculate.
But from my experience I know that a system built without a plan is very hard to be updated later.
I think we need to systematize the bugs and understand the weak points in the mql5 development plan.
Amazing, there is no visualisation in the strategy tester and people care about the API.
Especially probably the first 4 points:)
I think you're wrong to think that you know better than the developers about the sequence of actions to promote the platform!
Personally, I don't care about "lack of visualization in the strategy tester", because I've never encountered this beast before.
But people are interested in the reasons of delayed appearance of MT5 at brokers. If the reason is the lack of API, then it is logical to assume that people will be worried about API as well.
exactly! +1 ... visualisation is not the most necessary thing now...
I think you are wrong to think that you know better than the developers about the sequence of actions to promote the platform!
What a surge of emotion! after a simple question. And they say that a trader must control his emotions)