Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 284
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
Thank you very much. All fixed.... Question then one more I have a piece of code which also gave out this error. Do you think my change will have any effect on functional execution after replacement?
It was like this and it gave me an error.
I did that and the error went away.
It will greatly change result of work because comparison is used here, so I thought what if suddenly change in data type will change result of this comparison. What do you think?
Was there an error? Most likely, there was a warning about variable types. Actually datetime is a long. You can use long instead of datetime.
Was there an error? Probably a warning about variable types. In general, datetime is a long. You can use long instead of datetime.
Well yes, there were warnings.... I don't know, as long as the logic isn't affected by it....
Well yes, there were warnings.... I don't know, as long as it doesn't affect logic....
it won't.
Can you please explain how to go to the forum page after asking a question, post a snippet of text and then go back to the question?
I can't figure it out...
I can't figure it out...
When you ask a question, you should write in more detail. Look at what happened: Asked a question and wants to go to a page. Which page? There are 2 buttons at the bottom on the left
see how they work. Go back - any browser has back and forward buttons. In Firefox in Opera . You can bookmark the address, you can save the address to a file, you can create a shortcut to the desired page
When you ask a question, you should write in more detail. Look at what happened: Asked a question and wants to go to a page. Which one? There are 2 buttons at the bottom on the left
See how they work. Go back - any browser has back and forward buttons. in Firefox in Opera . you can bookmark the address, you can save the address to a file, you can create a shortcut to the desired page
Thank youSTARIJ.
int WhatType()
//>>>>>>>>>>>>>>>>>>>>>
{
Alert("beg WhatType()");
if(OrderSelect(NextTick,SELECT_BY_TICKET)==true) Alert("OrderSelected=",NextTick);
Alert(NextTick);
got the message
"comma epected" message right on the first line
Alert("NextType=",NextType);
OpPrice=OrderOpenPrice();
ClPrice=OrderClosePrice();
if(ClPrice>OpPrice)CurType=OP_BUY;
else CurType=OP_SELL;
Alert("CurType=",CurType);
Alert("end WhatType()");
//>>>>>>>>>>>>>>>>>>>>>>>>>
}//Alert("end int WhatType()");
remain unclear where "comma" why is it "expected" ?
please help if you can
got a "comma expected" message, don't know what it means, maybe I should contact the developers?
int WhatType()
//>>>>>>>>>>>>>>>>>>>>>
{
Alert("beg WhatType()");
if(OrderSelect(NextTick,SELECT_BY_TICKET)==true) Alert("OrderSelected=",NextTick);
Alert(NextTick);
Alert("NextType=",NextType);
OpPrice=OrderOpenPrice();
ClPrice=OrderClosePrice();
if(ClPrice>OpPrice)CurType=OP_BUY;
else CurType=OP_SELL;
Alert("CurType=",CurType);
Alert("end WhatType()");
//>>>>>>>>>>>>>>>>>>>>>>>>>
}//Alert("end int WhatType()");
It's too early to go to the developers - they already have a lot to do. In the compiler message on the right line number and even position number. Or attach the whole file - maybe someone will look at