It is valid : OP_SELL is a predefined constant with value 1 ;
OP_BUY = 0
so if you only want to allow buy and sell orders, this check would do the trick
HTH
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
While tracking down a program or logic error I encountered this snippet of code that did not originate from me that seems that it is neither valid nor true:
"(OrderType() <= OP_SELL)"
It is part of 'looping' through an array:
It would seem that it should be either a logical 'false' != or 'true' : ==. Likely the former.
Thanks for any and all assistance! (< 8)