Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 131
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
I can't touch it withOnCalculate(...) event, I can touch any function, but I can't touch this one. The timer is not an option, the indicator is needed not so often, and it would be better to use it with a click on a graphic item.
How to implement it?
Can you please tell me how to correctly look for the most resource-intensive places in the code that load the CPU?
Run code profiling from the editor.
Thanks, but how do you do it offline - on a day off?
A piece of code:
for(i=1; i<=Bars; i++)
{
if(Open[i]-Close[i]==0)
When testing, the debugger generates an error on the if line. Array out of range.
Thank you in advance.
What could be the problem?
A piece of code:
for(i=1; i<=Bars; i++)
{
if(Open[i]-Close[i]==0)
When testing, the debugger generates an error on the if line. Array out of range.
Thank you in advance.
{
if(Open[i]-Close[i]==0)
{
}
}
{
if(Open[i]-Close[i]==0)
{
}
}
Thank you it helped, I guess I shouldn't have put "<="? It's weird, though. I don't understand why. Where to put the plus sign?
Thanks helped, I guess I shouldn't have put"<="? Strange though. I don't understand why. Where to put a plus sign?
Here is a comparison table:
To do this, you need to create a server outside the local computer and transfer data through this server, respectively, for MT you write an indicator or advisor that processes this data, or put the terminals on a VPN server and there you set up a copier of deals from your account to your friends' accounts. Another option is to copy your trades executed on given levels through signals service. In general, you have to take into account your financial capabilities to order the appropriate software.
Since array indexing starts with zero, for example, if the number of bars in Bars is 1, then to get the value from this single bar, we need to take the value of their cell with index 0.
Here is the comparison table: