- Please use the "SRC" button to submit code samples!
- You are missing ";" terminators on the OrderSend lines.
- You are missing the slippage parameter on your 2nd OrderSend.
- Don't use "if (bill == true)". Just use "if(bill)" or "if(!bill)" because it is already a Boolean.
- Boolean values only have two states, true or false. There is no third state as is implemented in your code "if(bill == true) ... else if(bill == false) ... else ..."
- Always check the results of the "OrderSend" and other such functions.
- There is no predefined "Null". It is case sensitive, so use "NULL".
- There are several other mistakes, but start with these.
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
I was practicing to make a simple E.A.but the following errors occurs .
" '}' - semicolon expected "
" 'else' - illegal 'else' without matching 'if' "
Can anyone please point out my mistake in the following program and make the correction.