are you sure that x is a natural number or 0? if high_i = e.g. 6, then x = -1, and high[-1] is already a problem. maybe add a check in line 173 if (x < 0) continue;
danik: are you sure that x is a natural number or 0? if high_i = e.g. 6, then x = -1 and high[-1] is already a problem. maybe add a check if (x < 0) continue to line 173;
For three bars such a "check" has been done:
for(j=i+3;j<=i+m;j++)
For the other values you need to change them all over the place. You could start with this, and then see if this solves the problem or if there is something else that needs to be fixed.
lufer: Hello, could you please advise me, there is a function to close orders, but the orders are not closed for some reason, I can't figure out what's wrong
Help me to find a bug in the code, it seems to be drawing two lines based on ZeroLag MACD indicator data for EUR\USD and GBP\USD, but nothing happens. Here is the code
ASZmyrov: Please, help me to find a bug in the code, it seems that ZeroLag MACD should draw two lines for EUR\USD and GBPUSD, but nothing happens. Here is the code
Rumor has it that IndicatorCounted() does not work, also indicator recalculation is more correct to count from past to present, and there are some more errors in the code.
P.S. ZeroLag MACD itself should also be "adjusted" for the new virtual machine.
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.
Now checking, the hai of the three bars before and after should be less than the hai of the bar found.
Probably like this:
Thank you, it works.
But after increasing the number of bars, like this:
arises.
arrayout of range in 'ta_v1_05.mq4' (174,11)line 174, this one:
please tell me how to fix it.
danik: are you sure that x is a natural number or 0? if high_i = e.g. 6, then x = -1 and high[-1] is already a problem. maybe add a check if (x < 0) continue to line 173;
For the other values you need to change them all over the place.
You could start with this, and then see if this solves the problem or if there is something else that needs to be fixed.
Hello, could you please advise me, there is a function to close orders, but the orders are not closed for some reason, I can't figure out what's wrong
The price cannot be int!
int ClosePrice;The price cannot be int!
Please, help me to find a bug in the code, it seems that ZeroLag MACD should draw two lines for EUR\USD and GBPUSD, but nothing happens. Here is the code
Rumor has it that IndicatorCounted() does not work, also indicator recalculation is more correct to count from past to present, and there are some more errors in the code.
P.S. ZeroLag MACD itself should also be "adjusted" for the new virtual machine.
Thank you, it works.
But after increasing the number of bars, like this:
arises.
array out of range in 'ta_v1_05.mq4' (174,11)line 174, this one:
please tell me how to fix it.
Isn't that what you're looking for?