'}' - semicolon expected
- 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.
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.