Errors, bugs, questions - page 1553

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
MQL4. CharArrayToString(), for the 3rd argument count it says that " .Defaults to -1, which means copying to the end of the array, or meeting the terminal 0." In MetaEditor 4, the prompt "int count=WHOLE_ARRAY" appears. On the site, go to WHOLE_ARRAY, where the numeric value of this constant = 0.
Maybe in the CharArrayToString() documentation for this argument just leave ". Defaults to 0."?
MQL4. CharArrayToString(), for the 3rd argument count it says that " .Defaults to -1, which means copying to the end of the array, or meeting terminal 0." In MetaEditor 4, the prompt "int count=WHOLE_ARRAY" appears. On the site, we go to WHOLE_ARRAY, where the numeric value of this constant = 0.
Maybe in the CharArrayToString() documentation we should leave just "..." for this argument. The default is 0."?
Unfortunately, in the new quad, we are pulling the legacy from the old quad.
So you can specify both 0 and -1 as this parameter in the four function CharArrayToString. The result will be the same
Good afternoon All!)
This is a question for a dummy in programming...
I am trying to compile an EA for a new build and the compiler gives me lots of different errors...
Here is one of them
if(oppositedelete){delete( OP_SELLSTOP);delete( OP_SELLLIMIT);}
There are 2 errors marked in red in this code fragment: '(' - object pointer expected
Having read a bit about the subject of the error, I understood that the name is reserved and I must replace it...
So the question is what to replace it with?
Good afternoon All!)
This is a question for a dummy in programming...
I am trying to compile an EA for a new build. The compiler gives me lots of different errors...
Here is one of them
if(oppositedelete){delete( OP_SELLSTOP);delete( OP_SELLLIMIT);}
There are 2 errors marked in red in this code fragment: '(' - object pointer expected
Having read a bit about the subject of the error, I understood that the name is reserved and I must replace it...
So the question is what to replace it with?
Good afternoon All!)
This is a question for a dummy in programming...
I am trying to compile an EA for a new build and the compiler gives me lots of different errors...
Here is one of them
if(oppositedelete){delete( OP_SELLSTOP);delete( OP_SELLLIMIT);}
There are 2 errors marked in red in this code fragment: '(' - object pointer expected
Having read a bit about the subject of the error, I understood that the name is reserved and I must replace it...
So the question is what to replace it with?
Good afternoon All!)
This is a question for a dummy in programming...
I am trying to compile an EA for a new build and the compiler gives me lots of different errors...
Here is one of them
if(oppositedelete){delete( OP_SELLSTOP);delete( OP_SELLLIMIT);}
There are 2 errors marked in red in this code fragment: '(' - object pointer expected
Having read a bit about the subject of the error, I understood that the name is reserved and I must replace it...
So the question is what to replace it with?
The question is like "How do I name my son, if Vasya is not allowed? )
What difference does it make what to replace the name of this function with? To any other name. Even to Petya().
Since I didn't get an answer in the other thread, I'll repeat the question here, maybe this will help
"
Can you please tell me what my mistake is.
for(int i=0;i<N_Sell;i++) printf("OpenSellTime[%d] = %G",i,TimeToString(OpenSellTime[i],TIME_DATE|TIME_MINUTES)," PriceOpenSell[%d] = %G",i,PriceOpenSell[i]);
The date from OpenSellTime array is not printed and not the second part of expression - PriceOpenSell.
And, can't find aboutprintf commandslike%G and%d.
"
Since I didn't get an answer in the other thread, I'll repeat the question here, maybe this will help
"
Can you please tell me what my mistake is.
for(int i=0;i<N_Sell;i++) printf("OpenSellTime[%d] = %G",i,TimeToString(OpenSellTime[i],TIME_DATE|TIME_MINUTES)," PriceOpenSell[%d] = %G",i,PriceOpenSell[i]);
The date from OpenSellTime array is not printed and not the second part of expression - PriceOpenSell.
And, can't find aboutprintf commandslike%G and%d.
"