
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
Hi,
I compile the following it got errors like this: May I know which part went wrong?
The error report tells you where the error is
',' - unexpected token postin forum.mq4 59 53
and if you double click on the error, the cursor is taken straight to the problem
Hi GumRai,
Thanks, I got it fixed. The error comes from the parentheses accidentally inserted.
Thank you WHRoeder.
Is
Hi thrdel,
Is Time[0] refering to the time of bar 0? Is there Time[1], Time [2] etc? I tried googled it but not much information in the internet. Also, if I attach this EA to two currency pairs, does it mean that OrderSelect only select the orders in the chart itself or all the orders in the terminal?
Hi thrdel,
Why I get this warning message "implicit conversion from 'number' to 'string' postin forum.mq4 69 61" for the coding " if(ticket<0)Print("Error OP_BUY order failed, error:"+GetLastError());"?
Is Time[0] refering to the time of bar 0? Is there Time[1], Time [2] etc?
Yes
I tried googled it but not much information in the internet.
http://bit.ly/1fJi4XA
Also, if I attach this EA to two currency pairs, does it mean that OrderSelect only select the orders in the chart itself or all the orders in the terminal?
depends on your code
Hi thrdel,
Why I get this warning message "implicit conversion from 'number' to 'string' postin forum.mq4 69 61" for the coding " if(ticket<0)Print("Error OP_BUY order failed, error:"+GetLastError());"?
"implicit conversion from 'number' to 'string'" can be a pain in the butt when you have large loops.
It means having to scroll through loads of lines in the error report.
In your case GetLastError() is an integer code, so it is just warning you that it will be converted to a string for the print statement.
If you are happy that it is not a problem then you can add (string) to stop these annoying warnings.
Incidently, if you didn't know-
I usually place this after the Externs/Inputs
#include <stdlib.mqh>
and then you can use
So that the description of the error prints, not just the code