Hi,
I am new to mql.
In the simple expert advisor example in the book is a line that says if(total < 1)
should this not be if(total > 1)
It is confusing
Hi BillBrian
Now that I look at it closely, I agree.
Also, in the same "Orders accounting" block I see that the line testing OrderType() < 1, should be
if( OrderType() > 1 )
because OP_BUY = 0 & OP_SELL = 1, so values above this are pending orders.
I understanding it is confusing, but I think the book was a voluntary effort written by someone with English as their second language. This book was my bible for a while, so stick with.
Cheers
Jellybean
Hi BillBrian
Now that I look at it closely, I agree.
Also, in the same "Orders accounting" block I see that the line testing OrderType() < 1, should be
if( OrderType() > 1 )
because OP_BUY = 0 & OP_SELL = 1, so values above this are pending orders.
I understanding it is confusing, but I think the book was a voluntary effort written by someone with English as their second language. This book was my bible for a while, so stick with.
Cheers
Jellybean
the OrderType() > 1 sounds logic,
the other thing just doesn't
anyway, thanks for the verification

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am new to mql.
In the simple expert advisor example in the book is a line that says if(total < 1)
should this not be if(total > 1)