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?
You catch the click on the object in the indicator and the event handler, and then you recalculate the indicator buffers as at a new start. You do not need to pull OnCalculate
Andy-D: Thanks helped, I guess I shouldn't have put"<="? Strange though. I don't understand why. Where to put a plus sign?
Because array indexing starts with zero, so, for example, if the number of bars in Bars is 1, then to get a value from this single bar, you must take the value of their cell with the index 0.
Sergey Gritsay: 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.
I have found an indicator (mq4) with similar mapping principle. I have seen its results and they do not suit me. I've got my own data. I think it's more accurate. I have my own data. Can I edit it to make it more accurate and remove some unnecessary mappings and specify the path to my data? Just take it as a basis.
Artyom Trishkin: 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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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: